ConfigurationErrors在“Membership.Provider”上“正在中止线程”

时间:2010-02-07 23:19:32

标签: asp.net membership-provider

偶尔会在应用重启时发生此错误:

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,但它似乎没有达到此代码,它在尝试实例化UpmMembershipProvider之前在System.Web.Security.Membership.Initialize()内的ConfigurationErrorsException上死亡。如果在UpmMembershipProvider中出现错误,我希望在堆栈跟踪中看到它。

什么可能导致System.Configuration.ConfigurationErrorsException - System.Web, Thread was being aborted.被提升?

1 个答案:

答案 0 :(得分:0)

配置是否有机会重定向响应?
Server.Transfer和Response.Redirect可能导致ThreadAbortedException。