473,656 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="tr ue" userName="conto so\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="tr ue" userName="" password=""/>
I am wondering what is wrong. can any one guide.


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

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

If I write following lines in web.config it show error
<identity impersonate="tr ue" userName="conto so\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="tr ue" 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\Mic rosoft.NET\Fram ework)
and also perhaps in the webs root directory.
"mortb" <mortb1<noospam <@hotmail.com > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
My guess is that the \ causes the problem perhaps replacing it with a /
would help

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

If I write following lines in web.config it show error
<identity impersonate="tr ue" userName="conto so\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="tr ue" 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="tr ue"
userName="regis try:HKLM\Softwa re\MyASP.NET\Id entity\ASPNET_S ETREG,userName"
password="regis try:HKLM\Softwa re\MyASP.NET\Id entity\ASPNET_S ETREG,passwd"/>
Line 87:
Line 88: </system.web>

Source File: c:\inetpub\wwwr oot\MTest\web.c onfig Line: 86
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.573


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

If I write following lines in web.config it show error
<identity impersonate="tr ue" userName="conto so\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="tr ue" 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
1234
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, where my webApp runs is named "SERVER002". So i already learned that i have to create a user on server001 which has exactly the same name as the user on server002 (ASPNET?)...alright here comes the code: web.config: <identity impersonate="true"...
4
15628
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
7271
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 from a satellite assembly fails with the error message: "Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. ..."
0
950
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: 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
6
3130
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
2411
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 IIS-authentication method is set to 'Integrated Windows' only Following are the web.config-entries of the site : <authentication mode="Windows" /> <identity impersonate="true" /> <authorization>
3
5901
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. Raghuram
1
1336
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: CredentialCache cacheVU = new CredentialCache(); cacheVU.Add( new Uri(<my url here>), "Negotiate",new NetworkCredential( Username, Password, Domain) ); WebServiceProxy.Credentials = cacheVU;
1
2176
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 assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
0
8382
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8297
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8498
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8600
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1600
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.