I have a .NET WPF application targeting the .NET 4 framework (previous versions of the same application targeted 3.5). I'm not sure if the change in the framework targeting is related to this problem but I figured I'd point it out.
I am getting a crash when the application starts up, but only on some PC's. On other PC's it works fine. On any of these PC's previous versions of this same application worked fine. The crash is due to an unhandled exception on the app startup.
Here is the stack trace of the exception:
Application: MyApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at System.Signature.GetSignature(System.SignatureStruct ByRef, Void*, Int32, System.RuntimeFieldHandleInternal, System.IRuntimeMethodInfo, System.RuntimeType)
at System.Reflection.RuntimePropertyInfo.get_Signature()
at System.Reflection.RuntimePropertyInfo.get_PropertyType()
at System.Reflection.CustomAttributeData..ctor(System.Reflection.RuntimeModule, System.Reflection.CustomAttributeRecord)
at System.Reflection.CustomAttributeData.GetCustomAttributes(System.Reflection.RuntimeModule, Int32)
at System.Reflection.CustomAttributeData.GetCustomAttributesInternal(System.Reflection.RuntimeAssembly)
at System.Reflection.RuntimeAssembly.GetCustomAttributesData()
at System.Reflection.CustomAttributeData.GetCustomAttributes(System.Reflection.Assembly)
at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(System.Reflection.Assembly, System.Resources.UltimateResourceFallbackLocation ByRef)
at System.Resources.ResourceManager.CommonSatelliteAssemblyInit()
at System.Resources.ResourceManager..ctor(System.String, System.Reflection.Assembly)
at System.Windows.SplashScreen..ctor(System.Reflection.Assembly, System.String)
at MyApp.App.Main()
--------
In addition to the exception above, which my app logs to event viewer, I also have another event that occurs at the same time, also in the application log. The source is "Application Error" and it reads as follows:
Faulting application name: MyApp.exe, version: 2.4.1.0, time stamp: 0x4d278ccc
Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdf
Exception code: 0xe0434352
Fault offset: 0x0000b727
Faulting process id: 0xe28
Faulting application start time: 0x01cbaec139ccd566
Faulting application path: C:\Program Files (x86)\My App Path\My App\MyApp.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 77e811de-1ab4-11e0-a6cf-a4badbfae9cd
--------------------------
So while it appears that this is happening on the splash screen constructor, I am very confused because at this point I have removed the splash screen entirely from the app. There is no splash screen configured. And it's a FileNotFound exception,
I don't know what file it's looking for.
Any help would be much appreciated.
Thanks,
Greg