473,402 Members | 2,053 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,402 software developers and data experts.

System.Unauthorized.Access.Exception

ASP.NET is not authorized to access the requested resource is the error. I
am using impersonation and have impersonate =true, also anymonous access for
the virtual directory is not enabled so it should be using the windows
authentication. This is on Server2003 machine. The same code works fine on
a windows xp machine which is the development machine. Any ideas? Thanks.
--
Paul G
Software engineer.
Jan 19 '06 #1
1 2082
I would turn on trace and add a trace.write line for the currentprincipal.
That should tell you who the code is running as.

--
----
700cb Development, Inc.
http://www.700cb.net
..NET utilities, developer tools,
and enterprise solutions

"=?Utf-8?B?UGF1bA==?=" <Pa**@discussions.microsoft.com> wrote in
news:80**********************************@microsof t.com:
ASP.NET is not authorized to access the requested resource is the
error. I am using impersonation and have impersonate =true, also
anymonous access for the virtual directory is not enabled so it should
be using the windows authentication. This is on Server2003 machine.
The same code works fine on a windows xp machine which is the
development machine. Any ideas? Thanks.


Mar 13 '06 #2

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

Similar topics

2
by: Jayakumar | last post by:
Hi, I am trying to convert a word document to pdf file from java for this, I am using a asp file to convert doc file to pdf. I got it working when I put the url which has file name as the query...
7
by: Eran Kampf | last post by:
I am trying to dynamically create directories in my ASP.NET application (I am using Server.MapPath("/")+"test" as the folder) and I am getting a DirectoryNotFoundException saying "Could not find a...
0
by: Pmcg | last post by:
I would appreciate any help with the following, havn't found any answers for this in my research to date. I am trying to retreive a web page (a htm file intially) from a vdir on an intranet site...
3
by: pagates | last post by:
Hi All, I am attempting to write values to the registry, but get an UnauthorizedAccessException when I try to do a SetValue on an existing key. However, I can create the key, with a value, when...
0
by: MattC | last post by:
Hi, I'm trying to use the Office PIA to access MSGraph. I've placed Microsoft.Office.Interop.Graph.dll in with my C# code and added it as a reference to the project. The code compiles,...
1
by: roadie.girl | last post by:
Hey guys - I'm really new to this .NET programming so please bear with me ... (vb.NET) I'm trying to fill in the list contents of a combo box on the open event of a form. this list will list...
0
by: Bank of America | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
1
by: gnewsgroup | last post by:
In my web application, I need to access a simple web site on a remote host. That web site only allows Integrated Windows Authentication. So, in my web application, I collect user name, password...
6
by: coconet | last post by:
I want to block access to my ASP.NET 2.0 web page if the time is between 3:00 and 4:00. I know how to do the date math - is it proper to throw an UnauthorizedAccessException at that time? I want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
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...

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.