Error while trying to run project [.Net 1.1]

N

Navaneet

Hi,

I added identity impersonate ="true" in web.config file, It causes
error. Following is the error-

"Error while trying to run project: Unable to start debugging on the
web server. Server side-error on sending debug HTTP request.
Make sure the server is opening correctly. Verify the syntax error in
web.config"

That means I put identity impersonate in wrong place.
Can any one tell me where is correct place to put it?

Below is sample of my web.config file.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!-- Image Path-->
<add key="ImagePath" value="\\s-lnx014-50.dgpeoria\" /
</appSettings>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="Off" />
<authentication mode="Forms">
<forms name="OSCARAuth" loginUrl="./itemloader/loginOSCAR.aspx"
protection="All" path="/" >
<credentials passwordFormat="Clear">
<user name="oscarcd" password="password" />
</credentials>
</forms>
</authentication>
<trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
<httpRuntime executionTimeout="180"/>
<pages validateRequest="false" />

<identity impersonate="true" userName="JI\offshore"
password="Jupit3r"/>

</system.web>

<location path="itemloader/CdOSCARImport.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

Note:- I am using some other network domain using VPN

Thanks,
Kumar N
 
J

Jon Skeet [C# MVP]

I added identity impersonate ="true" in web.config file, It causes
error. Following is the error-

"Error while trying to run project: Unable to start debugging on the
web server. Server side-error on sending debug HTTP request.
Make sure the server is opening correctly. Verify the syntax error in
web.config"

That means I put identity impersonate in wrong place.

No, it doesn't. It means there's a syntax error - that's not
necessarily anything to do with impersonation.

Look at this line:

<add key="ImagePath" value="\\s-lnx014-50.dgpeoria\" /

The closing angle bracket is missing.

Jon
 
N

Navaneet

Thanks Jon,

It was my mistake to write, I already close the tag.

<add key="ImagePath" value="\\s-lnx014-50.dgpeoria\" / >

:Kumar N
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top