Problem Debugging Web App

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

When trying to run my C# web app (either direct or through VS.NET), I get the following error:

Server Error in '/JSEMS.Recruitment.WebClient' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Required permissions cannot be acquired.

Source Error:


[No relevant source lines]


Source File: machine.config Line: 199

Any help would be greatly appreciated.

Thanks!

Ian
 
Most likely your app is attempting to do some action for which it does not
have sufficient permission under the identity it runs under.
An easy workaround (although you should be aware of the security issues
involved in a deployment scenario) is to change the userName in the
machine.config "processModel" section from "machine" to read "system"
Peter

R. Ian Lee said:
Hello,

When trying to run my C# web app (either direct or through VS.NET), I get the following error:

Server Error in '/JSEMS.Recruitment.WebClient' Application.
-------------------------------------------------------------------------- ------

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.
Parser Error Message: Required permissions cannot be acquired.

Source Error:


[No relevant source lines]


Source File: machine.config Line: 199

Any help would be greatly appreciated.

Thanks!

Ian
 
another option to consider: your app cannot find or cannot read the
web.config file itself. Make sure that your permissions are set so that
this file can be read by the running identity.

R. Ian Lee said:
Hello,

When trying to run my C# web app (either direct or through VS.NET), I get the following error:

Server Error in '/JSEMS.Recruitment.WebClient' Application.
-------------------------------------------------------------------------- ------

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.
Parser Error Message: Required permissions cannot be acquired.

Source Error:


[No relevant source lines]


Source File: machine.config Line: 199

Any help would be greatly appreciated.

Thanks!

Ian
 
Peter & Nick

I tried both of your suggestions and I'm still getting the same error. When I deploy this application to the server using an .msi I do not get this problem and other developers are not getting it. I've given the ASPNET & IUSR_ accounts access. Are there any others that need to be granted? Any more pieces of wisdom?

Thanks

Ian
 
Back
Top