Solved doesn't work

Posted on 2002-07-08
Last Modified: 2013-11-25
Hello experts,
in my environment
- Operating System: Windows 2000 Server
- Internet Information Service 5.0
- Visual Studio .Net
I cannot establish a connection to my IIS using
-- IE 6.0 gives the following info:
The server application is not available.
The web application on this web server is currently not available. Please click on 'refresh' to repeat this action.
Administration hint: a more detailed info concerning the error exists in system event protocol of the web server.
-- here is the event protocol info:
aspnet_wp.exe couldn't be started, because the userid and/or the password defined in processModel section in the configuration file are invalid.
I checked the file machine.config and found the following related entries:
<section name="processModel" type="System.Web.Configuration.ProcessModelConfigurationHandler, System.Web, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly"/>
<processModel enable="true" timeout="Infinite" idleTimeout="Infinite" shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000" restartQueueLimit="10" memoryLimit="60" webGarden="false" cpuMask="0xffffffff" userName="machine" password="AutoGenerate" logLevel="Errors" clientConnectedCheck="0:00:05" comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate" responseRestartDeadlockInterval="00:09:00" responseDeadlockInterval="00:03:00" maxWorkerThreads="25" maxIoThreads="25"/>
I cannot see what's wrong.

The same application works in the following environment exactly as expected:
- Windows XP Professional
- IIS 5.1
- Visual Studio .Net

Does anyone know what could be wrong?

Thank you HStrix

Question by:HStrix
  • 4
  • 4

Expert Comment

ID: 7137301
the userName="machine" password="AutoGenerate" in your machine.config mean that the ASP.NET application process will try and login using the user account ASPNET (aspnet_wp account).  Do you have this account defined on your machine?  

It should be created during the installation of .NET.  If it doesn't exist - or someone has changed the password, then the ASP.NET worker process can not start (at least not using the machine.config that you have).

you have a couple of options:

try removing and reinstalling .NET - this should (re)create the ASPNET account and machine.config

try changing the username and password settings in machine.config to an account that does work - or create a new account for the ASP.NET process and change machine.config to use this

Author Comment

ID: 7137409
Thank you,
the user ASPNET did exist.
Nevertheless I created a new user
(for three groups: DebugUser, DomainUser, WebUser).
I changed userName and password to my settings.
But the system still tries to use ASPNET instead of my one.
Do I need to change anything in
<section name="processModel" type="System.Web.Configuration.ProcessModelConfigurationHandler, System.Web, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly"/>
as well?

Expert Comment

ID: 7137491
You should just need to change the userName="" password="" in <processModel>.  I just tried it on my machine, and had to reboot for the changes to take effect.  You could probably just restart some processes to get the same effect - but rebooting should do the trick
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.


Author Comment

ID: 7137498
OK, I'll set both to empty string and will reboot.
But which user is used in that case?

Expert Comment

ID: 7137525
No! When I said userName="" password="", I was just letting you know which attributes to change!

Put the correct userid and password in the quotes (i.e. the userid for the new user you created to run the ASP.NET worker process, and the password you specified for it)

- then reboot!  OK, so maybe userName="" password="" was a but misleading

Expert Comment

ID: 7137579
Also, bear in mind that it's not a very good idea to store password info in any file.  Especially in clear text on a web server.  

Although the machine.config shouldn't be accessable to unautorised users, security holes have been found in the past that allow access to these kind of files.

If this is a production machine, if at all possible, try and get the ASPNET user working again. And put the machine.config back to it's default.  Try removing the account, and uninstalling .net - then reinstall .NET
LVL 23

Accepted Solution

naveenkohli earned 100 total points
ID: 7137799
Incase of WIndows 2000 Server (Domain Controller), the <processModel> info in MAchine.config file needs to be changed. Change it to "SYSTEM" from "machine". This is a known issue for domain controllers.
Following link should give you more details on the process identity.

When you make changes to .config file, there is no need to reboot. You simply need to restart IIS. It will oad the changed .config file into process.

Incase of Windows XP, the process model does not need SYSTEM previlieges, therfore you don't have to make any changes to <processModel> and it works out of the box.


Author Comment

ID: 7137819
Thank you,
in the first instance my intension was to get it working under Windows 2000 too.
It is NOT a production environment, I'm using localhost.
But until now, I was not able to get working.
I checked also the permissions for the directories,
and - everything looks fine to me.
In the meantime I looked a little bit around and found the following link:
This sounds very familiar to me.
I'll give the information about the result.

Author Comment

ID: 7137964
I've applied all of the information available in the above link.
And - I could make it working.
The problem is quite strange.
I'm looking forward to an appropriate patch from Microsoft.
The current solution is a workaround only.

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change Format on Data when exporting to Excel 4 32
Where to download and how to install sqldmo.dll 5 81
Moving code from one TFS branch to another 3 25
PL SQL Developer 7 32
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now