asp.net-mvc-4 – 未找到入口点异常
发布时间:2020-05-25 01:21:41 所属栏目:asp.Net 来源:互联网
导读:我已经安装了vs2012(11.0.50727.1), 我用.NET 4.5解决方案打开了一个新的MVC4, 我创建一个简单的HomeController和我想要在本地启动它,我收到这个很奇怪的错误: 如何解决呢?这是什么错误,为什么会发生? 先谢谢你,任何你的帮助。 Server Error in / App
|
我已经安装了vs2012(11.0.50727.1),
先谢谢你,任何你的帮助。 Server Error in '/' Application. Entry point was not found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.EntryPointNotFoundException: Entry point was not found. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [EntryPointNotFoundException: Entry point was not found.] System.Web.Mvc.IDependencyResolver.GetService(Type serviceType) +0 System.Web.Mvc.DependencyResolverExtensions.GetService(IDependencyResolver resolver) +56 System.Web.Mvc.SingleServiceResolver`1.GetValueFromResolver() +44 System.Lazy`1.CreateValue() +180 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +22 System.Lazy`1.get_Value() +10749357 System.Web.Mvc.SingleServiceResolver`1.get_Current() +15 System.Web.Mvc.MvcRouteHandler.GetSessionStateBehavior(RequestContext requestContext) +121 System.Web.Mvc.MvcRouteHandler.GetHttpHandler(RequestContext requestContext) +33 System.Web.Mvc.MvcRouteHandler.System.Web.Routing.IRouteHandler.GetHttpHandler(RequestContext requestContext) +10 System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +9709656 System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender,EventArgs e) +82 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean& completedSynchronously) +69 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 解决方法当您将项目从MVC3切换到MVC4并忘记将web.config中的System.Web.WebPages.Razor(版本= 1.0.0.0)更改为System.Web.WebPages.Razor(Version = 2.0.0.0)时,会出现相同的错误。(编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 回收ASP.NET应用程序是否会激起用户的兴趣?
- asp.net-mvc – 从asp.net POST动作方法更新nhibernate实体
- asp.net-mvc – Windows Azure上的ASP.NET MVC是生产环境的
- 在ASP.Net图表控件上隐藏网格线
- 是否有可能在asp经典和asp.net之间共享会话状态
- asp-classic – 是代码页65001和utf-8同样的东西吗?
- asp.net – UserControl Viewstate在回发后丢失所有值
- 这两种方法有什么区别?
- asp.net-mvc – 添加视图模型类下拉列表不显示我的类
- asp.net – 如何修改aspx页面的超时?
推荐文章
站长推荐
- 使用ASP.NET WebForms的xVal示例?
- asp.net-mvc – jQuery脚本包含在mvc 4模板的页面
- asp.net-mvc-3 – MVC3不显眼的验证在IE中不起作
- asp.net-mvc – 用于MVC 3的Castle Windsor依赖关
- 在ASP.NET中拒绝用户时,’CustomIdentity’上的S
- asp.net-mvc – Azure网站上的字体文件404,看似正
- asp.net – VirtualPathUtility.ToAbsolute()VS.
- asp.net-mvc – 使用Asp.Net MVC创建私人照片库
- asp.net-mvc – 为什么我不能将asp.net mvc 4项目
- asp.net-web-api – 当启用CORS时,ASP.NET Web A
热点阅读
