Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Config File at Project Startup 2

Status
Not open for further replies.

Terpsfan

Programmer
Dec 8, 2000
954
US
I tried to run a simple ASP.NET application and when I tried to compile and run the project I got this error message: Error While Trying to Run Project: Unable to Start Debugging on Web Server.

Then when I go to the Event Viewer I am getting this message in the Application Log: "aspnet_wp.exe could not be launched because the username and/or password in the processModel of the config file are invalid."

When it talks about the config file, is it referring to the web.config file located within the project? When I opened that file I looked at this information:
<sessionState
mode=&quot;InProc&quot;
stateConnectionString=&quot;tcpip=127.0.0.1:42424&quot;
sqlConnectionString=&quot;data source=127.0.0.1;user id=sa;password= &quot;
cookieless=&quot;false&quot;
timeout=&quot;20&quot;
/>

I am running Windows 2000 Server with IIS 5.0. I have no problems at all running regular ASP pages, but can't seem to get anything going on the ASP.NET pages. Please help...
 
Hi,
I picked this info from the .NET documenatation. I think this is what you are after:


1)Create a user account on the computer named ASPUSER, and then add this account to the Users group.

NOTE: You can also use the ASPNET account that the .NET Framework created if you change the password on this account. You must know the password on this account because you add the password to the <processModel> section later in these steps.


2)Grant the ASPUSER or the ASPNET account the Log on as a batch job user right. Make sure that this change appears in the Local Security Policy settings.

NOTE: To grant the Log on as a batch job user right on this account, you may have to grant this user right in each of the following security policies (From the Control Panel/Administrative Tools):


Domain Controller Security Policy
Domain Security Policy
Local Security Policy

NOTE: You may have to reboot the server for these changes to take effect.


3)Make sure that the ASPUSER or the ASPNET account has permission to access all of the necessary directories and files to start the Aspnet_wp.exe process and to serve the ASP.NET pages.

4)Open the Machine.config file.


5)In the <processModel> section of the Machine.config file, change the userName and the password attributes to the name and the password of the account that you created in step 1. For example:


6)userName=&quot;DomainName\ASPUSER&quot; password=&quot;ASPUSERpassword&quot;
Save the changes to the Machine.config file.


 
Thanks Julia, that was the RIGHT solution. Thanks so much... None of the books I had read on ASPNET had discussed this situation. I'm not sure if it had to do with the fact that I have Active Directory running or not.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top