asp.Net   发布时间:2022-04-07  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了asp.net-mvc-4 – 未找到入口点异常大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经安装了vs2012(11.0.50727.1),
我用.NET 4.5解决方案打开了一个新的R_952_11845@VC4,
我创建一个简单的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)时,@R_675_11251@相同的错误。

大佬总结

以上是大佬教程为你收集整理的asp.net-mvc-4 – 未找到入口点异常全部内容,希望文章能够帮你解决asp.net-mvc-4 – 未找到入口点异常所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。