简体   繁体   English

“找不到资源。” ASP.NET MVC 2.0 RC和Visual Studio 2010 RC

[英]“The resource cannot be found.” ASP.NET MVC 2.0 RC and Visual Studio 2010 RC

I opened a solution in Visual Studio 2010 RC that I previously created using Visual Studio 2008 and ASP.NET MVC 2.0 RC using the 3.5 framework. 我在Visual Studio 2010 RC中打开了一个解决方案,该解决方案是我以前使用Visual Studio 2008和使用3.5框架的ASP.NET MVC 2.0 RC创建的。 When I tested it I received a 404 error. 测试时,我收到404错误。 I tried adding the default page as described in this post but got an invalid route error. 我尝试按照这篇文章中的说明添加默认页面,但收到无效的路由错误。

Anyone else ran into this? 还有其他人遇到吗?

See the comment from andlju: 请参阅andlju的评论:

"That does sound oddly familiar.. I think I "solved" this by creating an MVC 2 project from scratch in VS 2010 and then importing my old Views/Controllers etc. I'm sure there's a better way though." “这听起来确实很奇怪。我想我通过在VS 2010中从头开始创建MVC 2项目,然后导入旧的Views / Controllers等来“解决”此问题。不过,我相信还有更好的方法。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM