我最近遇到了在visualstudio2008下运行asp.netweb应用程序的问题。我收到错误“typeisnotresolvedformember...customUserPrincipal”。追踪各种讨论组发现,当您针对Thread.CurrentPrincipal分配自定义主体时,VisualStudio的Web服务器似乎存在问题。在我的代码中,我现在使用...HttpContext.Current.User=myCustomPrincipal//Thread.CurrentPrincipal=myCustomPrincipal我很高兴我排除了错误,但它回避了“这两种设置委托
我最近遇到了在visualstudio2008下运行asp.netweb应用程序的问题。我收到错误“typeisnotresolvedformember...customUserPrincipal”。追踪各种讨论组发现,当您针对Thread.CurrentPrincipal分配自定义主体时,VisualStudio的Web服务器似乎存在问题。在我的代码中,我现在使用...HttpContext.Current.User=myCustomPrincipal//Thread.CurrentPrincipal=myCustomPrincipal我很高兴我排除了错误,但它回避了“这两种设置委托