2010-02-07 30 views
2

偶爾在應用程序重新啓動這個錯誤會發生:ConfigurationErrorsException「線程已被中止」上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,但它似乎沒有觸及此代碼,它在System.Web.Security.Membership.Initialize()之內的ConfigurationErrorsException中死去,然後它試圖實例化UpmMembershipProvider。如果這是UpmMembershipProvider中的錯誤,我希望在堆棧跟蹤中看到它。

什麼會導致System.Configuration.ConfigurationErrorsException - System.Web, Thread was being aborted.被提高?

+0

你有沒有找到解決這個問題的方法?我有同樣的問題。 – Gavin 2013-11-24 06:09:47

+0

對不起,我們沒有 – 2013-11-24 08:43:28

+0

我已經對此問題進行了修復。繼續討論這個問題將在這裏:https://github.com/YAFNET/YAFNET/issues/62 – Jaben 2013-11-26 02:13:01

回答

0

配置是否有任何機會重定向響應?
Server.Transfer和Response.Redirect可能導致ThreadAbortedException。

+0

我看不到任何重定向可能發生,並且它似乎只發生在應用程序重新啓動 – 2010-02-07 23:54:02