Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys...

I have added impersonation with username and password into the web config file before that it work fine but now it is giving error.

code which i have added is:
HTML
<authentication mode="Windows" />
    <identity impersonate="True" username="domainname\username" password="password"></identity> 
   <authorization>
        <allow users="*" />
    </authorization>

when i tried to run web application from visual studio, it's giving error message below.


Microsoft Development Environment
---------------------------
Error while trying to run project: Unable to start debugging on the web server. Server side-error occurred on sending debug HTTP request.

Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing a Debug.Start Without Debugging. You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.



please help out to resolve this.
Posted
Updated 28-Mar-12 22:12pm
v4

There was some syntax error into the identity tag like case sensitivity, proper username and password


thanx for your help tooo
 
Share this answer
 
Can you please show the code which you have added in web.config?
 
Share this answer
 
Comments
sanjayv.gade 29-Mar-12 3:48am    
please check this code which i've added
<authentication mode="Windows">
<identity password="password" username="domainname\username" impersonate="True">

<authorization>

<allow users="*"> <!-- Allow all users -->

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