C# '中的服务器错误/';应用System.Security.SecurityException:该程序集不允许部分受信任的调用方
在服务器上部署时,我在某些页面上遇到此错误 我的应用程序托管在专用服务器上,而不是共享服务器上 我不确定如何修复此错误。 我读过StackOverflow和asp.net论坛网站上的一些帖子 在我的cs文件中C# '中的服务器错误/';应用System.Security.SecurityException:该程序集不允许部分受信任的调用方,c#,asp.net,iis-7,C#,Asp.net,Iis 7,在服务器上部署时,我在某些页面上遇到此错误 我的应用程序托管在专用服务器上,而不是共享服务器上 我不确定如何修复此错误。 我读过StackOverflow和asp.net论坛网站上的一些帖子 在我的cs文件中 using System; using System.Collections.Generic; using System.Web.UI.WebControls; using System.Web.UI; using System.Web.Security; using com.paypa
using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.Web.Security;
using com.paypal.sdk.services;
using com.paypal.sdk.profiles;
using com.paypal.sdk.util;
using System.Configuration;
using System.Web;
using System.Linq;
堆栈跟踪
[SecurityException: That assembly does not allow partially trusted callers.]
GlaziersCenter.cart.Page_Load(Object sender, EventArgs e) +0
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.cart_aspx.ProcessRequest(HttpContext context) in App_Web_sa5qpq1w.5.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
您很可能需要联系托管服务以更改信任级别。这是哪个PayPal SDK-
com.PayPal.SDK.services
?PayPal_base.dll-