I run my program in visual studio and it works great, but when i publish it and installed it dont start. I checked the problem on the event viewer and it's the information that comes with the error:
Faulting application name: Screen recorder.exe, version: 1.0.0.0, time
stamp: 0x59f8f3ad
Faulting module name: KERNELBASE.dll, version: 6.1.7601.23915, time stamp:
0x59b94abb
Exception code: 0xe0434352
Fault offset: 0x0000c54f
Faulting process id: 0x22f8
Faulting application start time: 0x01d35294634fde75
Faulting application path: C:\Users\jmarin\AppData\Local\Apps\2.0\LAHCHL75.EB9\PJ1V31LT.BZW\scre..tion_b46dd58387405837_0001.0000_c9a5ed0df210aa7f\Screen recorder.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: a1aed905-be87-11e7-849a-989096bc2875
Application: Screen recorder.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at ScreenRecord.Form1..ctor()
at Screen_recorder.Program.Main()
Exception Info: System.IO.FileNotFoundException
Please look into your code, you are using file which is not available while publishing. you can copy the file into the root directory and try it again
Related
Using StoreContext.CanSilentlyDownloadStorePackageUpdates when the network is disconnected will cause the app to crash, and I try to use Try-Catch to fail to catch this exception.
In addition, when I use StoreContext.TrySilentDownloadStorePackageUpdatesAsync to download the update package, disconnecting the network at this time will also cause the APP to crash too.
Code snippet:
[System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions]
public bool CanSilentlyUpdate()
{
try
{
//There will be an error:
// System.AccessViolationException :“Attempted to read or write protected memory.
// This is often an indication that other memory is corrupt.”
return StoreContext.GetDefault().CanSilentlyDownloadStorePackageUpdates;
}
catch (Exception ex)
{
Debug.WriteLine(ex);
return false;
}
}
The following is the error log in Event Viewer:
Eventlog 1: Application: MyApp.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException at
Windows.Services.Store.StoreContext.get_CanSilentlyDownloadStorePackageUpdates()
Eventlog 2: Faulting application name: MyApp.exe, version: 1.0.0.0,
time stamp: 0x96223b82 Faulting module name:
Windows.ApplicationModel.Store.dll, version: 10.0.19041.329, time
stamp: 0x92fa3e59 Exception code: 0xc0000005 Fault offset: 0x0009fcb0
Faulting process id: 0x6d0c Faulting application start time:
0x01d6511c5d86de48 Faulting application path: C:\Program
Files\WindowsApps\MyApp\MyApp.exe Faulting module path:
C:\Windows\System32\Windows.ApplicationModel.Store.dll Report Id:
d67098d6-39c7-4a02-a837-b523821c9ca2 Faulting package full name: MyApp
Faulting package-relative application ID: App
Eventlog 3: Application: MyApp.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 7947FCB0
Stack:
Eventlog 4: Faulting application name: MyApp.exe, version: 1.0.0.0, time
stamp: 0x96223b82 Faulting module name:
Windows.ApplicationModel.Store.dll, version: 10.0.19041.329, time
stamp: 0x92fa3e59 Exception code: 0xc0000005 Fault offset: 0x0009fcb0
Faulting process id: 0x36a0 Faulting application start time:
0x01d65131af3782e2 Faulting application path: C:\Program
Files\WindowsApps\MyApp\MyApp.exe Faulting module path:
C:\Windows\System32\Windows.ApplicationModel.Store.dll Report Id:
4a027389-345c-4f16-a605-276f2774c768 Faulting package full name: MyApp
Faulting package-relative application ID: App
This kind of exception seems to be unable to be caught using managed code, what should I do?
After discussing with other engineers, it looks like there is no other way to handle it.
This method should be running in the background so that you could not catch it in the UI thread. It essentially bypasses any chance dev has at handling the exception.
Our suggestion is that you need to check the network before calling this method and give a tip when calling this method to tell the user to keep network connection. And you could try to subscribe to the NetworkInformation.NetworkStatusChanged Event in your app.
Everytime I start my project even my backup ones, my vs2017 stops working, after stops working ----> restart and then again and again. I don't know why I didn't update my visual studio. I did nothing and I don't know why my vs2017 keeps stop working after starting my project.
The event viewer logs can be found below.
Faulting application name: PerfWatson2.exe, version: 15.0.26906.1, time stamp: 0xfc5f0b15
Faulting module name: ntdll.dll, version: 10.0.15063.608, time stamp: 0x802f667e
Exception code: 0xc0000374
Fault offset: 0x000d9aba
Faulting process id: 0x3618
Faulting application start time: 0x01d34c0166d66c6f
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\PerfWatson2.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 32a77ca2-f6b3-4a42-892c-6cc77f180aa7
Faulting package full name:
Faulting package-relative application ID:
~~~~~
Fault bucket 109168102441, type 1
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: PerfWatson2.exe
P2: 15.0.26906.1
P3: fc5f0b15
P4: StackHash_f9a7
P5: 10.0.15063.608
P6: 802f667e
P7: c0000374
P8: PCH_3F_FROM_ntdll+0x000722CC
P9:
P10:
Attached files:
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER90C0.tmp.dmp
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9257.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9266.tmp.csv
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9296.tmp.txt
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_PerfWatson2.exe_2c3dcdf7e3b2d714aa01e36af7fcd3d858254_20ada290_25d1adfc
Analysis symbol:
Rechecking for solution: 0
Report Id: 32a77ca2-f6b3-4a42-892c-6cc77f180aa7
~~~~~~~~~~~~~~
Faulting application name: devenv.exe, version: 15.0.27004.2005, time stamp: 0x59e69397
Faulting module name: ntdll.dll, version: 10.0.15063.608, time stamp: 0x802f667e
Exception code: 0xc0000374
Fault offset: 0x000d9aba
Faulting process id: 0x2508
Faulting application start time: 0x01d34c0165f3308c
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 79fd044e-326b-4eca-b290-71ac25df8cbf
Faulting package full name:
Faulting package-relative application ID:
~~~~~~~~~~~~~~~~~
I hope someone would help me in my problem. Thank you in advance to those people who can help me!
I am getting Unhandled Exception error randomly in my project while taking fingerprints. Sometimes when I clean and rebuild my project problem being solved. But when I rebuild again problem appear. How can I handle this problem?
Here is the error show in Windows EventViewer
Faulting application name: GetFingerprints.exe, version: 1.0.0.0, time stamp: 0x543daf42
Faulting module name: GreenBit.dll, version: 1.5.0.0, time stamp: 0x543b738b
Exception code: 0xc0000005
Fault offset: 0x0001e984
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13
I use third party libary in my forms application with C# Visual Studio 2013 and I take fingerprints with a fingerprint scanner.
While taking fingerprints my application throw unhandled exeption. What can be reason of this error?
This is error:
"Unhandled exception at 0x693B0A37 (msvcr100.dll) in
GetFingerprints.exe: 0xC0000005: Access violation reading location
0x0E762000."
And here is the error which shows in event viewer.
Faulting application name: GetFingerprints.exe, version: 1.0.0.0, time
stamp: 0x542bcc4c Faulting module name: MSVCR100.dll, version:
10.0.40219.325, time stamp: 0x4df2be1e Exception code: 0xc0000005 Fault offset: 0x00010a37 Faulting process id: 0x1094 Faulting
application start time: 0x01cfdd5c12b8ea77 Faulting application path:
C:\Proje\MyProject\bin\Debug\GetFingerprints.exe Faulting
module path: C:\Windows\system32\MSVCR100.dll Report Id:
fdc362c7-494f-11e4-9a0a-f0921cdc1fd5
Hi; i have a windows service. i want to start my windows service by a batch file(.bat file). i do it succesfully.
My service is starting very good. But 4-5 seconds later stop itself. Not working 4-5 seconds later.if i look my event logs on my windows server 2008,
an error occured. My error is below. How can i solve this problem?
Faulting application name: MyProject.WindowsService.exe, version: 1.0.0.0, time stamp: 0x4ffec57c
Faulting module name: clr.dll, version: 4.0.30319.269, time stamp: 0x4ee9ae83
Exception code: 0xc00000fd
Fault offset: 0x003565fd
Faulting process id: 0x1bbc
Faulting application start time: 0x01cd60323465e0b0
Faulting application path: C:\MyProject.WindowsService\bin\Debug\MyProject.WindowsService.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 742f8164-cc25-11e1-ae08-00155d100687
0xc00000fd indicates a stack overflow.
Are you calling Win32 apis using p/invoke?
Can you add some logging to the application and see how far it gets before faulting
Does it fail when running as an application (not as a service?)