Unhandled exception for the component "MultiScaleImage" of "Silverlight 5" - c#

I am developing a web application based on "Silverlight 5".
I found a blocking bug related to the component "MultiScaleImage" that happens after a unpredictable (sometimes it takes hours, sometimes minutes) number of zooms of the image.
When the issue occurs the following messages are shown:
Windows 7 Event Log: Faulting application name: IEXPLORE.EXE, version: 11.0.9600.17126, time stamp: 0x53882e30
Faulting module name: agcore.dll, version: 5.1.30214.0, time stamp: 0x52fdb3c4
Exception code: 0xc0000005
Fault offset: 0x003a8d0d
Faulting process id: 0x18dc
Faulting application start time: 0x01cf9cf438322755
Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\Program Files (x86)\Microsoft Silverlight\5.1.30214.0\agcore.dll
Report Id: a9de107e-08fe-11e4-b5ce-c86000a4b136)
Visual Studio Debugger: Unhandled exception at 0x5CCD8D0D (agcore.dll) in iexplore.exe: 0xC0000005: Access violation reading location 0xFFE2E6F2.
Internet Explorer 11: Internet Explorer has stopped working.
The test has been done with Win7+SP1 with IE11 and IE8.
This bug is preventing me from releasing the application and deploying it to the customer servers.
I can't believe there's no way to solve it nor a valid workaround.

Related

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.

How to diagnose fault in crashing UWP app

I have a UWP application which runs fine from Visual Studio with the debugger attached. If I run the app standalone, from the start menu - which is the app that Visual Studio has deployed - it will start, but crash when I invoke one of the functions in the app.
UWP provides absolutely no information - the window disappears and I get the following in the Event Viewer:
Faulting application name: MyApp.Uwp.exe, version: 1.0.0.0, time stamp: 0x5c889173
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.18362.207, time stamp: 0x36bacadb
Exception code: 0xc000027b
Fault offset: 0x0086b264
Faulting process id: 0x27f4
Faulting application start time: 0x01d53db7eaba0778
Faulting application path: C:\src\MyApp\bin\x86\Debug\AppX\MyApp.Uwp.exe
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
Report Id: 009e5859-3f05-4790-8072-37af666acb7e
Faulting package full name: 59640b3f-2209-4686-8f9a-9f8748b9753c_1.0.0.0_x86__9617mk99wz2v0
Faulting package-relative application ID: App
If I start the app via the Start menu, then attach the VS debugger, it doesn't crash.
How can I get a stack trace and work out what is going wrong here?
I want to know if it's possible to get a stack trace or any information out of a crashed UWP app.
You could use HockeyApp to capture the exception call stack, exception message, exception type name, file name and line number which caused a crash in the app. For more detail please refer this document.
Please note: In order to symbolicate crashes for .NET UWP applications you need to upload symbol (*.pdb) files

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.

NReco PDFGenerator issue

I've been using this tool for about a week, and now, today, it just stopped working. I've reverted the rest of my code back to the previous state and I keep getting the same error.
All that I'm getting from the Exception that is thrown is:
An exception of type 'System.Exception' occurred in NReco.PdfGenerator.dll but was not handled in user code
Additional information: Cannot generate PDF: (exit code: -1073740791)
From the Windows Event Log:
Faulting application name: wkhtmltopdf.exe, version: 0.12.2.1, time stamp: 0x54bd0265
Faulting module name: MSVCR120.dll, version: 12.0.21005.1, time stamp: 0x524f7ce6
Exception code: 0xc0000409
Fault offset: 0x000a7666
Faulting process id: 0xc8c
Faulting application start time: 0x01d0deb1a8d73b2f
Faulting application path: C:*****\bin\wkhtmltopdf.exe
Faulting module path: C:\Windows\SYSTEM32\MSVCR120.dll
Report Id: e8c8bcf0-4aa4-11e5-826d-acb57d145db6
Faulting package full name:
Faulting package-relative application ID:
Any ideas what could be causing this?
The reason of this error is not in your code: it seems something changed in your environment and wkhtmltopdf.exe stops working because of missed VC++ 2013 runtime libraries (required for latest v.0.12.2.1).
You can download and install them from Windows Downloads: Visual C++ Redistributable Packages for Visual Studio 2013
PdfGenerator embeds x86 build of wkhtmltopdf and you may install only x86-version of redistributable package ( vcredist_x86.exe ).
--- update ---
For latest wkhtmltopdf 0.12.4 VC++ 2015 runtime libs are needed.

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