.net framework 2.0 install

G

Guest

will the install of .net framework 2.0 on a system with IIS installed
automaticaly register asp.net with IIS ?
thanks
 
E

Eric

chaz said:
will the install of .net framework 2.0 on a system with IIS installed
automaticaly register asp.net with IIS ?

Just watch out if that server already had asp.net 1.1 installed. An
install of 2.0 won't upgrade existing apps to use 2.0 - you have to do
that in the new IIS property page.
 
M

Morten Wennevik

I may be wrong, but I thought the default was all 1.1 applications will be
upgraded to run under .net 2.0. There is a /noaspupgrade flag you can use
to prevent this.

Further searching seems to indicate that managed applications will stick
to 1.1. However, unmanaged applications calling 1.1 may get upgraded to
call 2.0, but I'm not sure if /noaspupgrade will prevent this.

http://blogs.digineer.com/blogs/tabraham/archive/2005/12/09/15.aspx
 
W

Walter Wang [MSFT]

Hi,

When you mean "asp.net didn't install correctly to IIS when installing .NET
2.0 framework", do you mean that the asp.net related Application Mappings
are not registered in IIS?

You can use the section titled "Verify That ASP.NET Handles the Request" in
following KB to verify this:

#HOW TO: Troubleshoot ASP.NET Web Applications
http://support.microsoft.com/kb/815166/EN-US/

Some other resources that might be useful for your troubleshooting:

#Troubleshooting an ASP.NET Installation (IIS 6.0)
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/1
87d0e2c-8e89-49ad-a89d-e26e4d76ee68.mspx?mfr=true

#Aaron Stebner's WebLog : Unified .NET Framework Troubleshooting Guide
http://blogs.msdn.com/astebner/articles/454956.aspx

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

no, I mean that it didn't register . What can be checked to determine if
asp.net is registered?
thanks
 
E

Eric

chaz said:
no, I mean that it didn't register . What can be checked to determine if
asp.net is registered?

asp.net 2.0 gives you a new tab on the IIS applet called "ASP.NET".
Look at the properties on your web site.
 
J

Juan T. Llibre

re:
What can be checked to determine if asp.net is registered?

Run amy aspx page. If it runs, asp.net is registered with IIS.
If it doesn't, it isn't registered.

If it isn't registered, you can register it by running

aspnet_regiis -i

from a command window in the appropiate .Net Framework directory.

Drive:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 for .Net 1.1
Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 for .Net 2.0
 
W

Walter Wang [MSFT]

You can use aspnet_regiis.exe with "/lv" switch to display all ASP.NET
version installed on the server.

You could also traverse the inetpub\wwwroot\aspnet_client\system_web folder
if ASP.NET has been registered, it will contain version folders tree.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

thanks all for the suggestions , however I need to detect whether asp.net is
registered during a product install, as follows :
I can tell if the asp.net version I'm interested in (2.0.50727.0 for
example ) is installed by checking for key of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0
but this doesn't tell me if it is registered . Is there a registry entry for
that information which can be checked ?
-chaz
 
J

Juan T. Llibre

Please review this KB :

"How to detect the installed version of the .NET Framework
in a Visual Studio Setup and Deployment package" :

http://support.microsoft.com/kb/315291/en-us

That will tell you the installed version(s) of the .Net Framework.

You're right in that it will not tell you if it's registered but, since you will only need
to install one version of the .Net Framework ( the one your program requires ),
it won't hurt to run aspnet_regiis -i from the appropiate directory on the client's box.

i.e., if the client doesn't have the version you require installed,
either prompt the client to install it, or request permission to install it.

If the client *does* have the version you require installed,
run aspnet_regiis -i from the appropiate .Net Framework directory.

There's subtler considerations, too.
You might want to detect if a Service Pack is installed, for example.

For help on that, see this Aaron Stebner's blog entry :
http://blogs.msdn.com/astebner/archive/2004/09/18/231253.aspx
 
E

Eric

chaz said:
.. checking for key of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0
but this doesn't tell me if it is registered . Is there a registry entry for
that information which can be checked ?

Maybe this can be redirected to a file and parsed from a c# or VB.net
program. Be careful about what the output might look like if a given
server has ore than one IIS site on it.

Or, you can write a WMI query against the IIS metabase. This only works
for IIS6 (Windows 2003). Do some google searches on this.

IIS6 came with some very cool scripts, and the links here are fantastic
to show you how to deploy an ASP.NET application. Look at the links in
the second message here:

http://forums.iis.net/thread/1337615.aspx

By the way, that "forums.iis.net" site is terrific for IIS related
questions.

Eric
 
W

Walter Wang [MSFT]

I believe you could do this by reading IIS metabase, here's some example
code using C# and System.DirectoryServices:

DirectoryEntry directoryEntry = new
DirectoryEntry("IIS://localhost/w3svc");
IEnumerator directoryEntries =
directoryEntry.Children.GetEnumerator();
while (directoryEntries.MoveNext())
{
DirectoryEntry de =
(DirectoryEntry)directoryEntries.Current;
if (de.SchemaClassName == "IIsWebServer")
{
IEnumerator directoryEntries2 =
de.Children.GetEnumerator();
while (directoryEntries2.MoveNext())
{
DirectoryEntry de2 =
(DirectoryEntry)directoryEntries2.Current;
if (de2.SchemaClassName == "IIsWebVirtualDir" ||
de2.SchemaClassName == "IIsWebDirectory")
{

if (de.Properties["ScriptMaps"].Value is
object[])
{
object[] scriptMaps =
(object[])de.Properties["ScriptMaps"].Value;
for (int i = 0; i < (int)scriptMaps.Length;
i++)
{
string str =
scriptMaps.ToString().ToUpper();
int idx = str.IndexOf(".ASPX");
if (idx > -1)
{
string[] elements = str.Split(',');
for (int ii = 0; ii <
elements.Length; ii++)
{
if
(elements[ii].IndexOf("FRAMEWORK") > -1)
{
Console.WriteLine(de.Path);

Console.WriteLine(elements[ii]);
break;
}
}

}
}
}
}
}
}
}


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
E

Eric

Walter said:
I believe you could do this by reading IIS metabase, here's some example
code using C# and System.DirectoryServices:

This code doesn't detect ASP.NET 2.0, but I definitely have it
installed, and it's selected in my IIS applet ASP.NET tab. I does show
ASP.NET 1.1, though.

Is there another property tree in the IIS Metabase for 2.0?

Eric
 
W

Walter Wang [MSFT]

Hi Eric,

For more information about IIS metabase and ASP.NET, you can find a good
example here:

#ASP.NET IIS Chameleon Tool - The Code Project - .NET
http://www.codeproject.com/useritems/iischamaleontool.asp
A tool to set one specific IIS Virtual Directory for a lot versions of same
web project.

Also, we can use MetaEdit or MetaExplorer to view the IIS metabase:

#HOW TO: Download, Install, and Remove the IIS MetaEdit 2.2 Utility
http://support.microsoft.com/kb/q232068/
This step-by-step article explains how to download, install, and remove
MetaEdit 2.2. The MtaEdt22.exe file is a downloadable, self-extracting file
that contains the IIS MetaEdit 2.2 utility. The MetaEdit 2.2 utility is
used to help to troubleshoot issues and to modify IIS metabase values.

#IIS Metabase and programmatic administration in C#
http://www.codersource.net/csharp_iis_metabase.html
configuration settings are stored. The metabase configuration and schema
for IIS 4.0 and IIS 5.0 were stored in a binary file, but from IIS6.0 the
configuration and setting is stored in single binary file (MetaBase.bin),
with plain text, Extensible Markup Language (XML)-formatted files named
MetaBase.xml and MBSchema.xml. You can navigate through the IIS Metabase
using MetaEdit or Metabase Explorer.

The Metabase is based on a hierarchical design with inheritance. Each
object in the metabase has a KeyType. The KeyType property specifies the
type of metabase key.

Each property of an object has a set data type and can be configured at
specific locations. For example, XoverTableFile can only have string value.
And this property can be configured only at IIsNntpServer. You can fing the
full list from MSDN.

#Download details: Internet Information Services (IIS) 6.0 Resource Kit
Tools
http://www.microsoft.com/downloads/details.aspx?familyid=56FC92EE-A71A-4C73-
B628-ADE629C89499&displaylang=en
The IIS 6.0 Resource Kit Tools can help you administer, secure, and manage
IIS.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top