Asp.net mvc 4 visual studio express 2013角色管理器未关闭
我已经从visual web developer 2010切换到visual studio 2013 for web,除了角色管理器不想关闭之外,一切都正常。我不知道我正在使用的是不是LocalDB connectionstring,但这个问题不想停止,这是我收到的错误图片 这是我的web.configAsp.net mvc 4 visual studio express 2013角色管理器未关闭,asp.net-mvc-4,role-manager,Asp.net Mvc 4,Role Manager,我已经从visual web developer 2010切换到visual studio 2013 for web,除了角色管理器不想关闭之外,一切都正常。我不知道我正在使用的是不是LocalDB connectionstring,但这个问题不想停止,这是我收到的错误图片 这是我的web.config <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> </
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
</configSections>
<appSettings>
<add key="webpages:Version" value="2.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="PreserveLoginUrl" value="true" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
<connectionStrings>
<add name="looglercontext" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=ignacio;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\ignacio.mdf" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.0" />
<authentication mode="Forms">
<forms name=".loog" loginUrl="~/Account/login" timeout="300" protection="All" path="/" requireSSL="false" slidingExpiration="true" cookieless="UseCookies" />
</authentication>
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
</namespaces>
</pages>
<roleManager enabled="false">
<providers>
<clear />
</providers>
</roleManager>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="720" />
<httpModules>
<remove name="RoleManager" />
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
<add name="ImageResizingModule" type="ImageResizer.InterceptModule" />
</httpModules>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />
</modules>
</system.webServer>
// runtime
</configuration>
//运行时
这就是我的web.config。请注意,这些是关键属性
<connectionStrings>
<add name="looglercontext" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=ignacio;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\ignacio.mdf" providerName="System.Data.SqlClient" />
</connectionStrings>
<remove name="RoleManager" />
<roleManager enabled="false">
<providers>
<clear />
</providers>
</roleManager>
这是我第一次使用LocalDB,所以我不能100%确定connectionstring是否错误,数据库是否是app_data文件夹中的本地数据库,rolemanager代码是否与VS 2010中的代码相同,是否有关闭rolemanager的建议?您是否尝试过通过删除SQL mgmt studio和APP_DATA文件夹中的数据库来重建数据库?是的,我尝试过,但这个问题似乎一直存在