469,903 Members | 2,201 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

.net framework 2.0 install

will the install of .net framework 2.0 on a system with IIS installed
automaticaly register asp.net with IIS ?
thanks
Oct 12 '06 #1
16 1788
It should. If not, run aspnet_regiis /i

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"chaz" <ch**@newsgroup.nospamwrote in message
news:13**********************************@microsof t.com...
will the install of .net framework 2.0 on a system with IIS installed
automaticaly register asp.net with IIS ?
thanks

Oct 12 '06 #2

chaz wrote:
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.

Oct 12 '06 #3
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/tabr.../12/09/15.aspx

On Thu, 12 Oct 2006 14:39:08 +0200, Eric <en*********@yahoo.comwrote:
>
chaz wrote:
>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.


--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 12 '06 #4
Yes.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"chaz" <ch**@newsgroup.nospamwrote in message
news:13**********************************@microsof t.com...
will the install of .net framework 2.0 on a system with IIS installed
automaticaly register asp.net with IIS ?
thanks

Oct 12 '06 #5
Thanks , now to figure out why it didn't ...:-(

"Steve C. Orr [MVP, MCSD]" wrote:
Yes.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"chaz" <ch**@newsgroup.nospamwrote in message
news:13**********************************@microsof t.com...
will the install of .net framework 2.0 on a system with IIS installed
automaticaly register asp.net with IIS ?
thanks


Oct 18 '06 #6
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/pro.../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 (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Oct 18 '06 #7
no, I mean that it didn't register . What can be checked to determine if
asp.net is registered?
thanks
"Walter Wang [MSFT]" wrote:
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/pro.../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 (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Oct 20 '06 #8

chaz wrote:
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.

Oct 20 '06 #9
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


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"chaz" <ch**@newsgroup.nospamwrote in message
news:0C**********************************@microsof t.com...
no, I mean that it didn't register . What can be checked to determine if
asp.net is registered?
thanks
"Walter Wang [MSFT]" wrote:
>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/pro.../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 (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
================================================= =

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


Oct 20 '06 #10
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 (wa****@online.microsoft.com, 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.

Oct 23 '06 #11
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

"Walter Wang [MSFT]" wrote:
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 (wa****@online.microsoft.com, 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.

Oct 23 '06 #12
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/archi...18/231253.aspx

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"chaz" <ch**@newsgroup.nospamwrote in message
news:02**********************************@microsof t.com...
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

"Walter Wang [MSFT]" wrote:
>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 (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Oct 23 '06 #13

chaz wrote:
>.. 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 ?
"Walter Wang [MSFT]" wrote:
You can use aspnet_regiis.exe with "/lv" switch to display all ASP.NET
version installed on the server.
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

Oct 23 '06 #14
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[i].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 (wa****@online.microsoft.com, 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.

Oct 24 '06 #15

Walter Wang [MSFT] wrote:
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

Oct 30 '06 #16
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...maleontool.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/d...2EE-A71A-4C73-
B628-ADE629C89499&displaylang=en
The IIS 6.0 Resource Kit Tools can help you administer, secure, and manage
IIS.

Regards,
Walter Wang (wa****@online.microsoft.com, 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.

Oct 31 '06 #17

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Thomas Mobley | last post: by
2 posts views Thread by Someone Please Help! | last post: by
1 post views Thread by Tomas Vera | last post: by
9 posts views Thread by Dave | last post: by
13 posts views Thread by dancer | last post: by
17 posts views Thread by Peter Anthony | last post: by
reply views Thread by =?Utf-8?B?VmFuZXNzYQ==?= | last post: by
3 posts views Thread by =?Utf-8?B?VmFuZXNzYQ==?= | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.