473,770 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

running "aspnet_reg iis -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_windwa rd_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Jan 1 '07 #1
5 2833
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_windwa rd_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_reg iis -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.e xe
-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.e xe 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_windwa rd_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.e xe
-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.e xe 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_windwa rd_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_windwa rd_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.e xe
-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.e xe 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
1911
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 detected that the specified web server is not running ASP.net version 1.1. You will be
17
4844
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 administrative rights on this machine in order to run this tool." I have verified that I have administrative rights on the box as my normal login. I have also logged in as the local administrator, tried the same thing and get the same message.
1
237
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 detected that the specified web server is not running ASP.net version 1.1. You will be
3
23586
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 webserver, the Web Site runs fine. When I publish the web site, I'm getting the following error message: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and
4
1552
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 version and you should convert to the new version before editing"..I don't want to migrate to the newer version. So what I did is, ran the aspnet_regiis -i in my local system under ver1.1 folder. But even after running this its asking to convert to newer...
0
9453
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10254
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8929
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7451
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.