Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Denied Error?

Status
Not open for further replies.

jgoodman00

Programmer
Jan 23, 2001
1,510
I have written a small ASP.NET application. I developed it on my workstation & it works perfectly. It is basically a small data-entry app which connects to a SQL Server DB.

It uses Windows Authentication to Authenticate users.
I have set IDENTITY IMPERSONATE="TRUE".

Happy with the app, I have copied the project folder onto our web-server, & configured it as an application in IIS (Win2K Server).

I have configured the Directory Access to only use Windows Authenticated users.

After all this, I still get Access denied.

Any suggestions?

James Goodman MCSE, MCDBA
 
Does it give the message:

"Login attempt failed for user NULL" ???

If so, then it's probably an IIS setting. Go to the directory security tab, edit the anonymous access settings, and I believe you are supposed to leave "Integrated Windows Authentication" and "Basic Authentication" on. I may be off on that one. I can't remember exactly, but it's definitely a combination of one or more of those settings there that will get things moving.

Some quick Googling on the issue will also raise the answer.

-paul

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
No it doesnt.
Complete message:
Code:
Server Error in '/TCTracker' Application.
--------------------------------------------------------------------------------

Access is denied. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ApplicationException: Access is denied. 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[ApplicationException: Access is denied.
]
   System.Security.Principal.WindowsIdentity._ResolveIdentity(IntPtr userToken) +0
   System.Security.Principal.WindowsIdentity.get_Name() +71
   System.Web.Configuration.AuthorizationConfigRule.IsUserAllowed(IPrincipal user, String verb) +100
   System.Web.Configuration.AuthorizationConfig.IsUserAllowed(IPrincipal user, String verb) +81
   System.Web.Security.UrlAuthorizationModule.OnEnter(Object source, EventArgs eventArgs) +178
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


James Goodman MCSE, MCDBA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top