473,399 Members | 4,254 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,399 software developers and data experts.

problem debugging ASP.NET application on XP-SP2

Hi Everybody,

I've got a problem debugging ASP.NET applications on an XP SP2 System.
The Details:

Up to now I've been developing on an XP SP1 computer.
Several days ago I got a new computer with XP SP2 installed.
I moved the ASP.NET to the new computer (got the source from source safe and
compiled on that computer),
and i've run into several problems which are probably related.
The first problem is that I can't debug my application (or ANY application)
Pressing F5 in visual studio I get 'Access denied' error.
The second problem is that I can't run an application that has
<identity impersonate="True"> in the web.Config.
If the application is set to impersonate I get 'access denied' when I try to
open the web page (NOT debug it, just open it).
If I set it not to impersonate the web page loads.

The stack dump I get when the web application is set to impersonate is:
[ApplicationException: Access is denied.
]
System.Security.Principal.WindowsIdentity._Resolve Identity(IntPtr
userToken) +0
System.Security.Principal.WindowsIdentity.get_Name () +71
System.Web.Configuration.AuthorizationConfigRule.I sUserAllowed(IPrincipal
user, String verb) +106
System.Web.Configuration.AuthorizationConfig.IsUse rAllowed(IPrincipal
user, String verb) +81
System.Web.Security.UrlAuthorizationModule.OnEnter (Object source,
EventArgs eventArgs) +181

System.Web.SyncEventExecutionStep.System.Web.HttpA pplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +87

The user I'm using as has administartor permissions.
I'm using:
Visual studio 2003.
IIS 5.1
The web site in IIS is set to allow annonymous access using
IUSR_<computername> user.

If anybody can help me here,please...

Thanks Nadav
Nov 19 '05 #1
4 1531
Hi Nadav,
Check this out
http://blogs.wdevs.com/irtaza/archiv...3/30/2911.aspx
--
The best
srini
http://www.expertszone.com
"Nadav Popplewell" wrote:
Hi Everybody,

I've got a problem debugging ASP.NET applications on an XP SP2 System.
The Details:

Up to now I've been developing on an XP SP1 computer.
Several days ago I got a new computer with XP SP2 installed.
I moved the ASP.NET to the new computer (got the source from source safe and
compiled on that computer),
and i've run into several problems which are probably related.
The first problem is that I can't debug my application (or ANY application)
Pressing F5 in visual studio I get 'Access denied' error.
The second problem is that I can't run an application that has
<identity impersonate="True"> in the web.Config.
If the application is set to impersonate I get 'access denied' when I try to
open the web page (NOT debug it, just open it).
If I set it not to impersonate the web page loads.

The stack dump I get when the web application is set to impersonate is:
[ApplicationException: Access is denied.
]
System.Security.Principal.WindowsIdentity._Resolve Identity(IntPtr
userToken) +0
System.Security.Principal.WindowsIdentity.get_Name () +71
System.Web.Configuration.AuthorizationConfigRule.I sUserAllowed(IPrincipal
user, String verb) +106
System.Web.Configuration.AuthorizationConfig.IsUse rAllowed(IPrincipal
user, String verb) +81
System.Web.Security.UrlAuthorizationModule.OnEnter (Object source,
EventArgs eventArgs) +181

System.Web.SyncEventExecutionStep.System.Web.HttpA pplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +87

The user I'm using as has administartor permissions.
I'm using:
Visual studio 2003.
IIS 5.1
The web site in IIS is set to allow annonymous access using
IUSR_<computername> user.

If anybody can help me here,please...

Thanks Nadav

Nov 19 '05 #2
Hi Nadav,

Welcome to MSDN newsgroup!

For the first problem, thanks for Srini's suggestion. I suggest we try
steps in the article and please let me know the result. Additionally, after
checked the ˇ°Impersonate a Client after Authenticationˇ±, please checked
the ˇ°Debug Programsˇ± too.
As far as I know, the problem could be caused by MDM or VS7jit, so if the
above things not work well, please try the below steps:
1 Change to c:\Program Files\Common Files\Microsoft Shared\VS7Debug,
assuming VS.NET installed to default path;
2 Run vs7jit /regserver;
3 mdm /unregserver;
4 mdm /regserver;
5 Ran aspnet_regiis -ua from vs.net command prompt and then followed it
with aspnet_regiis -i;
6 Reboot the machine.

For the second issue, there is a kb article concern the problem:
http://support.microsoft.com/kb/824308/en-us
Although the solution is resolved for domain controller and Windows 2000
SP4, I have seen that this fix also works on a machine that is not a domain
controller and Windows XP SP2.

I hope the suggestions were helpful. If you have any other concerns, please
feel free to let me know.. It's my pleasure to be of assistance.

Yuan Ren [MSFT]

Microsoft Online Support

Nov 19 '05 #3
Ok, This solved the problem.
I had to add the 'Impersonate a Client after Authentication' permission to
the IWAM_* user (I didn't need to add the 'debug programs' permission).
Then I unregistered and reregistered aspnet_regiis
(I had to use aspnet_regiis -r option, aspnet_regiis -i did not add the
script mappings..)

Thanks A lot,
Nadav

Nov 19 '05 #4
Hi Nadav,

Thanks for your respones and I'm glad that you've figured out the problem.
Have a good day!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: problem debugging ASP.NET application on XP-SP2
| thread-index: AcXinlAXgtzXDAm5Q96PLuQKrhUqVQ==
| X-WBNR-Posting-Host: 212.116.164.118
| From: "=?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?=" <Ba********@newsgroup.nospam>
| References: <BA**********************************@microsoft.co m>
<88**********************************@microsoft.co m>
<3R**************@TK2MSFTNGXA01.phx.gbl>
| Subject: RE: problem debugging ASP.NET application on XP-SP2
| Date: Sat, 5 Nov 2005 22:50:02 -0800
| Lines: 10
| Message-ID: <23**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSF TNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:136377
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Ok, This solved the problem.
| I had to add the 'Impersonate a Client after Authentication' permission
to
| the IWAM_* user (I didn't need to add the 'debug programs' permission).
| Then I unregistered and reregistered aspnet_regiis
| (I had to use aspnet_regiis -r option, aspnet_regiis -i did not add the
| script mappings..)
|
| Thanks A lot,
| Nadav
|
|

Nov 19 '05 #5

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

Similar topics

12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
6
by: Kevin | last post by:
I've been unable to debug a .NET web application with Visual Studio. Every time I try to run it, I get the error message: Error while trying to run project: Unable to start debugging on the web...
0
by: tg | last post by:
I'm debugging an ex-coder's application. I get the following error message when I start the app. Can someone please point me in the right direction to resolve the error? This is VB.NET 2003...
0
by: Tequila | last post by:
Here’s the description I’d launched Visual Studio and started to write an application After some time of coding, I wanted to test it. I pressed F5 hopin to run application for debugging. I...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
0
by: Joseph S. | last post by:
hi all, debugging PHP applications interactively is possible, easy and free. I am talking about PHPEclipse and using it for debugging over several scripts or debugging through a session. Since I...
3
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the...
7
by: Rabbit | last post by:
Dear all, Does anyone know how to resolve following setup problem, I developed my application(using .net 2.0) which will connect Access database on my Win XP, everything works fine, but when I...
0
by: sameer | last post by:
Hi all, My new computer has Microsoft Windows XP Media Center Edition as the operating system. I am trying to run VStudio 2003 , ASP.NET on IIS 5.0 but every single time i run the source code of...
7
by: luker | last post by:
Hello Experts, I am writing an application for a device running windows xp embedded. I want to code on my developer pc and deploy the running executable to the embedded device. - The two boxes...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
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...

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.