473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

URGENT: Strange Prob With Web.config <<identity> section.

I am trying to impersonate user with windows account.

If I write following lines in web.config it show error
<identity impersonate="true" userName="contoso\Jane" password="pass"/>

ERROR:
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.
On the other hand if i just write like this then error goes aways and
application starts running...

<identity impersonate="true" userName="" password=""/>
I am wondering what is wrong. can any one guide.


Nov 18 '05 #1
3 2444
My guess is that the \ causes the problem perhaps replacing it with a /
would help

"Sonal" <So****@yahoo.com> wrote in message
news:e2**************@TK2MSFTNGP10.phx.gbl...
I am trying to impersonate user with windows account.

If I write following lines in web.config it show error
<identity impersonate="true" userName="contoso\Jane" password="pass"/>

ERROR:
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.
On the other hand if i just write like this then error goes aways and
application starts running...

<identity impersonate="true" userName="" password=""/>
I am wondering what is wrong. can any one guide.

Nov 18 '05 #2
gg
You need to give contoso\Jane full read and WRITE permissions in the .net
framework directory on the web server (C:\WINDOWS\Microsoft.NET\Framework)
and also perhaps in the webs root directory.
"mortb" <mortb1<noospam<@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
My guess is that the \ causes the problem perhaps replacing it with a /
would help

"Sonal" <So****@yahoo.com> wrote in message
news:e2**************@TK2MSFTNGP10.phx.gbl...
I am trying to impersonate user with windows account.

If I write following lines in web.config it show error
<identity impersonate="true" userName="contoso\Jane" password="pass"/>

ERROR:
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.
On the other hand if i just write like this then error goes aways and
application starts running...

<identity impersonate="true" userName="" password=""/>
I am wondering what is wrong. can any one guide.


Nov 18 '05 #3
HI Again,

I located the exact error... How can I resolve This.

Server Error in '/MTest' Application.
----------------------------------------------------------------------------
----

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: Error reading the password from the registry.

Source Error:

Line 86: <identity impersonate="true"
userName="registry:HKLM\Software\MyASP.NET\Identit y\ASPNET_SETREG,userName"
password="registry:HKLM\Software\MyASP.NET\Identit y\ASPNET_SETREG,passwd"/>
Line 87:
Line 88: </system.web>

Source File: c:\inetpub\wwwroot\MTest\web.config Line: 86
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573


"Sonal" <So****@yahoo.com> wrote in message
news:e2**************@TK2MSFTNGP10.phx.gbl...
I am trying to impersonate user with windows account.

If I write following lines in web.config it show error
<identity impersonate="true" userName="contoso\Jane" password="pass"/>

ERROR:
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.
On the other hand if i just write like this then error goes aways and
application starts running...

<identity impersonate="true" userName="" password=""/>
I am wondering what is wrong. can any one guide.

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Christian Binder | last post by:
Hi folks. got a problem: i want to connect to an access db which is located on a network drive (seperate server). The server's name, where the access db is located, is "SERVER001" and the server,...
4
by: Jiho Han | last post by:
I have the following defined in web.config under <configuration> node: <system.diagnostics> <switches> <add name="MainSwitch" value="4"/> </switches>
2
by: franzhe | last post by:
Hi all, in a simple ASP.Net application with resources in satellite assemblies I have the following problem: If I set <identity impersonate="true"/>, accessing a culture specific resource...
0
by: Sonal | last post by:
I am trying to impersonate user with windows account. If I write following lines in web.config it show error <identity impersonate="true" userName="contoso\Jane" password="pass"/> ERROR:...
6
by: Meena Desai | last post by:
Hi, What are the effects of using <identity impersonate="true"/> in web.config on windows auhtentication? Does it affect windows security? Thanx in advance, Meena.
2
by: cmrchs | last post by:
Hi, I'm having problems with the interpretation of roles in the <authentication> entries in web.config Scenario : I'm logging on as 'Administrator' and try to access a site for which the...
3
by: Raghuram | last post by:
Hi, What is the use of <Identity Impersonate="true" /> How can we implement this in an ASP.NET application When are we supposed to use this. please provide me the details with an Example....
1
by: nobody101 | last post by:
I have a web service configured with Anonymous access disabled. The calling client, prior to executing a method on the service, sets its network credentials for the IIS to authenticate: ...
1
by: ad | last post by:
I find an assemblies section in web.config. There are some PublicKey in it. What do these PublicKey do? What does <assembliessession do? <assemblies> <add...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.