473,378 Members | 1,498 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 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 2804
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.