Default Role Provider could not be found on IIS 7 running .NET 4

一笑奈何 提交于 2019-12-03 16:18:06

I got this error when using the default MVC 4 web application. I had to add the following to web.config and the error went away. Under <system.webServer> add

<modules>
 <remove name="RoleManager"/>
</modules>

Two things:

enabled="false" should probably be enabled="true"

And I'm not convinced the applicationName="/" is helpful, but it may not be hurting, either.

I got this error message when adding an application in IIS 8 to our existing web site (Right-click on the website in IIS, select "Add Application"). The application's web.config only had the default tag, which was removing the default provider that the web site's web.config defined.

I removed the RoleManager tags completely from the application's web.config, and then the website and application started working properly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!