添加强类型视图时出现 ASP.NET MVC FileNotFound 错误

发布于 2024-08-19 12:19:56 字数 801 浏览 4 评论 0原文

我是 ASP.NET MVC 新手。当我尝试在控制器中添加新的强类型视图时,出现非常奇怪的错误。我正在使用一个没有依赖项的基本类,并将“查看内容”设置为“列表”。我正在使用母版页。视图名称是标准的“索引”。这曾经工作得很好,但突然每次都会给我这个错误:

错误http://img32.imageshack.us/img32/7707/mvcioerr.png (感谢您调整我的图像的大小,Stack Overflow,而不是放置它像一位绅士一样放在一个溢出的容器中。另外,感谢您让我无法将图像转换为指向 原始图像)

每次错误消息中DLL的名称都会改变。我尝试过重新启动我的机器,但没有成功。我不知道还能尝试什么。有人可以帮我解决这个错误吗?它阻止我继续这种代码狂欢(我很少继续这样做),而且它确实给我对 ASP.NET MVC 留下了不好的印象。

我向这些人发推文,但被忽略了。

I am an ASP.NET MVC newbie. I am getting a very strange error when I attempt to add a new strongly-type view in my controller. I am using a basic class, with no dependencies, with the View content set to "List". I am using a master page. The view name is a standard "Index". This used to work just fine but it all of a sudden started giving me this error every time:

Error http://img32.imageshack.us/img32/7707/mvcioerr.png
(Thanks for resizing my image, Stack Overflow, instead of putting it in an overflowed container like a gentleman. And also, thanks for giving me no way to turn the image into a hyperlink to the original image)

The name of the DLL changes on the error message every time. I have tried restarting my machine, and that did not work. I do not know what else to try. Can anybody help me resolve this error? It is preventing me from continuing this code binge (which I rarely get to go on), and it is really giving me a bad impression of ASP.NET MVC.

I tweeted to the men, but was ignored.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只涨不跌 2024-08-26 12:19:56

我认为你需要重新安装 ASP.NET MVC :
从控制面板中删除 Microsoft ASP.NET MVCMicrosoft ASP.NET MVC - Visual Studio 工具,然后重新安装 ASP.NET MVC。
希望这有帮助。

I think you need to reinstall ASP.NET MVC :
Remove both Microsoft ASP.NET MVC and Microsoft ASP.NET MVC - Visual Studio tools from your Control Panel and reinstall ASP.NET MVC.
Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文