Re: Assembly does not allow partially trusted callers
- From: "Bruce Barker" <brubar_nospamplease_@xxxxxxxxxx>
- Date: Wed, 18 Jan 2006 13:22:15 -0800
read the documentation on managed/unmanged and trusted/untrusted .net code.
basically your page is calling an untrusted code (usually unmanaged code
like a com object) and asp.net on the server is configured to not allow that
(common on a shared server).
-- bruce (sqlwork.com)
"g3000" <carlton_gregory@xxxxxxxxx> wrote in message
news:1137613327.040737.247040@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I developed on a Win2K3 Server with VS 2005
>
> Published a web app to my local drive.
>
> Copied that folder to a Win2K3 Server. Configured a new virtual
> directory
> Moved the files there.
> Modified the config file so debug=false
>
> Then tried to run it. There are basically two pages in the app. The
> first page works fine.
> The second page did not work it gave me the below error.
> The second page was supposed to show a scatter chart based on
> parameters chosen on the first page. The image for the chart is usually
> written to the folder of the asp app tree.
>
> Server Error in '/ProjectReports' 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: That assembly
> does not allow partially trusted callers.
>
> 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: That assembly does not allow partially trusted
> callers.]
> _Default.Page_Load(Object sender, EventArgs e) +0
> System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object
> o, Object t, EventArgs e) +15
> System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
> sender, EventArgs e) +34
> System.Web.UI.Control.OnLoad(EventArgs e) +99
> System.Web.UI.Control.LoadRecursive() +47
> System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +6953
> System.Web.UI.Page.ProcessRequest(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +154
> System.Web.UI.Page.ProcessRequest() +86
> System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
> +18
> System.Web.UI.Page.ProcessRequest(HttpContext context) +49
> ASP.default_aspx.ProcessRequest(HttpContext context) +4
>
> System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
> +154
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously) +64
>
>
>
>
> --------------------------------------------------------------------------------
> Version Information: Microsoft .NET Framework Version:2.0.50727.42;
> ASP.NET Version:2.0.50727.42
>
.
- Follow-Ups:
- Re: Assembly does not allow partially trusted callers
- From: Scott Allen
- Re: Assembly does not allow partially trusted callers
- From: g3000
- Re: Assembly does not allow partially trusted callers
- References:
- Prev by Date: RE: Opening a MS Access APP - if the SQL connection is not found.
- Next by Date: asp:Hyperlink NavigateUrl problem
- Previous by thread: Re: Assembly does not allow partially trusted callers
- Next by thread: Re: Assembly does not allow partially trusted callers
- Index(es):
Relevant Pages
|
Loading