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

时间:2014-03-25 16:56:49

标签: c# asp.net webforms

当我在调试中运行我的asp.net应用程序时,它大部分时间运行正常,但如果我将其切换到Release模式,我会收到以下错误。我不确定为什么有人可以检查任何东西?

enter image description here

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 ---

0 个答案:

没有答案