ConfigurationErrorsException"线程已被中止"在Membership.Provider

问题描述:

偶尔在App重启将出现此错误:

Occasionally on app restart this error will occur:

System.Configuration.ConfigurationErrorsException - System.Web, Thread was being aborted.     
(C:\Inetpub\web.config line 417) 
at System.Web.Security.Membership.Initialize() 
at System.Web.Security.Membership.get_Provider()
...

在它的应用程序需要重新启动才能清除错误,在此之后的每个页面请求引起了同样的错误。 417线是在web.config中Membrship提供程序添加一行。我们使用来自MS的Commerce Server的UpmMembershipProvider,但它似乎并没有被触及这个code,它是死在里面 System.Web.Security.Membership.Initialize的ConfigurationErrorsException()之前它试图实例化UpmMembershipProvider。如果是内部UpmMembershipProvider错误我希望看到它的堆栈跟踪中。

When it does the app needs to be restarted to clear the error, every page request after this raises the same bug. Line 417 is the Membrship provider add line in web.config. We're using the UpmMembershipProvider from MS Commerce Server, but it doesn't seem to be hitting this code, it's dying on the ConfigurationErrorsException inside System.Web.Security.Membership.Initialize() before it tried to instantiate the UpmMembershipProvider. If it was an error inside UpmMembershipProvider I'd expect to see it inside the stacktrace.

什么会导致 System.Configuration.ConfigurationErrorsException - System.Web程序,线程已被中止来筹集?

是任何机会重定向响应的配置?结果
Server.Transfer的Response.Redirect的和可能导致ThreadAbortedException。

Is the configuration by any chance redirecting the response?
Server.Transfer and Response.Redirect can cause a ThreadAbortedException.