【发布时间】:2011-10-04 18:41:21
【问题描述】:
我有一个使用 nHibernate、Rhino 和 Castle 的 MVC3 项目。我终于把所有的组件都准备好了。我认为。至少它运行并调用 IWondsorContainer CreateContainer() 方法....在该方法之后,Application_Start 不会触发并且我收到消息:
Server Error in '/' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Views/Proposal/Index.cshtml
有什么想法吗?我不知道该怎么做。谢谢
【问题讨论】:
-
尝试转到网址
/proposal/index。上面的错误提示你试图不经过路由和控制器直接进入View。 -
@Charlino...当我使用 /proposal/index 或 /....ideas 时,我仍然得到相同的结果?
-
你得到相同的结果,就像你得到相同的错误页面,抱怨找不到资源?
-
@Charlino...结果和以前一样