Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am developing a website (in VS2010, C#, .NET 4.0) to change web.config values on remote servers. (The application will used for testing other web applications and their configurations.)

I am using impersonation to gain access with the domain admin credentials.
I have also used the .net registration tool, "aspnet_regiis -config+", on the remote server and my development machine.

The event viewer on the remote server indicates that my application is able to logon to the server, so it seems the syntax below is correct. Regardless, I am unable to access the configuration system on the remote server.

I receive the error "Unable to access the configuration system on the remote server. Make sure that the remote server allows remote configuration." when using this code:
System.Configuration.Configuration config =
    WebConfigurationManager.OpenWebConfiguration(
    "/AppUnderTest", "1", null,
    "TestServer");


The remote server is a Server 2003, Standard Edition with Service Pack 2.

Any suggestions would be greatly appreciated.
Posted
Updated 21-Aug-13 9:44am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900