.Net 4.0 System.Web.Security.MembershipProvider ambiguous reference?

后端 未结 2 1923
庸人自扰
庸人自扰 2020-12-17 14:50

I have recently upgraded my BlogEngine.Net installation to 1.6 and .Net 4.0, however, I did not build BlogEngine.Core when I performed the upgrade. However, when I try to bu

相关标签:
2条回答
  • 2020-12-17 15:24

    I just dealt with this same issue when creating a custom membership provider for my web application. You need to remove the reference to System.Web and add the following references. - System.Web.ApplicationServices - System.Configuration

    0 讨论(0)
  • 2020-12-17 15:38

    Problem solved. System.Web.Security namespace is a member of System.Web, however, it is also a member of System.Web.ApplicationServices. The project had a reference to System.Web, and a using statement referenced System.Web.Security, so IntelliSense did not throw a flag when specifying the class. However, the project was missing a reference to to System.Web.ApplicationServices. The project had a reference to the class, but it could not load the class because the containing assembly (...ApplicationServices) was missing.

    0 讨论(0)
提交回复
热议问题