asp.net – System.EntryPointNotFoundException MVC5
发布时间:2020-12-16 09:42:17 所属栏目:asp.Net 来源:网络整理
导读:我的网站从visual studio运行良好,但只要我将其部署到IIS,我就会收到以下错误. 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 infor
我的网站从visual studio运行良好,但只要我将其部署到IIS,我就会收到以下错误.
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.DependencyResolver.InnerSetResolver(IDependencyResolver resolver) +289 Rabobank.Risk.LicwidWorkflow.UI.UnityConfig.RegisterComponents() +125 Rabobank.Risk.LicwidWorkflow.UI.MvcApplication.Application_Start() +30 [HttpException (0x80004005): Entry point was not found.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context,HttpApplication app) +12602733 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext,HttpContext context,MethodInfo[] handlers) +175 System.Web.HttpApplication.InitSpecial(HttpApplicationState state,MethodInfo[] handlers,IntPtr appContext,HttpContext context) +304 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext,HttpContext context) +404 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475 [HttpException (0x80004005): Entry point was not found.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12619780 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext context) +12459397 我不知道为什么会这样.任何指针将不胜感激 解决方法
这通常在使用依赖注入时发生. 如果您有多个相互引用的项目,请确保它们针对相同的框架或兼容的框架.还要检查所有package.config文件,并确保每个xml行的targetFramework与项目目标框架匹配.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-mvc – 我如何可以渲染局部视图在asp.net mvc 3
- asp.net – 在.NET .NET中ctl00是常量吗?
- asp.net – 我们可以在网页中使用多种形式吗?
- asp.net – 如何将aspx webform上的所有控件转换为只读等效
- 有没有相当于PrimeFaces for ASP.NET的东西?
- asp.net-mvc – 便携式区域与多个项目区域?
- 在ASP.NET MVC中模拟User.Identity
- asp.net-mvc – 为什么DisplayFormat DataFormatString不工
- asp.net-mvc – 返回局部视图的RedirectToAction如何返回完
- asp.net – ASP .NET检查会话
推荐文章
站长推荐
热点阅读