By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,635 Members | 2,227 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,635 IT Pros & Developers. It's quick & easy.

When do I need to run "aspnet_regiis –i"?

P: n/a
Hi;

In our setup program how do I determine if I need to run "aspnet_regiis –i"
and if so, is there an API I can calll rather than finding that program on
the user's disk and calling it?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Nov 24 '06 #1
Share this Question
Share on Google+
8 Replies


P: n/a
This is the program that installs ASP.NET on IIS. If you are installing VS
..NET, you shouldn't need to run this, as it is part of VS.NET's
installation. But, if the installation fails or if you wish to develop with
the .NET platform, but without VS.NET, you'll need to run this program
manually. I'm not aware of any API and the file is located in the .NET
Framework folder (C:\WINDOWS\Microsoft.NET\Framework\vxxxxxx).
"David Thielen" <th*****@nospam.nospamwrote in message
news:29**********************************@microsof t.com...
Hi;

In our setup program how do I determine if I need to run
"aspnet_regiis -i"
and if so, is there an API I can calll rather than finding that program on
the user's disk and calling it?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


Nov 25 '06 #2

P: n/a
This is for the installer for our users so usually it will be on a Windows
2003 server that does not have VS 2005 on it.

Does anyone know of a way to determine if this needs to be run?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Scott M." wrote:
This is the program that installs ASP.NET on IIS. If you are installing VS
..NET, you shouldn't need to run this, as it is part of VS.NET's
installation. But, if the installation fails or if you wish to develop with
the .NET platform, but without VS.NET, you'll need to run this program
manually. I'm not aware of any API and the file is located in the .NET
Framework folder (C:\WINDOWS\Microsoft.NET\Framework\vxxxxxx).
"David Thielen" <th*****@nospam.nospamwrote in message
news:29**********************************@microsof t.com...
Hi;

In our setup program how do I determine if I need to run
"aspnet_regiis -i"
and if so, is there an API I can calll rather than finding that program on
the user's disk and calling it?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


Nov 25 '06 #3

P: n/a
re:
Does anyone know of a way to determine if this needs to be run?
Usually, you detect the .Net Framework versions which are installed on the box.

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.

It will not tell you if they are registered but, since you will only need to install
one version of the .Net Framework ( the one your application 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.

Even if it is registered, re-registering it will not hurt...and it adds a safety level for you.

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

For help on that, see these Aaron Stebner's blog entries :
http://blogs.msdn.com/astebner/archi...18/231253.aspx
http://blogs.msdn.com/astebner/articles/454956.aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================

"David Thielen" <th*****@nospam.nospamwrote in message
news:04**********************************@microsof t.com...
This is for the installer for our users so usually it will be on a Windows
2003 server that does not have VS 2005 on it.

Does anyone know of a way to determine if this needs to be run?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Scott M." wrote:
>This is the program that installs ASP.NET on IIS. If you are installing VS
..NET, you shouldn't need to run this, as it is part of VS.NET's
installation. But, if the installation fails or if you wish to develop with
the .NET platform, but without VS.NET, you'll need to run this program
manually. I'm not aware of any API and the file is located in the .NET
Framework folder (C:\WINDOWS\Microsoft.NET\Framework\vxxxxxx).
"David Thielen" <th*****@nospam.nospamwrote in message
news:29**********************************@microso ft.com...
Hi;

In our setup program how do I determine if I need to run
"aspnet_regiis -i"
and if so, is there an API I can calll rather than finding that program on
the user's disk and calling it?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm





Nov 25 '06 #4

P: n/a
Would it be better to run "Aspnet_regiis.exe -s W3SVC/1/ROOT/MyApp"? Reading
more it sounds like -i makes .NET 2.0 the new default while -s just sets it
for my app.

I don't want users upset that I changed a default setting in IIS.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Juan T. Llibre" wrote:
re:
Does anyone know of a way to determine if this needs to be run?

Usually, you detect the .Net Framework versions which are installed on the box.

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.

It will not tell you if they are registered but, since you will only need to install
one version of the .Net Framework ( the one your application 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.

Even if it is registered, re-registering it will not hurt...and it adds a safety level for you.

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

For help on that, see these Aaron Stebner's blog entries :
http://blogs.msdn.com/astebner/archi...18/231253.aspx
http://blogs.msdn.com/astebner/articles/454956.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/
===================================

"David Thielen" <th*****@nospam.nospamwrote in message
news:04**********************************@microsof t.com...
This is for the installer for our users so usually it will be on a Windows
2003 server that does not have VS 2005 on it.

Does anyone know of a way to determine if this needs to be run?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Scott M." wrote:
This is the program that installs ASP.NET on IIS. If you are installing VS
..NET, you shouldn't need to run this, as it is part of VS.NET's
installation. But, if the installation fails or if you wish to develop with
the .NET platform, but without VS.NET, you'll need to run this program
manually. I'm not aware of any API and the file is located in the .NET
Framework folder (C:\WINDOWS\Microsoft.NET\Framework\vxxxxxx).
"David Thielen" <th*****@nospam.nospamwrote in message
news:29**********************************@microsof t.com...
Hi;

In our setup program how do I determine if I need to run
"aspnet_regiis -i"
and if so, is there an API I can calll rather than finding that program on
the user's disk and calling it?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm



Nov 26 '06 #5

P: n/a
You're right.

btw, if you're going to be installing the .net framework 2.0 using dotnetfx.exe,
you don't need to worry because by default the .net installation doesn't take over
all the applications on the server or box where it's being installed.

Two more things for you to worry about ( as if you didn't have enough! ) :

If you are installing to a Windows 2003 Server box, you need to make sure that,
if you are installing the .Net Framework :

1. You enable the 2.0 version on W2K3, by running aspnet_regiis -enable

2. You create a separate Application Pool for your 2.0 application.

You *cannot* run 1.1 apps and 2.0 apps in the same Application Pool in W2K3.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"David Thielen" <th*****@nospam.nospamwrote in message
news:8B**********************************@microsof t.com...
Would it be better to run "Aspnet_regiis.exe -s W3SVC/1/ROOT/MyApp"? Reading
more it sounds like -i makes .NET 2.0 the new default while -s just sets it
for my app.

I don't want users upset that I changed a default setting in IIS.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Juan T. Llibre" wrote:
>re:
Does anyone know of a way to determine if this needs to be run?

Usually, you detect the .Net Framework versions which are installed on the box.

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.

It will not tell you if they are registered but, since you will only need to install
one version of the .Net Framework ( the one your application 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.

Even if it is registered, re-registering it will not hurt...and it adds a safety level for you.

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

For help on that, see these Aaron Stebner's blog entries :
http://blogs.msdn.com/astebner/archi...18/231253.aspx
http://blogs.msdn.com/astebner/articles/454956.aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================

"David Thielen" <th*****@nospam.nospamwrote in message
news:04**********************************@microso ft.com...
This is for the installer for our users so usually it will be on a Windows
2003 server that does not have VS 2005 on it.

Does anyone know of a way to determine if this needs to be run?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Scott M." wrote:

This is the program that installs ASP.NET on IIS. If you are installing VS
..NET, you shouldn't need to run this, as it is part of VS.NET's
installation. But, if the installation fails or if you wish to develop with
the .NET platform, but without VS.NET, you'll need to run this program
manually. I'm not aware of any API and the file is located in the .NET
Framework folder (C:\WINDOWS\Microsoft.NET\Framework\vxxxxxx).
"David Thielen" <th*****@nospam.nospamwrote in message
news:29**********************************@microso ft.com...
Hi;

In our setup program how do I determine if I need to run
"aspnet_regiis -i"
and if so, is there an API I can calll rather than finding that program on
the user's disk and calling it?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




Nov 26 '06 #6

P: n/a
THANK YOU (I think the installer is almost as much work as the program).

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Juan T. Llibre" wrote:
You're right.

btw, if you're going to be installing the .net framework 2.0 using dotnetfx.exe,
you don't need to worry because by default the .net installation doesn't take over
all the applications on the server or box where it's being installed.

Two more things for you to worry about ( as if you didn't have enough! ) :

If you are installing to a Windows 2003 Server box, you need to make sure that,
if you are installing the .Net Framework :

1. You enable the 2.0 version on W2K3, by running aspnet_regiis -enable

2. You create a separate Application Pool for your 2.0 application.

You *cannot* run 1.1 apps and 2.0 apps in the same Application Pool in W2K3.

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/
===================================
"David Thielen" <th*****@nospam.nospamwrote in message
news:8B**********************************@microsof t.com...
Would it be better to run "Aspnet_regiis.exe -s W3SVC/1/ROOT/MyApp"? Reading
more it sounds like -i makes .NET 2.0 the new default while -s just sets it
for my app.

I don't want users upset that I changed a default setting in IIS.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Juan T. Llibre" wrote:
re:
Does anyone know of a way to determine if this needs to be run?

Usually, you detect the .Net Framework versions which are installed on the box.

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.

It will not tell you if they are registered but, since you will only need to install
one version of the .Net Framework ( the one your application 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.

Even if it is registered, re-registering it will not hurt...and it adds a safety level for you.

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

For help on that, see these Aaron Stebner's blog entries :
http://blogs.msdn.com/astebner/archi...18/231253.aspx
http://blogs.msdn.com/astebner/articles/454956.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/
===================================

"David Thielen" <th*****@nospam.nospamwrote in message
news:04**********************************@microsof t.com...
This is for the installer for our users so usually it will be on a Windows
2003 server that does not have VS 2005 on it.

Does anyone know of a way to determine if this needs to be run?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Scott M." wrote:

This is the program that installs ASP.NET on IIS. If you are installing VS
..NET, you shouldn't need to run this, as it is part of VS.NET's
installation. But, if the installation fails or if you wish to develop with
the .NET platform, but without VS.NET, you'll need to run this program
manually. I'm not aware of any API and the file is located in the .NET
Framework folder (C:\WINDOWS\Microsoft.NET\Framework\vxxxxxx).
"David Thielen" <th*****@nospam.nospamwrote in message
news:29**********************************@microsof t.com...
Hi;

In our setup program how do I determine if I need to run
"aspnet_regiis -i"
and if so, is there an API I can calll rather than finding that program on
the user's disk and calling it?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm






Nov 26 '06 #7

P: n/a
ps - how do I tell if I need to do either of these? In some cases a user will
already have .net 2.0 apps installed on IIS and in other cases not even .NET
is installed. In the case of .NET not installed, we have that as a
prerequisite as out installer is written in C# so we don't know if it was
just installed.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Juan T. Llibre" wrote:
You're right.

btw, if you're going to be installing the .net framework 2.0 using dotnetfx.exe,
you don't need to worry because by default the .net installation doesn't take over
all the applications on the server or box where it's being installed.

Two more things for you to worry about ( as if you didn't have enough! ) :

If you are installing to a Windows 2003 Server box, you need to make sure that,
if you are installing the .Net Framework :

1. You enable the 2.0 version on W2K3, by running aspnet_regiis -enable

2. You create a separate Application Pool for your 2.0 application.

You *cannot* run 1.1 apps and 2.0 apps in the same Application Pool in W2K3.

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/
===================================
"David Thielen" <th*****@nospam.nospamwrote in message
news:8B**********************************@microsof t.com...
Would it be better to run "Aspnet_regiis.exe -s W3SVC/1/ROOT/MyApp"? Reading
more it sounds like -i makes .NET 2.0 the new default while -s just sets it
for my app.

I don't want users upset that I changed a default setting in IIS.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Juan T. Llibre" wrote:
re:
Does anyone know of a way to determine if this needs to be run?

Usually, you detect the .Net Framework versions which are installed on the box.

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.

It will not tell you if they are registered but, since you will only need to install
one version of the .Net Framework ( the one your application 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.

Even if it is registered, re-registering it will not hurt...and it adds a safety level for you.

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

For help on that, see these Aaron Stebner's blog entries :
http://blogs.msdn.com/astebner/archi...18/231253.aspx
http://blogs.msdn.com/astebner/articles/454956.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/
===================================

"David Thielen" <th*****@nospam.nospamwrote in message
news:04**********************************@microsof t.com...
This is for the installer for our users so usually it will be on a Windows
2003 server that does not have VS 2005 on it.

Does anyone know of a way to determine if this needs to be run?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Scott M." wrote:

This is the program that installs ASP.NET on IIS. If you are installing VS
..NET, you shouldn't need to run this, as it is part of VS.NET's
installation. But, if the installation fails or if you wish to develop with
the .NET platform, but without VS.NET, you'll need to run this program
manually. I'm not aware of any API and the file is located in the .NET
Framework folder (C:\WINDOWS\Microsoft.NET\Framework\vxxxxxx).
"David Thielen" <th*****@nospam.nospamwrote in message
news:29**********************************@microsof t.com...
Hi;

In our setup program how do I determine if I need to run
"aspnet_regiis -i"
and if so, is there an API I can calll rather than finding that program on
the user's disk and calling it?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm






Nov 26 '06 #8

P: n/a
You need to detect the OS.

Those two steps are *only* needed if IIS 6.0 is running.
IIS 6.0 only runs on Windows 2003 Server.

Windows XP and Windows 2000 run IIS 5.1 and 5.0, respectively.

I'd also check what you'll need to run with Vista.
Vista runs IIS 7.0, and enabling ASP.NET is also needed.

Not too many developers will upgrade right away, though,
because there's issues with the developer tools Vista can run,
but it won't hurt to be ready for future needs.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"David Thielen" <th*****@nospam.nospamwrote in message
news:99**********************************@microsof t.com...
ps - how do I tell if I need to do either of these? In some cases a user will
already have .net 2.0 apps installed on IIS and in other cases not even .NET
is installed. In the case of .NET not installed, we have that as a
prerequisite as out installer is written in C# so we don't know if it was
just installed.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Juan T. Llibre" wrote:
>You're right.

btw, if you're going to be installing the .net framework 2.0 using dotnetfx.exe,
you don't need to worry because by default the .net installation doesn't take over
all the applications on the server or box where it's being installed.

Two more things for you to worry about ( as if you didn't have enough! ) :

If you are installing to a Windows 2003 Server box, you need to make sure that,
if you are installing the .Net Framework :

1. You enable the 2.0 version on W2K3, by running aspnet_regiis -enable

2. You create a separate Application Pool for your 2.0 application.

You *cannot* run 1.1 apps and 2.0 apps in the same Application Pool in W2K3.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"David Thielen" <th*****@nospam.nospamwrote in message
news:8B**********************************@microso ft.com...
Would it be better to run "Aspnet_regiis.exe -s W3SVC/1/ROOT/MyApp"? Reading
more it sounds like -i makes .NET 2.0 the new default while -s just sets it
for my app.

I don't want users upset that I changed a default setting in IIS.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Juan T. Llibre" wrote:

re:
Does anyone know of a way to determine if this needs to be run?

Usually, you detect the .Net Framework versions which are installed on the box.

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.

It will not tell you if they are registered but, since you will only need to install
one version of the .Net Framework ( the one your application 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.

Even if it is registered, re-registering it will not hurt...and it adds a safety level for
you.

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

For help on that, see these Aaron Stebner's blog entries :
http://blogs.msdn.com/astebner/archi...18/231253.aspx
http://blogs.msdn.com/astebner/articles/454956.aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================

"David Thielen" <th*****@nospam.nospamwrote in message
news:04**********************************@microso ft.com...
This is for the installer for our users so usually it will be on a Windows
2003 server that does not have VS 2005 on it.

Does anyone know of a way to determine if this needs to be run?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Scott M." wrote:

This is the program that installs ASP.NET on IIS. If you are installing VS
..NET, you shouldn't need to run this, as it is part of VS.NET's
installation. But, if the installation fails or if you wish to develop with
the .NET platform, but without VS.NET, you'll need to run this program
manually. I'm not aware of any API and the file is located in the .NET
Framework folder (C:\WINDOWS\Microsoft.NET\Framework\vxxxxxx).
"David Thielen" <th*****@nospam.nospamwrote in message
news:29**********************************@microso ft.com...
Hi;

In our setup program how do I determine if I need to run
"aspnet_regiis -i"
and if so, is there an API I can calll rather than finding that program on
the user's disk and calling it?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm





Nov 26 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.