Could you paste the code that's in Page_load?

--
Abdellah Elamiri
..net Developer
Efficacy through simplicity
"Luke Sanderlin" <anonymous@discussions.microsoft.com> wrote in message
news:680FC8AB-CBAA-4B9C-BA15-E1CC7EB1414E@microsoft.com...
> Could someone assist me with this issue?
> I have build a web app on my workstation (xp,vs2003 ent arch) and after
building and testing the app locally, I proceeded to copy it it's eternal
home a windows 2003 server (IIS 6) and recieved the following error. I've
seen a few solutions in my quest for sanity, and they have not been much
help. THX.
>
>
> 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 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.
>
> Stack Trace:
>
>
> [SecurityException: Request failed.]
> EPSATS.main.Page_Load(Object Sender, EventArgs e) +0
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +2106
> System.Web.UI.Page.ProcessRequest() +218
> System.Web.UI.Page.ProcessRequest(HttpContext context) +18
>
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
p.Execute() +179
> System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +87
>
>
>