My C# / WinForms app crashes at startup.
I went through several posts here that cover that topic but I wasn't able to solve the problem yet.
That is the error I get:
Problemsignature:
Problemeventname: APPCRASH
Applicationname: MyApp.exe
Applicationversion: 1.0.0.0
Applicationtimestamp: 5b4c47c9
Faultedmodulename: KERNELBASE.dll
Faultedmoduleversion: 6.1.7601.24150
Faultedmoduletimestamp: 5b0cbc65
Exceptioncode: e0434352
Exceptionoffset: 000000000001a06d
Operatingsystemversion: 6.1.7601.2.1.0.272.7
Location-ID: 1031
Additionalinformation 1: 367e
Additionalinformation 2: 367e805d0e7c1ec3f63b05bb5ce5c416
Additionalinformation 3: 5a60
Additionalinformation 4: 5a6090e598b447a9043f485266c8e273
I searched for more detailed logs and found this:
Version=1
EventType=APPCRASH
EventTime=131762111243226835
ReportType=2
Consent=1
ReportIdentifier=6925141c-88e4-11e8-a994-000c2920c559
IntegratorReportIdentifier=6925141b-88e4-11e8-a994-000c2920c559
Response.type=4
Sig[0].Name=Applicationname
Sig[0].Value=MyApp.exe
Sig[1].Name=Applicationversion
Sig[1].Value=1.0.0.0
Sig[2].Name=Applicationtimestamp
Sig[2].Value=5b4c47c9
Sig[3].Name=Faultedmodulename
Sig[3].Value=KERNELBASE.dll
Sig[4].Name=Faultedmoduleversion
Sig[4].Value=6.1.7601.24150
Sig[5].Name=Faultedmoduletimestamp
Sig[5].Value=5b0cbc65
Sig[6].Name=Exceptioncode
Sig[6].Value=e0434352
Sig[7].Name=Exceptionoffset
Sig[7].Value=000000000001a06d
DynamicSig[1].Name=Operatingsystemversion
DynamicSig[1].Value=6.1.7601.2.1.0.272.7
DynamicSig[2].Name=Location-ID
DynamicSig[2].Value=1031
DynamicSig[22].Name=Additionalinformation 1
DynamicSig[22].Value=367e
DynamicSig[23].Name=Additionalinformation 2
DynamicSig[23].Value=367e805d0e7c1ec3f63b05bb5ce5c416
DynamicSig[24].Name=Additionalinformation 3
DynamicSig[24].Value=5a60
DynamicSig[25].Name=Additionalinformation 4
DynamicSig[25].Value=5a6090e598b447a9043f485266c8e273
UI[2]=C:\Program Files\MyApp\MyApp.exe
UI[3]=MyApp stopped working
UI[4]=Windows can look online for a solution to the problem.
UI[5]=Search online for a solution and close the program
UI[6]=Search for a solution online later and close the program
UI[7]=Close the program
LoadedModule[0]=C:\Program Files\MyApp\MyApp.exe
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\Windows\SYSTEM32\MSCOREE.DLL
LoadedModule[3]=C:\Windows\system32\KERNEL32.dll
LoadedModule[4]=C:\Windows\system32\KERNELBASE.dll
LoadedModule[5]=C:\Windows\system32\ADVAPI32.dll
LoadedModule[6]=C:\Windows\system32\msvcrt.dll
LoadedModule[7]=C:\Windows\SYSTEM32\sechost.dll
LoadedModule[8]=C:\Windows\system32\RPCRT4.dll
LoadedModule[9]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll
LoadedModule[10]=C:\Windows\system32\SHLWAPI.dll
LoadedModule[11]=C:\Windows\system32\GDI32.dll
LoadedModule[12]=C:\Windows\system32\USER32.dll
LoadedModule[13]=C:\Windows\system32\LPK.dll
LoadedModule[14]=C:\Windows\system32\USP10.dll
LoadedModule[15]=C:\Windows\system32\IMM32.DLL
LoadedModule[16]=C:\Windows\system32\MSCTF.dll
LoadedModule[17]=C:\PROGRA~2\Sophos\SOPHOS~1\SOPHOS~2.DLL
LoadedModule[18]=C:\Windows\system32\PSAPI.DLL
LoadedModule[19]=C:\Windows\system32\VERSION.dll
LoadedModule[20]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
LoadedModule[21]=C:\Windows\system32\MSVCR120_CLR0400.dll
LoadedModule[22]=C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\ccb48f84a5cca36e9b0205b6a65ee54a\mscorlib.ni.dll
LoadedModule[23]=C:\Windows\system32\ole32.dll
LoadedModule[24]=C:\Windows\system32\CRYPTBASE.dll
LoadedModule[25]=C:\Program Files (x86)\TeamViewer\tv_x64.dll
LoadedModule[26]=C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18837_none_a4d981ff711297b6\COMCTL32.dll
LoadedModule[27]=C:\Windows\system32\SHELL32.dll
LoadedModule[28]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clrjit.dll
LoadedModule[29]=C:\Windows\system32\CRYPTSP.dll
LoadedModule[30]=C:\Windows\system32\rsaenh.dll
LoadedModule[31]=C:\Windows\system32\RpcRtRemote.dll
LoadedModule[32]=C:\Windows\assembly\NativeImages_v4.0.30319_64\System\4575f30d7b13f1377c287e162ba3147e\System.ni.dll
LoadedModule[33]=C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Drawing\3b5c30aa581d90fd18f9593f9c842b6d\System.Drawing.ni.dll
LoadedModule[34]=C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Windows.Forms\7a911b66e6652a094625f0ce974dc434\System.Windows.Forms.ni.dll
LoadedModule[35]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\diasymreader.dll
FriendlyEventName=No longer functional
ConsentKey=APPCRASH
AppName=MyApp
AppPath=C:\Program Files\MyApp\MyApp.exe
However, that doesn't really help me. I've checked the startup of the app in debug mode (different machine) where I am able to run it and logged the loaded assemblies. I went over each assembly and checked whether it was available on the other machine. Everything was there, although some assemblies are not available in the GAC but in the apps directory.
I have no idea where to look now, thanks for your help!
Edit: I get this message in the event viewer:
Anwendung: MyApp.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.IO.FileLoadException
bei MyApp.Program.Main()
Is there a way to get more information which assembly is missing?
I solved my issue by checking the versions of the referenced assembly. One third-party assembly had a minor update which I forgot to update in my clients folder.
Related
I am working on a program (c# in Visual Studio), which has a strange behaviour.
I implemented a feature, that starts the program on windows start up (autostart).
For that I add in the registry path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
The filepath of the program.
And it starts on start up.
But the App Crashes. When I start it manually - it works perfectly.
I dont understand, why the app has a different behaviour when I start it manually or with autostart. (I am using no parameters)
So I would like to debug it while simulating this autostart, but i dont know how to.
I am currently working on a logwriter, to see where the problem is, but it would be better, if I can debug it somehow.
The Eventlog (german), when the app crash on autostart, tells me:
Name der fehlerhaften Anwendung: myapp.exe, Version:19.4.25.0, Zeitstempel: 0x5cc1a6d1 Name des fehlerhaften Moduls: KERNELBASE.dll, Version: 6.2.17134.556, Zeitstempel: 0xb9f4a0f1
Ausnahmecode: 0xe053534f
Fehleroffset: 0x000000000003a388
ID des fehlerhaften Prozesses: 0x%9
Startzeit der fehlerhaften Anwendung: 0x%10
Pfad der fehlerhaften Anwendung: %11
Pfad des fehlerhaften Moduls: %12
Berichtskennung: %13
Vollständiger Name des fehlerhaften Pakets: %14
Anwendungs-ID, die relativ zum fehlerhaften Paket ist: %15
I'm not getting clever out of it, too.
Maybe you have some hints for me - best if you can show me a possiblity to simulate the autostart in order to debug the app:)
I'm trying to use the UWP Windows.Data.Pdf API from a WPF-Desktop app. It can render a PDF page to a PNG image just fine.
The issue I have is that after executing the PDF rendering, closing the WPF-Window does no longer exit the application. The process keeps running. I tried pausing the application in the debugger in this state, but no application code appears to be running. Some thread or resource must still be open, I guess.
My question here is does anybody have any idea why this happens? And furthermore, how can I debug this kind of issue?
The issue is reproducible with the empty WPF template in VS17, I added to the .csproj:
<TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion>
...
<Reference Include="System.Runtime.WindowsRuntime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll</HintPath>
</Reference>
<Reference Include="Windows">
<HintPath>$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\10.0.16299.0\Windows.winmd</HintPath>
</Reference>
From a simple button I'm executing this code:
using System;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.Data.Pdf;
using Windows.Graphics.Imaging;
using Windows.Storage;
using Windows.Storage.Streams;
...
var filename = #"C:\Users\...\a.pdf"
var f = await StorageFile.GetFileFromPathAsync(filename);
byte[] content;
using (var stream = await f.OpenReadAsync())
{
var d = await PdfDocument.LoadFromStreamAsync(stream);
using (var page0 = d.GetPage(0))
{
await page0.PreparePageAsync();
using (var randomAccessStream = new InMemoryRandomAccessStream())
{
await page0.RenderToStreamAsync(randomAccessStream, new PdfPageRenderOptions { BitmapEncoderId = BitmapEncoder.PngEncoderId });
content = new byte[randomAccessStream.Size];
await randomAccessStream.ReadAsync(content.AsBuffer(), (uint)randomAccessStream.Size, InputStreamOptions.None);
}
}
}
File.WriteAllBytes(#"C:\Users\...\b.png", content);
This is almost the entire code, but in case I missed something I also pushed it to https://github.com/marv51/PDFRendererNotExiting
Thank you very much in advance for any help on this.
Update:
I just observed, that the process does eventually exit after about 2 minutes!
Probably related, I found in the event viewer:
Faulting application name: WpfApp3.exe, version: 1.0.0.0, time stamp: 0x5b291e3a
Faulting module name: ntdll.dll, version: 10.0.17134.1000, time stamp: 0xcfe5bd82
Exception code: 0xc0000005
Fault offset: 0x000420c8
Faulting process id: 0x1ee0
Faulting application start time: 0x01d407e07f1c3295
Faulting application path: C:\Users\ruehe\source\repos\WpfApp3\WpfApp3\bin\Release\WpfApp3.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 3a51f5ff-52b3-47fb-b00d-bf002f932c41
Faulting package full name:
Faulting package-relative application ID:
So I assume some background thread crashed during termination and Windows Error Reporting keeps the process alive to collect information. Or some kind of timeout kills open resources?
I'm sorry, I just found this. Can I do anything with this crash Information?
Update 2
After spending a lot of time on this and learning some windbg, I think this might be an Nvidia graphics driver crash:
Attaching to the app and then closing the window shows this exception:
(2134.1cac): Unknown exception - code 0000071a (first chance)
(2134.1cac): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_040c7acb04cee565\nvwgf2um.dll -
eax=00000000 ebx=0be09f10 ecx=00000013 edx=00000000 esi=00000000 edi=00000030
eip=779f38e8 esp=007decd0 ebp=007ded10 iopl=0 nv up ei pl zr na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00210246
ntdll!RtlFreeHeap+0x28:
779f38e8 817e08eeddeedd cmp dword ptr [esi+8],0DDEEDDEEh ds:002b:00000008=????????
I posted the analyze -v output here: https://gist.github.com/Marv51/d3ad0e9a49b6c985d9116600fd0475b7
From looking at the stacktrace I believe the destructor for the internal class Windows.Data.Pdf.CPdfStatics tries to release some DirectX resources and the Nvidia driver corrupts the heap during this process.
I tried updating to the latest Nvidia driver, which changed nothing.
Not sure where I can go from here. I'm still a windbg beginner, so I might interpret this output wrong.
Maybe the 'solution' for now is that I will do this work in an external process to avoid these issues from 'infecting' the main app.
I recently submitted application on windows marketplace and got the crashing report in .wer format. but I dont know how to understand the report to find out the problem.I am opening it into notepad but not able to understand anything and I am unable to open it in visual studio 2012.Kindly help
Here is the report content:
Version=1
EventType=MoAppCrash
EventTime=130416971751387322
ReportType=2
Consent=1
UploadTime=130416971751699856
ReportIdentifier=b78d10da-c17e-11e3-8252-2cd05aaed19e
IntegratorReportIdentifier=b78d10d9-c17e-11e3-8252-2cd05aaed19e
WOW64=1
NsAppName=praid:App
Response.BucketId=TestBucket
Response.BucketTable=4
Response.LegacyBucketId=TestBucket
Response.type=4
Sig[0].Name=Package Full Name
Sig[0].Value=14665AAQ.AAQ_1.0.3.11_neutral__mqjtjzf78eaaj
Sig[1].Name=Application Name
Sig[1].Value=praid:App
Sig[2].Name=Application Version
Sig[2].Value=1.0.0.0
Sig[3].Name=Application Timestamp
Sig[3].Value=5347e402
Sig[4].Name=Fault Module Name
Sig[4].Value=combase.dll
Sig[5].Name=Fault Module Version
Sig[5].Value=6.3.9600.16520
Sig[6].Name=Fault Module Timestamp
Sig[6].Value=52e6927e
Sig[7].Name=Exception Code
Sig[7].Value=800f1000
Sig[8].Name=Exception Offset
Sig[8].Value=0007fd17
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.3.9600.2.0.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=896a
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=896a5d446a93e35895a2b8d22860148e
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=0488
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=04885d6165bbbf9c1e9404f1069bd19d
UI[2]=C:\Program Files\WindowsApps\14665AAQ.AAQ_1.0.3.11_neutral__mqjtjzf78eaaj\AskAQuestion.exe
LoadedModule[0]=C:\Program Files\WindowsApps\14665AAQ.AAQ_1.0.3.11_neutral__mqjtjzf78eaaj\AskAQuestion.exe
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\Windows\SYSTEM32\MSCOREE.DLL
LoadedModule[3]=C:\Windows\SYSTEM32\KERNEL32.dll
LoadedModule[4]=C:\Windows\SYSTEM32\KERNELBASE.dll
LoadedModule[5]=C:\Windows\SYSTEM32\ADVAPI32.dll
LoadedModule[6]=C:\Windows\SYSTEM32\msvcrt.dll
LoadedModule[7]=C:\Windows\SYSTEM32\sechost.dll
LoadedModule[8]=C:\Windows\SYSTEM32\RPCRT4.dll
LoadedModule[9]=C:\Windows\SYSTEM32\SspiCli.dll
LoadedModule[10]=C:\Windows\SYSTEM32\CRYPTBASE.dll
LoadedModule[11]=C:\Windows\SYSTEM32\bcryptPrimitives.dll
LoadedModule[12]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll
LoadedModule[13]=C:\Windows\SYSTEM32\SHLWAPI.dll
LoadedModule[14]=C:\Windows\SYSTEM32\combase.dll
LoadedModule[15]=C:\Windows\SYSTEM32\USER32.dll
LoadedModule[16]=C:\Windows\SYSTEM32\GDI32.dll
LoadedModule[17]=C:\Windows\system32\IMM32.DLL
LoadedModule[18]=C:\Windows\SYSTEM32\MSCTF.dll
LoadedModule[19]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
LoadedModule[20]=C:\Windows\SYSTEM32\MSVCR120_CLR0400.dll
LoadedModule[21]=C:\Windows\SYSTEM32\kernel.appcore.dll
LoadedModule[22]=C:\Windows\SYSTEM32\ole32.dll
LoadedModule[23]=C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\ebdd49343f711b2029293f8e621b28a2\mscorlib.ni.dll
LoadedModule[24]=C:\Windows\System32\twinapi.appcore.dll
LoadedModule[25]=C:\Windows\System32\WinTypes.dll
LoadedModule[26]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll
LoadedModule[27]=C:\Windows\SYSTEM32\OLEAUT32.dll
LoadedModule[28]=C:\Windows\System32\Windows.UI.Xaml.dll
LoadedModule[29]=C:\Windows\SYSTEM32\UIAutomationCore.DLL
LoadedModule[30]=C:\Windows\SYSTEM32\NInput.dll
LoadedModule[31]=C:\Windows\SYSTEM32\WININET.dll
LoadedModule[32]=C:\Windows\SYSTEM32\d3d11.dll
LoadedModule[33]=C:\Windows\SYSTEM32\dwmapi.dll
LoadedModule[34]=C:\Windows\SYSTEM32\UxTheme.dll
LoadedModule[35]=C:\Windows\SYSTEM32\XmlLite.dll
LoadedModule[36]=C:\Windows\SYSTEM32\SHELL32.dll
LoadedModule[37]=C:\Windows\SYSTEM32\urlmon.dll
LoadedModule[38]=C:\Windows\SYSTEM32\TWINAPI.dll
LoadedModule[39]=C:\Windows\SYSTEM32\iertutil.dll
LoadedModule[40]=C:\Windows\SYSTEM32\dxgi.dll
LoadedModule[41]=C:\Windows\SYSTEM32\shcore.dll
LoadedModule[42]=C:\Windows\SYSTEM32\CRYPTSP.dll
LoadedModule[43]=C:\Windows\system32\rsaenh.dll
LoadedModule[44]=C:\Windows\SYSTEM32\bcrypt.dll
LoadedModule[45]=C:\Windows\SYSTEM32\actxprxy.dll
LoadedModule[46]=C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll
LoadedModule[47]=C:\Windows\SYSTEM32\dwrite.dll
LoadedModule[48]=C:\Windows\SYSTEM32\igd10iumd32.dll
LoadedModule[49]=C:\Windows\SYSTEM32\ncrypt.dll
LoadedModule[50]=C:\Windows\SYSTEM32\NTASN1.dll
LoadedModule[51]=C:\Windows\SYSTEM32\igdusc32.dll
LoadedModule[52]=C:\Windows\SYSTEM32\d2d1.dll
LoadedModule[53]=C:\Windows\SYSTEM32\dcomp.dll
LoadedModule[54]=C:\Windows\SYSTEM32\MrmCoreR.dll
LoadedModule[55]=C:\Windows\SYSTEM32\Bcp47Langs.dll
LoadedModule[56]=C:\Windows\SYSTEM32\profapi.dll
LoadedModule[57]=C:\Windows\System32\Windows.UI.dll
LoadedModule[58]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System\8455c031f8ffe82a0109c563873260e8\System.ni.dll
LoadedModule[59]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runt0d283adf#\e209e80a78aee1367c92f1dd884d8f58\System.Runtime.WindowsRuntime.ni.dll
LoadedModule[60]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Runtc259d85b#\00fd6b9fc7353b024079f65164bdc73f\System.Runtime.WindowsRuntime.UI.Xaml.ni.dll
LoadedModule[61]=C:\Windows\System32\Windows.ApplicationModel.dll
LoadedModule[62]=C:\Windows\system32\windowscodecs.dll
LoadedModule[63]=C:\Windows\SYSTEM32\PhotoMetadataHandler.dll
LoadedModule[64]=C:\Windows\SYSTEM32\PROPSYS.dll
LoadedModule[65]=C:\Windows\SYSTEM32\oleacc.dll
LoadedModule[66]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll
State[0].Key=Transport.DoneStage1
State[0].Value=1
FriendlyEventName=Stopped working
ConsentKey=MoAppCrash
AppName=14665AAQ.AAQ_mqjtjzf78eaaj!App
AppPath=C:\Program Files\WindowsApps\14665AAQ.AAQ_1.0.3.11_neutral__mqjtjzf78eaaj\AskAQuestion.exe
NsPartner=windows
NsGroup=windows8
ApplicationIdentity=254467B9963B346A2B88CAE91E846F7F
You can't debug application crashes with this .wer files.
The only useful information is the error code 800f1000:
C:\Users\André>err 800f1000
# for hex 0x800f1000 / decimal -2146496512
SPAPI_E_ERROR_NOT_INSTALLED winerror.h
# No installed components were detected.
# 1 matches found for "800f1000"
You need a dmp file which you can get from the Quality Reports page and debug it.
Am trying to run Sharpen to convert some Java code to c#. Below is the detail of the instruction I am following, environment and problem statement.
Instruction followed:
http://www.pauldb.me/post/14916717048/a-guide-to-sharpen-a-great-tool-for-converting-java
http://community.versant.com/documentation/reference/db4o-7.12/net2/reference/index_Left.html#CSHID=sharpen%2Fhow_to_setup_sharpen.htm|StartTopic=Content%2Fsharpen%2Fhow_to_setup_sharpen.htm|SkinName=RedVersant
Environment:
Eclipse 4.2.0
JDK 1.7 (jdk1.7.0_03)
Problem:
I am able to set up the project in Eclipse and run the build file to convert the code. While executing the target "sharpen-docs" of the build file it errors out with the following message in the eclipse configuration log.
Any help will be much appreciated. Thanks in advance.
!ENTRY org.eclipse.osgi 2 0 2012-07-31 13:23:04.507
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The activator sharpen.core.Sharpen for bundle sharpen.core is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:172)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:236)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Caused by: java.lang.ClassNotFoundException: sharpen.core.Sharpen
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:165)
... 25 more
Root exception:
java.lang.ClassNotFoundException: sharpen.core.Sharpen
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:165)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:236)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
at org.eclipse.core.launcher.Main.main(Main.java:34)
!ENTRY org.eclipse.osgi 4 0 2012-07-31 13:23:04.737
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in sharpen.core was unable to load class sharpen.core.SharpenApplication.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Caused by: java.lang.ClassNotFoundException: sharpen.core.SharpenApplication
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
... 17 more
For the records:
The problem got resolved after I install Java 6 .. thanks Anders for pointing towards this.
Run in to problem when start default mvc project from visual studio. This question is continuation of: Azure Compute Emulator does not start. DFAgent crashes with error. Also I found this AppCrash log file, that contains information about loaded assemblies but it does not fit to previous question:
Version=1
EventType=APPCRASH
EventTime=129860523658697840
ReportType=2
Consent=1
UploadTime=129860523659217892
ReportIdentifier=8caf429b-c768-11e1-a4ed-6cf04951e202
Response.BucketId=3054088369
Response.BucketTable=1
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=csrun.exe
Sig[1].Name=Application Version
Sig[1].Value=6.0.6002.18488
Sig[2].Name=Application Timestamp
Sig[2].Value=4fcaabdc
Sig[3].Name=Fault Module Name
Sig[3].Value=KERNELBASE.dll
Sig[4].Name=Fault Module Version
Sig[4].Value=6.1.7600.16850
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=4e21132b
Sig[6].Name=Exception Code
Sig[6].Value=e0434f4d
Sig[7].Name=Exception Offset
Sig[7].Value=00009673
DynamicSig[1].Name=Версия ОС
DynamicSig[1].Value=6.1.7600.2.0.0.256.48
DynamicSig[2].Name=Код языка
DynamicSig[2].Value=1049
UI[2]=C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\csrun.exe
UI[3]=Прекращена работа программы "Windows Azure Simulation Execution Tool"
UI[4]=Windows может провести поиск способа устранения этой ошибки в Интернете.
UI[5]=Искать решение проблемы в Интернете и закрыть программу
UI[6]=Проверить наличие способа исправления ошибки в Интернете позднее и закрыть программу
UI[7]=Закрыть программу
LoadedModule[0]=C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\csrun.exe
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\Windows\SYSTEM32\MSCOREE.DLL
LoadedModule[3]=C:\Windows\system32\KERNEL32.dll
LoadedModule[4]=C:\Windows\system32\KERNELBASE.dll
LoadedModule[5]=C:\Windows\system32\ADVAPI32.dll
LoadedModule[6]=C:\Windows\system32\msvcrt.dll
LoadedModule[7]=C:\Windows\SYSTEM32\sechost.dll
LoadedModule[8]=C:\Windows\system32\RPCRT4.dll
LoadedModule[9]=C:\Windows\system32\apphelp.dll
LoadedModule[10]=C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
LoadedModule[11]=C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\MSVCR80.dll
LoadedModule[12]=C:\Windows\system32\USER32.dll
LoadedModule[13]=C:\Windows\system32\GDI32.dll
LoadedModule[14]=C:\Windows\system32\LPK.dll
LoadedModule[15]=C:\Windows\system32\USP10.dll
LoadedModule[16]=C:\Windows\system32\SHLWAPI.dll
LoadedModule[17]=C:\Windows\system32\IMM32.DLL
LoadedModule[18]=C:\Windows\system32\MSCTF.dll
LoadedModule[19]=C:\PROGRA~1\KASPER~1\KASPER~1.0FO\adialhk.dll
LoadedModule[20]=C:\PROGRA~1\KASPER~1\KASPER~1.0FO\kloehk.dll
LoadedModule[21]=C:\Windows\system32\shell32.dll
LoadedModule[22]=C:\Windows\system32\ole32.dll
LoadedModule[23]=C:\Windows\system32\profapi.dll
LoadedModule[24]=C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll
LoadedModule[25]=C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorsec.dll
LoadedModule[26]=C:\Windows\system32\WINTRUST.dll
LoadedModule[27]=C:\Windows\system32\CRYPT32.dll
LoadedModule[28]=C:\Windows\system32\MSASN1.dll
LoadedModule[29]=C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16661_none_ebfb56996c72aefc\COMCTL32.dll
LoadedModule[30]=C:\Windows\system32\CRYPTSP.dll
LoadedModule[31]=C:\Windows\system32\rsaenh.dll
LoadedModule[32]=C:\Windows\system32\CRYPTBASE.dll
LoadedModule[33]=C:\Windows\system32\imagehlp.dll
LoadedModule[34]=C:\Windows\system32\ncrypt.dll
LoadedModule[35]=C:\Windows\system32\bcrypt.dll
LoadedModule[36]=C:\Windows\system32\bcryptprimitives.dll
LoadedModule[37]=C:\Windows\system32\USERENV.dll
LoadedModule[38]=C:\Windows\system32\GPAPI.dll
LoadedModule[39]=C:\Windows\system32\cryptnet.dll
LoadedModule[40]=C:\Windows\system32\WLDAP32.dll
LoadedModule[41]=C:\Windows\system32\SensApi.dll
LoadedModule[42]=C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll
LoadedModule[43]=C:\Windows\assembly\GAC_MSIL\mscorlib.resources\2.0.0.0_ru_b77a5c561934e089\mscorlib.resources.dll
LoadedModule[44]=C:\Windows\system32\VERSION.dll
State[0].Key=Transport.DoneStage1
State[0].Value=1
State[1].Key=DataRequest
State[1].Value=Bucket=-1240878927/nBucketTable=1/nResponse=1/n
FriendlyEventName=APPCRASH
ConsentKey=APPCRASH
AppName=Windows Azure Simulation Execution Tool
AppPath=C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\csrun.exe
ReportDescription=Stopped working
Such problems are mainly caused by one misconfiguration in your machine and it would be very hard to troubleshoot however based on your above info I can see 3 possible reason (there may be more..)
Localization - Try to set the local to US and check if that helps.
Problem with some old .net framework installation - Try to uninstalling all of older .net frameworks in your machine and then install .net 4.0 full and launch CSRUN with Emulator again.
VC++ runtime incompatibility: Try removing VC++ runtime in your machine and then install 64bit VC++ runtime
Try making sure above changes and then check if that resolves the problem.