Re: When do I need to run "aspnet_regiis -i"?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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 español : http://asp.net.do/foros/
===================================
"David Thielen" <thielen@xxxxxxxxxxxxx> wrote in message
news:993D6D2A-AE17-4FD7-9670-D919C73D8315@xxxxxxxxxxxxxxxx
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" <thielen@xxxxxxxxxxxxx> wrote in message
news:8BAAA65E-7805-47C1-A286-64D3D04DE94D@xxxxxxxxxxxxxxxx
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/archive/2004/09/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" <thielen@xxxxxxxxxxxxx> wrote in message
news:04169E29-3900-42FC-BD60-8BF13B3A2BD2@xxxxxxxxxxxxxxxx
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" <thielen@xxxxxxxxxxxxx> wrote in message
news:2979C6E9-A851-4EDC-BF60-578D83DE86B6@xxxxxxxxxxxxxxxx
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














.



Relevant Pages

  • Re: Open ports?
    ... Initially, Win2k-Server was installed without IIS and SP2 installed, active ... This server isn't going to be as secure as possible. ... > Microsoft recommends not installing OWA on the same server that is running ... > You may want to consider using two firewalls or a firewall with three NICs ...
    (microsoft.public.win2000.security)
  • Re: Open Ports....How to block them all....?
    ... >> What can be done to secure this server so that this doesn't keep> happening? ... Frequently this happens through an IIS> vulnerability. ... Installing Serv-U software typically involves a> person having the ability to remotely run commands and install files on your> system, ... > Remember that security is not just patches but also proper configuration and> third party hardening tools. ...
    (microsoft.public.inetserver.iis.security)
  • RE: Microsoft .NET, ASP.NET, and IIS - any opinions?
    ... concerns were over the potential accessibility of the compilers and code ... through the server, any new ports that might have to be opened, and things ... > To the best of my knowledge, the SDK doesn't seriously modify IIS except ... > installing Perl, ...
    (Focus-Microsoft)
  • Re: CCM Server Framework Pool dies along with W3SVC in event log
    ... What's odd is that SMS and IIS are working ... installing and configuring the Site Server. ... "Marin Marinov" wrote: ...
    (microsoft.public.sms.admin)
  • Re: Win2k3,IIS6,FPSE2002 Help!
    ... I'm about to uninstall/reinstall IIS and FPSE again. ... Should I select front page 2002 server ... separately after installing IIS? ... > Mukilteo, WA USA ...
    (microsoft.public.frontpage.extensions.windowsnt)