Works on Server... not on Client
From: Rob Edwards (RobEdwards@Elliptus.com)
Date: 04/10/03
- Next message: Nicolas Mayoraz: "RC4 in .NET cryptographic services"
- Previous message: Todd: "Security Violation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Rob Edwards" <RobEdwards@Elliptus.com> Date: Thu, 10 Apr 2003 10:58:26 -0400
I have created an ASP.net application in Visual Studio (2003 Beta) that
creates mailboxes in an Exchange 5.5 and AD environment. The page runs
great on both my development box as well as the server itself.
Initially, the page loads without incident on another workstation. I enter
the appropriate information and validate the AD account. When I try and
create the mailbox I receive a challenge from the web server to logon:
Connecting to webserver.subdomain.domain.net
Username:
Password:
At this point it doesn't matter what user account I enter, the logon dialog
box appears for it's normal 3 times then I receive the below error:
General access denied error
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.UnauthorizedAccessException: General access denied
error
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.
Source Error:
Line 299: objNewUser.Put("Replication-Sensitivity", 20)
Line 300: objNewUser.Put("MDB-Use-Defaults", True)
Line 301: sid.SetAs(5, "WinNT://DOMAIN/" & txtNTAccount.Text &
",user")
Line 302: sidHex = sid.GetAs(ADS_SID_HEXSTRING)
Line 303: objNewUser.Put("Assoc-NT-Account", sidHex)
This (at least to me) is obviously a Security-related issue since it works
fine when run on the server itself. I have Identity Impersonate="true" in
the web.config file. The ASPNET account has the ability to logon locally
and act as part of the OS. The only authentication type is Windows
Integrated.
Any help or insight would be greatly appreciated.
Thanks,
Rob
- Next message: Nicolas Mayoraz: "RC4 in .NET cryptographic services"
- Previous message: Todd: "Security Violation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|