472,958 Members | 2,144 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

running "aspnet_regiis -i" during install

Hi;

How are we supposed to handle this. It appears that this must be run on a
system for an ASP.NET app to run. On WinXP we are finding that the user
ASPNET does not exist until this is run.

However, running this impacts all existing ASP.NET apps and sets the default
..NET for all new ones. So if we run this we can screw up all the ASP.NET apps
already on a system.

How should we handle this in our installer?

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

Cubicle Wars - http://www.windwardreports.com/film.htm
Jan 1 '07 #1
5 2786
David,

WinXP runs IIS 5 with the application pool running as ASPNET while on
Windows 2003 Server with IIS 6 the default application pool runs as
Network Service. So that could trip you up when you deploy your web
application.

To automate what you want to do with IIS you can use the MSBuild
Community Tasks which do work with IIS.

http://msbuildtasks.tigris.org/

To get started with MSBuild you can read this series I wrote which has
examples you can use directly...

http://brennan.offwhite.net/blog/200...ps-to-msbuild/

Brennan Stehling
http://brennan.offwhite.net/blog/

David Thielen wrote:
Hi;

How are we supposed to handle this. It appears that this must be run on a
system for an ASP.NET app to run. On WinXP we are finding that the user
ASPNET does not exist until this is run.

However, running this impacts all existing ASP.NET apps and sets the default
.NET for all new ones. So if we run this we can screw up all the ASP.NET apps
already on a system.

How should we handle this in our installer?

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

Cubicle Wars - http://www.windwardreports.com/film.htm
Jan 2 '07 #2
Hi Dave,

What do you mean by "ASPNET does not exist"? Do you mean it's deleted by
user after ASP.NET is installed?

I understand that you want to automate the configuration of your ASP.NET
web site in IIS. Using "aspnet_regiis -i" will upgrade old versions of
asp.net web site to updated version, which might have impact on existing
web sites, therefore you don't want to call aspnet_regiis -i in your
installer.

If ASP.NET is installed and configured correctly in the root web site, you
could use aspnet_regiis -s to configure your web site only, for example:

aspnet_regiis -s W3SVC/1/ROOT/mywebsite
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.
Jan 2 '07 #3
To avoid upgrading other web sites:

If you're redistributing the .NET 2.0 redist package, pass /noaspupgrade
command line parameters so that it will only install ASP.NET 2.0 but do not
update all web sites' script mapping. If you're calling aspreg_regiis.exe
-i, change it to -ir switch. You will then have to use aspnet_regiis -s or
-sn to manually update a web site's script mapping:

#Managing Multiple Versions of ASP.NET
http://msdn2.microsoft.com/en-us/lib...9b(VS.80).aspx
To prevent the installation from automatically updating the script maps of
other applications on the computer, use the /noaspnetupgrade option when
issuing the Dotnetfx.exe command. This option causes the setup program to
use the -ir option of Aspnet_regiis.exe instead, which skips the automatic
script map updates, default documentation, and MIME swapping steps.

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.

Jan 2 '07 #4
Ok, half way there.

For Windows 2003 this solves it.

For WinXP I get the message that ASPNET is not a user if I use -ir. If I use
-i then it does work. I am getting this message when setting access to a
created directory in the installer.

Any ideas?

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

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


"Walter Wang [MSFT]" wrote:
To avoid upgrading other web sites:

If you're redistributing the .NET 2.0 redist package, pass /noaspupgrade
command line parameters so that it will only install ASP.NET 2.0 but do not
update all web sites' script mapping. If you're calling aspreg_regiis.exe
-i, change it to -ir switch. You will then have to use aspnet_regiis -s or
-sn to manually update a web site's script mapping:

#Managing Multiple Versions of ASP.NET
http://msdn2.microsoft.com/en-us/lib...9b(VS.80).aspx
To prevent the installation from automatically updating the script maps of
other applications on the computer, use the /noaspnetupgrade option when
issuing the Dotnetfx.exe command. This option causes the setup program to
use the -ir option of Aspnet_regiis.exe instead, which skips the automatic
script map updates, default documentation, and MIME swapping steps.

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.

Jan 3 '07 #5
I think it may be the order we do this in - we need to call aspnet_regiis -ir
BEFORE we set the folder permissions. Will let you know how it goes.

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

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


"David Thielen" wrote:
Ok, half way there.

For Windows 2003 this solves it.

For WinXP I get the message that ASPNET is not a user if I use -ir. If I use
-i then it does work. I am getting this message when setting access to a
created directory in the installer.

Any ideas?

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

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


"Walter Wang [MSFT]" wrote:
To avoid upgrading other web sites:

If you're redistributing the .NET 2.0 redist package, pass /noaspupgrade
command line parameters so that it will only install ASP.NET 2.0 but do not
update all web sites' script mapping. If you're calling aspreg_regiis.exe
-i, change it to -ir switch. You will then have to use aspnet_regiis -s or
-sn to manually update a web site's script mapping:

#Managing Multiple Versions of ASP.NET
http://msdn2.microsoft.com/en-us/lib...9b(VS.80).aspx
To prevent the installation from automatically updating the script maps of
other applications on the computer, use the /noaspnetupgrade option when
issuing the Dotnetfx.exe command. This option causes the setup program to
use the -ir option of Aspnet_regiis.exe instead, which skips the automatic
script map updates, default documentation, and MIME swapping steps.

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.
Jan 3 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Venkat | last post by:
I just installed Visual Studio.Net 2003 and that is supposed to add that asp.net 1.1 extension. I got an error message while opening ASP.NET project.Error is : "visual studio.net has...
17
by: JStemper | last post by:
On one of my localhost sites I'm getting a message to run aspnet_regiis -c to correct some scripting issues. When I try to run the listed command I get another error: "You must have...
1
by: Venkat | last post by:
I just installed Visual Studio.Net 2003 and that is supposed to add that asp.net 1.1 extension. I got an error message while opening ASP.NET project.Error is : "visual studio.net has...
3
by: Mammaloe | last post by:
Hi, I have VS2005 Beta2. I'm trying to publish a Web Site (as described in http://msdn2.microsoft.com/en-us/library/1y1404zt.aspx). When I run the site from Visual Studio on Visual Studio's...
4
by: Renilkumar | last post by:
Hello, My application sitting on the shared drive uses framework 1.1 and my local system has both 1.1 & 2.0. With this If I open the application its saying "Your code is written on the older...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.