ASP.NET配置工具在MVC应用程序中失败

ASP.NET配置工具在MVC应用程序中失败,asp.net,Asp.net,每当我尝试在MVC应用程序中使用ASP.NET配置工具时,它都会在“安全”选项卡中显示错误。错误是: There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not be

每当我尝试在MVC应用程序中使用ASP.NET配置工具时,它都会在“安全”选项卡中显示错误。错误是:

There is a problem with your selected data store. This can be caused by an invalid
server name or credentials, or by insufficient permission. It can also be caused 
by the role manager feature not being enabled. Click the button below to be 
redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Could not load type
'LL.MvcApplication'.
请注意,
LL
是我的应用程序名。ASP.NET配置工具在非MVC web应用程序中运行良好

问题是什么?如何在MVC应用程序中使用ASP.NET身份验证


我在VS 2008和VS 2010中都试过了。

首先要检查的是web.config中的连接字符串。如果您没有(并且正在试图自动创建MeistSePT数据?),请考虑使用SQL脚本创建数据库,附加数据库,然后更改连接字符串。总之:

  • 确保已创建或正在创建数据库
  • 确保数据库已连接到服务器
  • 确保到数据库的连接字符串正确

  • 一旦你这样做了,你就应该解决问题了。我在MVC中没有遇到过这么多问题,但同样的问题也会发生在web表单中,特别是如果您没有使用SQL Express(或access?)或将其命名为非默认值。

    web.config中的应用程序名称在默认情况下显示为“/”,当我设置正确的名称(“/LL”)时,问题就解决了