网站管理工具不能与ASP.NET MVC一起使用 [英] Web Site Administration Tool Not Working with ASP.NET MVC

查看:63
本文介绍了网站管理工具不能与ASP.NET MVC一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是从ASP.NET MVC开始,我正在尝试使用这种新体系结构进行身份验证.

I'm just starting with ASP.NET MVC and I was trying the Authentication with this new architecture.

因此,我开始在官方网站上关注教程,而当我尝试通过网站管理工具添加一些用户时,我发现了此错误:

So, I started following a tutorial in the official site and, while I was trying to add some users through the Web Site Administration Tool, I found this error:

您选择的数据存储有问题.这可能是由于 无效的服务器名称或凭据,或者权限不足. 也可能是由于未启用角色管理器功能引起的. 单击下面的按钮以重定向到一个页面,您可以在其中选择 一个新的数据存储.

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.

以下消息可能有助于诊断问题:无法加载类型 "MyMvcApp.MvcApplication".

The following message may help in diagnosing the problem: Could not load type 'MyMvcApp.MvcApplication'.

现在,我在web.config中唯一更改的是连接字符串,并且我确定连接字符串不是问题所在(与我在其他项目中使用的相同).

Now, the only thing I changed in the web.config was the connection string and, I'm sure the connection string is not the problem (is the same I'm using in other project).

编辑:这是连接字符串:"Data Source=myMachine\SqlExpress;Initial Catalog=TestDB;User ID=TestUser;Password=123456"

EDIT: Here is the connection string: "Data Source=myMachine\SqlExpress;Initial Catalog=TestDB;User ID=TestUser;Password=123456"

我尝试了几件事,并且用Google搜索了很多,但没有任何效果.

I tried several things and googled a lot, but nothing worked.

那么,有什么想法吗?如我所说,除了连接字符串外,我没有更改web.config中的任何内容.

So, any ideas? as I said, I did not change anything in the web.config besides the connection string.

预先感谢

推荐答案

发现了问题:我只需要 COMPILE ()解决方案之前,开始WSAT.

Found the problem: I just need to COMPILE the solution BEFORE starting the WSAT.

感谢大家的回答.

这篇关于网站管理工具不能与ASP.NET MVC一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆