ASP.NET app with VS2005 running on Win2003 with IIS6, and SQL2000 on a WinXP Box

I've betting the following for days... it's driving me insane:

Server Error in '/' Application.
Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

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.

The referenced token can be found here:
ConnectionRef="strMRConn_Test_System (Web.config)" [...]
ScalarCallRetval="System.Object, mscorlib, Version=,
Culture=neutral, PublicKeyToken=b77a5c561934e089">
This is in my XSD (DataSet) file.

I believe this is a compile error (not an RTE), as the default page has no connection to SQL and it's plain HTML. Yet I can buil successfully! Running (w/ or w/out debugging won't work).

The ASPNET account of the IIS6 server has full permission on the site folders (under wwwroot).

PLEASE help,

10 Years
Discussion Span
Last Post by jchalfant

This exception is occurs when user run an application that attempts to access their login information from a different machine. My method for getting around this was simple: move the executable to the user's machine.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.