December 09, 2003

aspnet_wp.exe could not be launched

Earlier I had issues to launch aspnet_wp.exe, when I started playing around dot net and xp but I had it fixed. Few days’ back I started getting an error message saying
"Aspnet_wp.exe could not be launched because the username and/or password
supplied in the processmodel section of the config file are invalid"

Actually it was due to my fault of messing with the process account to do some test and tried running some application. I was frustrated by not able to find a fix to the problem. During my search I found a document, which explained the same problem, I had with asp.net configuration but they suggested changing the process account to system in the machine.config file (in the section) which is wired, because of the big security hole by using the system account for a web application.


And then I found another document How To: Create a Custom Account to Run ASP.NET which I thought would fix the problem, because it tells you how you can customize your asp.net application by not using the default account but all in vain.

I started getting another error "Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services." which I could finally resolve by running the command to register/fix the asp.net (
%windir%\Microsoft.NET\Framework\v1.0.4322\aspnet_regiis.exe -i )

Which I should have in the first place but it was good learning..

And finally I am up and running :-).


Posted by Anilzown at December 9, 2003 11:33 PM
Comments

Your tip on resolving the error - "Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services"

was of great help. Thank you.
Rohit Mathur
Atlanta

Posted by: Rohit Mathur at January 8, 2004 11:31 AM

I had similar problems. My system had .NET framework v1.0 and v1.1. It just stopped working after a while. Any permissions change to ASPNET user privileges, machine.config file did not fix the issue.

I uninstalled both the frameworks (v1.0 and v1.1) and reinstalled v1.1 (which automatically runs aspnet_regiis.exe -i executable) and everything seem to work now.

Posted by: Belagodu at January 13, 2004 05:41 PM

Hello:
I had the same problem after I messed around with the userid aspnet created by .net. I am trying the sample of web service using ado.net. I have the sql server MDAC installed and all samples installed. In the connection the user name was sa so I changed to aspnet. I am still getting an error may be you can help. The following is the error:
system.Data.OleDb.OleDbException: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied

Sql server does exist, becuase I created a DSN and pointed it the PUB database. So it's got to be the user running the script. It's the Iuser something correct? Can you please Help

Posted by: Raj at January 17, 2004 09:35 PM

I first thing I would check is if the asp user has access to the folder where sql server is installed, if not then give access to the user.

Posted by: anilzown at January 18, 2004 02:43 PM

I don't think ASPNET user gives logon privelages. I know this account was created by the install. I don't know the password. So I did the change of the password and that's how all the problems started and I found your site with help to register .net again. I can use some other account? I also have a SQL Server on an IP address. I am connected to it via VPN. I can get to that server using the password and uid I have via odbc dsn. Now should that work? So here is my connection string:
string cs = "provider=sqloledb;server=(10.130.1.5);" +
"database=pubs;uid=raj;pwd=;";

Even this is giving me the same error.

Thanks for your assistance in advance.
Raj

Posted by: raj at January 18, 2004 07:35 PM

Found another variation on this, and another fix.

* we saw this error when we installed v1.0 and fixed it with the "weak user for asp.net" in the machine .config file. Took a while to figure this out but it was a relief when it was fixed.

* then one day, we naively upgraded to .net v1.1. And it all came back! But the original fix wasn't working any more.

* if you read through MS's "clear as mud" documentation at (http://support.microsoft.com/default.aspx?scid=kb;en-us;Q315158) it says that

Note With ASP.NET 1.1, the identity of the ASPNET process is IWAM_MachineName, and this problem does not apply.

...but doesn't tell you anything about what happens if you apply the 1.0 fix and then upgrade to 1.1!

It's also a little confusing that if you look in the microsoft.net folder in the system root directory you will find the machine .config file under the v1.o and nothing under v1.1. (ok, whatever!)

The fix we finally found was this:
* go back into the machine.config file
* change the username in the processmodel section to IWAM_MachineName (where "MachineName" is the name of the box where you are running).
* change the password to autogenerate (this is the key fix!)

I couldn't find this reference anywhere else and stumbled upon ths solution. Maybe I'm just slow, but if anyone out there is like me I hope this helps!

I'm pretty sure that uninstalling v1.0 and reinstalling v1.1 would do the same thing but I don't ahve all of the permissions to do this and what I described is more expedient...at least for me.

Good luck and happy postings.


Keywords:
"aspnet_wp.exe could not be launched because the username and/or password supplied in the processModel section of the config file are invalid."

"asp.net v1.0.3705"
"asp.net v1.1.4322"

Posted by: Dave at January 23, 2004 09:28 AM

Thanks Dave for the assistance.
The only variation being, for my machine the username in the processmodel section of machine.config file is "machine" and password - the one i set for ASP account in user profile/control panel.
Ankit Mehra
Philly

Posted by: Ankit Mehra at March 4, 2004 10:24 PM

Another possible solution, without uninstall / reinstall.

Start > Prog Files > Microsoft VS.Net > Microsoft VS.Net Tools > Microsoft VS.Net Command Prompt

then type:

aspnet_regiis -r

this usually fixes the problem.

Kris

Posted by: Kristian Kish at March 18, 2004 12:23 AM

Hi,
I am trying to open a web application from VB.NET, but I am getting this message:

"Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services."

I tried all the solutions in this site, but no use. My operating system is Windows XP media edition and IIS version is 5.1. I have Norton Antivirus Corporate Edition at my computer. Can it be a problem? Please help me with this.

Thanks,
Lakshmi

Posted by: Lakshmi at April 14, 2004 05:59 PM