2011-10-12 88 views
0

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

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

回答

0

默认情况下,web.config中的应用程序名称显示为“/”,当我设置专有名称(“/ LL”)时,问题已解决。

0

的第一件事情都尝试检查是在你的web.config连接字符串。如果你没有(并且试图自动创建成员资料数据?),请考虑使用sql脚本创建数据库,附加它,然后更改连接字符串。总结:

  1. 确保在创建数据库或创建
  2. 确保数据库连接到服务器
  3. 确保连接字符串到数据库是正确的

一旦你这样做,你应该过去的问题。在MVC中并没有这么多的东西,但是同样的问题发生在web表单中,尤其是在。如果您不使用SQL Express(或访问?)或将其命名为非默认值。

相关问题