代码之家  ›  专栏  ›  技术社区  ›  Glenn Slaven

成员身份上的configurationerrorsexception“线程被中止”。provider

  •  2
  • Glenn Slaven  · 技术社区  · 15 年前

    偶尔在应用程序重新启动时会发生此错误:

    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 provider add行。我们正在使用来自ms commerce服务器的upmmembershipprovider,但是它似乎没有碰到这段代码,它在内部的configurationerrorsexception上死掉了 System.Web.Security.Membership.Initialize() 在它尝试实例化upmmembershipprovider之前。如果是upmmembershipprovider内部的错误,我希望在stacktrace内部看到它。

    什么会导致 System.Configuration.ConfigurationErrorsException - System.Web, Thread was being aborted. 被抚养?

    1 回复  |  直到 15 年前
        1
  •  0
  •   Yvo    15 年前

    配置是否有可能重定向响应?
    server.transfer和response.redirect可能导致ThreadAbortedException。