Groups | Blog | Home
all groups > c# > november 2007 >

c# : Error while trying to run project [.Net 1.1]


Navaneet
11/27/2007 11:42:39 PM
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,
Navaneet
11/28/2007 7:02:05 AM
Can any one look into this?

Thanks,
Navaneet
11/29/2007 12:10:22 AM
Jon Skeet [C# MVP]
11/29/2007 12:18:29 AM
[quoted text, click to view]

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.

Navaneet
11/29/2007 8:14:33 AM
Thanks Jon,

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

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

AddThis Social Bookmark Button