asp.net-mvc-4 – 未找到入口点异常
发布时间:2020-12-15 18:54:22 所属栏目:asp.Net 来源:网络整理
导读:我已经安装了vs2012(11.0.50727.1), 我用.NET 4.5解决方案打开了一个新的MVC4, 我创建一个简单的HomeController和我想要在本地启动它,我收到这个很奇怪的错误: 如何解决呢?这是什么错误,为什么会发生? 先谢谢你,任何你的帮助。 Server Error in '/'
我已经安装了vs2012(11.0.50727.1),
我用.NET 4.5解决方案打开了一个新的MVC4, 我创建一个简单的HomeController和我想要在本地启动它,我收到这个很奇怪的错误: 如何解决呢?这是什么错误,为什么会发生? 先谢谢你,任何你的帮助。 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)时,会出现相同的错误。
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- entity-framework-4 – 工作单元是否应指向服务层或存储库?
- asp.net-mvc-3 – ASP.NET MVC3 Fluent验证构造函数每次请求
- asp.net – 如何动态更改母版页的母版页?
- asp.net – 作为Windows服务托管的c#WCF Restful Web服务的
- .net MVC功能测试
- asp.net-mvc – 如何从HttpContext获取JWT(使用OpenIdConne
- asp.net-web-api – spotify请求的限制
- asp.net-mvc – 在默认路由的ASP.NET MVC中的Url.Content的
- asp.net – 是否可以更改web.config而不会终止所有用户会话
- asp.net-mvc-3 – 方法’Write’没有重载需要0个参数
推荐文章
站长推荐
热点阅读