windows store app App Verifier failed - c#

windows store app App Verifier failed
-------------------------------------
Problem signature:
Problem Event Name: MoAppCrash
Package Full Name: **************
Application Name: praid:App
Application Version: 1.0.0.0
Application Timestamp: 52d3b719
Fault Module Name: vrfcore.dll
Fault Module Version: 6.2.9200.16384
Fault Module Timestamp: 5010ae28
Exception Code: 4000001f
Exception Offset: 00003355
OS Version: 6.2.9200.2.0.0.256.48
Locale ID: 1033
Additional Information 1: 9d42
Additional Information 2: 9d4286768e3a38f958aebc07f5606189
Additional Information 3: dc25
Additional Information 4: dc25a044c0907dfc8f3ef7768cf61489
I am trying to debug my app using app verifier and I got this error.Anybody know about this?

Related

Description: The process was terminated due to an unhandled exception. Exception Info: System.CannotUnloadAppDomainException

After a user closed the application. If the user have not had a reboot.
Next time when this user try to open the application will have an error :
The * application cannot start due to error: Another instance of the * application running
Investigate the windows event logs we found the following 2 events straight after user closed the application
Application: *.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.CannotUnloadAppDomainException
at System.AppDomain.Unload(System.AppDomain)
at Microsoft.ReportingServices.RefCountedAppDomain.Dispose()
at Microsoft.Reporting.WinForms.LocalReport+ReportRuntimeSetupHandler.ReleaseSandboxAppDomain()
at Microsoft.Reporting.WinForms.LocalReport.Dispose()
at Microsoft.Reporting.WinForms.ReportInfo.Dispose()
at Microsoft.Reporting.WinForms.ReportHierarchy.Clear()
at Microsoft.Reporting.WinForms.ReportViewer.Dispose(Boolean)
at System.ComponentModel.Component.Finalize()
&
Faulting application name: *.exe, version: *, time stamp: 0x62689e99
Faulting module name: KERNELBASE.dll, version: 10.0.18362.997, time stamp: 0x91b9349a
Exception code: 0xe0434352
Fault offset: 0x000000000003a719
Faulting process id: 0x2680
Faulting application start time: 0x01d865c193ffbd40
Faulting application path: exe file location
Faulting module path: C:\\Windows\\System32\\KERNELBASE.dll
Report Id: 723d10d5-0b8a-416a-8f68-92588e274303
Faulting package full name:
Faulting package-relative application ID:
Pretty struggling at the moment, and any ideas appreciated, thank you

BadImageFormatException is thrown after a few days

I've gone through several posts about BadImageFormatException but I couldn't find answer to my situation.
I've a C# project that uses few 3rd party DLLs. The project's runtime is .NET Framework 4.8. I build the project using "Any CPU" configuration in VS 2022. An installer is built and the software is distributed through the installer.
On the end user's Windows 10 x64 machine, the software runs fine for a few days. After that suddenly the software stops launching. When tried to launch, Windows generates the following event logs:
Application: <application name>.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.BadImageFormatException
and
Faulting application name: <application name>.exe, version: 1.0.0.0, time stamp: 0x6215bc3a
Faulting module name: KERNELBASE.dll, version: 10.0.18362.535, time stamp: 0x5bd9df62
Exception code: 0xe0434352
Fault offset: 0x001135d2
Faulting process id: 0x610
Faulting application start time: 0x01d82c9bac0533c9
Faulting application path: C:\Program Files (x86)\<application path>
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 0c7bbce1-7a2b-47f5-a95a-083860aad054
Faulting package full name:
Faulting package-relative application ID:
Surprisingly, replacing the .exe file with the original .exe file solves the problem and makes the software starts again.
What could be the possible reason for this? How to fix it?
I've checked all of the 3rd party DLLs with file command that all of them are built as 32 bit DLL.

Wpf exe file crashes after deployment

My wpf application uses Windows.winmd and System.Windows.Runtime dll, and I have been trying to deploy the application using Visual studio setup installer project.
When I tried to build the setup project it would silently fail and show this non-descriptive error:
ERROR: An error occurred while validating. HRESULT = '80070057
taking help from this link: Could not load file or assembly Windows.winmd' I learned that when winmd files are referenced in a wpf application than files need to be manually added to the 'Application Folder', I did so, after manually adding the .exe file it added the dlls to the Application Folder, now I can build the setup project but it still shows these following warnings:
WARNING: Unable to find dependency 'WINDOWS' (Signature='(null)' Version='255.255.255.255') of assembly 'System.Runtime.WindowsRuntime.dll'
WARNING: Unable to find dependency 'MATERIALDESIGNCOLORS' (Signature='(null)' Version='2.5.0.1205') of assembly 'MaterialDesignThemes.Wpf.DLL'
WARNING: Unable to find dependency 'WINDOWS' (Signature='(null)' Version='255.255.255.255') of assembly 'Scout_Windows.exe'
Am I adding the files the wrong?
After installing the application from the generated setup.msi file, when I launch the .exe file, it doesn't start. The event viewer shows two errors, Application error:
Faulting application name: Scout_Windows.exe, version: 1.0.0.0, time stamp: 0xaf6df283
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x015909b0
Faulting process ID: 0x2f58
Faulting application start time: 0x01d4907c33342151
Faulting application path: D:\temp\scout\Scout_Windows.exe
Faulting module path: unknown
Report ID: d0cf8414-8f12-4166-8836-ba1ec5ca8c80
Faulting package full name:
Faulting package-relative application ID:
.Net Runtime error:
Application: Scout_Windows.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at Scout_Windows.App..ctor()
at Scout_Windows.App.Main()
here is snapshot for the contents of my Application Folder in the setup project
I have spent two days on this error! any help is appreciated.

Application crash with exit code 0xe0004743

My application crashed after running for some time.
I'm using .NET 4.6 on Windows Server 2012-R2.
Application is 64-bit.
I cannot find more detail about this bug code. I think I have all relevant updates installed.
This application has run cumulatively for thousands of hours before and this is the first time this particular bug happened.
Event viewer errors:
Faulting application name:ApplicationName, version: 1.0.0.0, time stamp: 0x561c9fd7
Faulting module name: clr.dll, version: 4.6.96.0, time stamp: 0x55b96716
Exception code: 0xe0004743
Fault offset: 0x00000000003ccf84
Faulting process id: 0xef4
Faulting application start time: 0x01d1058c3f5834e6
Faulting application path: ApplicationName
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: 9765e800-7185-11e5-8177-0ae6116ba893
Second entry in the event viewer:
Application: ApplicationName
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FF837C2CF84 (00007FF837860000) with exit code e0004743.
The only similar issue reported in SO is The process was terminated due to an internal error in the .NET Runtime where GC issue / heap corruption was suggested.

application.exe.config file issue when installing on a clean machine

I have created an installer project in WPF. when I run the application on my computer, it works fine. I set a minimum requirement for the .net framework 4.5. But if I run the application on another machine (with newly installed windows 7), the application crashes.
Below is event viewer log:
Installer exception
Faulting application name: MyInstaller.exe, version: 1.0.0.0, time stamp: 0x55572605
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time stamp: 0x4ce7bafa
Exception code: 0xe0434352
Fault offset: 0x0000b727
Faulting process id: 0x398
Faulting application start time: 0x01d08fca117f3e62
Faulting application path: C:\Users\self\Downloads\MyInstaller.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 517dc0dd-fbbd-11e4-a332-b083fe4d72a6
Application: MyInstaller.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at MyInstaller.App.Main(System.String[])
I tried to create "Window event log" inside Main() try-catch method, but the application was not able to reach to that point.
When I send myinstaller.config.exe file with project exe file in the new installed machine, then it shows error. That the application does not meet requirement.
In my machine myinstaller.config.exe is not requirement, even after I uninstall framework 4.5 and 4.0.

Categories

Resources