Asp.net 未找到方法:';Void System.Web.HttpApplication.RegisterModule(System.Type)和#x27;

Asp.net 未找到方法:';Void System.Web.HttpApplication.RegisterModule(System.Type)和#x27;,asp.net,visual-studio-2010,Asp.net,Visual Studio 2010,在我创建的每个web项目中,我都会遇到这个错误,有什么想法吗 Server Error in '/' Application. Method not found: 'Void System.Web.HttpApplication.RegisterModule(System.Type)'. Description: An unhandled exception occurred during the execution of the current web request. Please re

在我创建的每个web项目中,我都会遇到这个错误,有什么想法吗

Server Error in '/' Application.

Method not found: 'Void System.Web.HttpApplication.RegisterModule(System.Type)'.

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.MissingMethodException: Method not found: 'Void System.Web.HttpApplication.RegisterModule(System.Type)'.

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: 


[MissingMethodException: Method not found: 'Void System.Web.HttpApplication.RegisterModule(System.Type)'.]
   Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.SelectionMappingExecutionListenerModule.PreApplicationStart() +0
   Microsoft.VisualStudio.Web.PageInspector.Runtime.Startup.PreApplicationStart() +8

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
   System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +335
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
   Microsoft.VisualStudio.Web.PageInspector.Loader.RuntimeLoader.LoadRuntime() +63
   Microsoft.VisualStudio.Web.PageInspector.Loader.RuntimeLoader.PreApplicationStart() +18

[InvalidOperationException: The pre-application start initialization method PreApplicationStart on type Microsoft.VisualStudio.Web.PageInspector.Loader.RuntimeLoader threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +408
   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +303
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +693

[HttpException (0x80004005): The pre-application start initialization method PreApplicationStart on type Microsoft.VisualStudio.Web.PageInspector.Loader.RuntimeLoader threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +637
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +256

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1008
(对不起,我得写点别的东西,否则就别让我发帖了)
(一次又一次)

MonoFramework MDK v4.2.0(错误)和v4.3.2(错误)中的类似问题解决了这一问题


在ASP.Net MVC5中,Mono Framework v5.4.0.203中添加的
System.HttpApplication.RegisterModule()
(根据此要求)。

机器上安装的MOLE与Framework v4.5冲突,其中一些VS更新的安装可能会导致此问题

解决方案是使用删除framework 4.5组件,然后运行VS恢复

相关:


来源:.

请发布您的web.config的
system.web/httpModules
部分。现在我不在工作,我能说的是,Void system.web.HttpApplication.RegisterModule(system.Type)似乎针对4.5,但我的项目针对的是4.0框架。我在这篇文章中发现了一个家伙在同一点上有问题,但他的项目没有像我的项目那样崩溃:解决了。机器上安装的鼹鼠与框架4.5冲突。我安装了一些导致此问题的vs更新。解决方案是:-使用清理工具删除framework 4.5组件-运行vs还原