Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/458.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# '中的服务器错误/';应用System.Security.SecurityException:该程序集不允许部分受信任的调用方_C#_Asp.net_Iis 7 - Fatal编程技术网

C# '中的服务器错误/';应用System.Security.SecurityException:该程序集不允许部分受信任的调用方

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

在服务器上部署时,我在某些页面上遇到此错误

我的应用程序托管在专用服务器上,而不是共享服务器上

我不确定如何修复此错误。 我读过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.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-