Home All Groups Group Topic Archive Search About

Error while trying to run project [.Net 1.1]

Author
28 Nov 2007 7:42 AM
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

Author
28 Nov 2007 3:02 PM
Navaneet
Can any one look into this?

Thanks,
Kumar N
Author
29 Nov 2007 8:10 AM
Navaneet
Could you please help me on this?
Author
29 Nov 2007 8:18 AM
Jon Skeet [C# MVP]
On Nov 28, 7:42 am, Navaneet <tonavan***@gmail.com> wrote:
> 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
Author
29 Nov 2007 4:14 PM
Navaneet
Thanks Jon,

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

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

Show quote
:Kumar N

AddThis Social Bookmark Button