2016-04-30 12 views
0

Plötzlich kann ich meine MVC4-Anwendung nicht. Ich habe den Code nicht geändert. Irgendeine Idee wo und wie kann ich dieses Problem lösen? oder haben Sie mehr Informationen, um dieses Problem zu verfolgen? System.Reflection.TargetInvocationException, wenn ich MVC 4-Anwendung ausführen

  1. Stackoverflow
  2. Ms

    neu gestartet ich meinen PC ein paar Mal, auch diese Artikel

    geprüft

Sie schlagen vor, den Teil des Codes zu überprüfen, die dies verursacht. aber in meinem Fall komme ich gar nicht zu meinem Code.

Der Ordner von Intelitrace erwähnt ist leer:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files

Inner Ausnahmemeldung:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Fehler:

System.Reflection.TargetInvocationException was unhandled
HResult=-2146232828 Message=Exception has been thrown by the target of an invocation. Source=mscorlib StackTrace: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection 1 methods, Func 1 setHostingEnvironmentCultures) at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) at System.Web.Compilation.BuildManager.ExecutePreAppStart() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ProcessHost.StartApplication(String appId, String appPath, Object& runtimeInterface) InnerException: System.AccessViolationException HResult=-2147467261 Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. StackTrace: InnerException:

enter image description here

Antwort

0

Ok, hier ist, wie ich dieses Problem gelöst,

  1. Deinstallieren von Visual Studio 2012
  2. Deinstallieren Sie alle .NET.
  3. Restart
  4. Installieren Neueste .Net
  5. Installieren Sie Visual Studio 2012
0

Ein ähnliches Problem wurde gelöst here

Finally tracked this down with the help of WinDBG and SOS. Access violation was being thrown by some unknown DLL. Turns out a piece of software called "Nvidia Network Manager" was causing the problems. I'd read countless times how this issue can be caused by firewalls or antivirus, neither of which I am using so I dismissed this idea. Also, I was under the assumption that it was not environmental because it occurs on more than 1 server using different hardware. Turns out all the machines I tested this on were running "NVidia Network Manager". I believe it installs with the rest of the motherboard drivers.

Welche ein Problem sein kann, die außerhalb Ihrer Anwendung ist. In diesem Fall gibt es eine schlechte Software, die seine Anwendung beeinflusst. Vielleicht möchten Sie es mit den Tools, die er erwähnt hat, verfolgen. Viel Glück!

Verwandte Themen