Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.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# 在发布模式与调试模式下运行Asp.net时出错_C#_Asp.net_Webforms - Fatal编程技术网

C# 在发布模式与调试模式下运行Asp.net时出错

C# 在发布模式与调试模式下运行Asp.net时出错,c#,asp.net,webforms,C#,Asp.net,Webforms,当我在debug中运行asp.net应用程序时,它大部分时间运行正常,但如果我将其切换到Release模式,则会出现以下错误。我真的不知道为什么有人有我可以查到的东西 System.Exception: Error getting user roles during authentication ---> System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied. Server stack t

当我在debug中运行asp.net应用程序时,它大部分时间运行正常,但如果我将其切换到Release模式,则会出现以下错误。我真的不知道为什么有人有我可以查到的东西

System.Exception: Error getting user roles during authentication ---> System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Kroll.Kbs.Fraud.BusinessLogic.AuthService.Contract.IAuthService.GetAuthUser(String username, AuthResponse& serviceResponse)
   at Kroll.Kbs.Fraud.BusinessLogic.AuthService.Contract.AuthServiceProxy.GetAuthUser(String username, AuthResponse& serviceResponse) in c:\dev\fraud\source\FraudBusinessLogic\AuthService.Contract\AuthServiceProxy.cs:line 84
   at Kroll.Kbs.Fraud.FraudAdministration.Global.Application_AuthenticateRequest(Object sender, EventArgs e) in c:\dev\fraud\source\FraudAdministration\FraudAdministrationUI\Global.asax.cs:line 71
   --- End of inner exception stack trace ---


发布web配置是否定义了与调试不同的身份验证模式?好问题。。。发布和调试的web.config是相同的…:(您是否获得了错误的调用堆栈?是否配置了任何捆绑包?如果是,这可能是您的问题…我希望我正在使用捆绑包,但我没有…我将努力获取堆栈跟踪。)