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.
Related
Right now we are using windows form. NSIS is using for windows form installation. But i need to block installation in windows 7 o.s. How to do that? I am using the below code.
; Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!define PRODUCT_TYPE "Home" ; Home/Clinic ------
!define CONFIG_TYPE "Prod" ; Release/Local/Devl/Devl_Test/Demo/Test/Prod ------
!define PRODUCT_NAME "nQ Medical ${PRODUCT_TYPE} Keyboard"
!define PRODUCT_VERSION "1.2.0"
!define PRODUCT_PUBLISHER "nQ Medical Inc."
!define PRODUCT_WEB_SITE "https://platform.nq-medical.com"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define APP_NAME "nQKeyboard.exe"
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "nQKeyboard\iconNQ.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
RequestExecutionLevel admin
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "nQKeyboard\bin\${CONFIG_TYPE}\EULA.txt"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_NAME}"
!insertmacro MUI_PAGE_FINISH
; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
; Language files
!insertmacro MUI_LANGUAGE "English"
; MUI end ------
Name "${PRODUCT_NAME}"
;Currently deploys the installer file to a 'Published' sub-directory in the 'Solution' directory
OutFile "Published\nQ Medical ${PRODUCT_TYPE} Keyboard.exe"
InstallDir "$PROGRAMFILES\nQ Medical Keyboard"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
Section "MainSection" SEC01
; Kill the running application
ExecWait "TaskKill /IM ${APP_NAME} /F"
SetOutPath "$INSTDIR"
SetOverwrite try
File "nQKeyboard\bin\${CONFIG_TYPE}\iconNQ.ico"
File "nQKeyboard\bin\${CONFIG_TYPE}\Newtonsoft.Json.dll"
File "nQKeyboard\bin\${CONFIG_TYPE}\RestSharp.dll"
File "nQKeyboard\bin\${CONFIG_TYPE}\RestSharp.Serializers.NewtonsoftJson.dll"
File "nQKeyboard\bin\${CONFIG_TYPE}\GraphQL.Client.dll"
File "nQKeyboard\bin\${CONFIG_TYPE}\GraphQL.Common.dll"
File "nQKeyboard\bin\${CONFIG_TYPE}\EULA.txt"
File "nQKeyboard\bin\${CONFIG_TYPE}\${APP_NAME}"
CreateDirectory "$SMPROGRAMS\nQ Medical Keyboard"
CreateShortCut "$SMPROGRAMS\nQ Medical Keyboard\nQ Medical Keyboard.lnk" "$INSTDIR\${APP_NAME}"
CreateShortCut "$DESKTOP\nQ Medical Keyboard.lnk" "$INSTDIR\${APP_NAME}"
File "nQKeyboard\bin\${CONFIG_TYPE}\${APP_NAME}.config"
SectionEnd.
So How to add code section? ie; if windows 7 is o.s. then installation not takes place. show error message when execute script. how to do that?
NSIS provides the WinVer.nsh header file that helps you detect various Windows versions.
Version detection might seem simple at first but it is easy to make mistakes and your question does not really provide enough information to write a definitive answer!
The naïve answer to your question is
!include WinVer.nsh
Function .onInit
${If} ${IsWin7}
MessageBox MB_ICONSTOP "Windows version blah blah!"
SetErrorLevel 1150 ; ERROR_OLD_WIN_VERSION
Quit
${EndIf}
FunctionEnd
This seems fine at first but assuming there is some technical reason why your application cannot run on Windows 7 then you probably also need to block Server 2008 R2 because it is basically the same version of Windows:
${If} ${IsWin7}
${OrIf} ${IsWin2008R2}
...
Most of the time you have some minimum version of Windows that you support and you really should block anything older. The best way to do this is to make sure that you are on a version you support:
!include WinVer.nsh
Function .onInit
${IfNot} ${AtLeastWin8}
MessageBox MB_ICONSTOP "Windows version blah blah!"
SetErrorLevel 1150 ; ERROR_OLD_WIN_VERSION
Quit
${EndIf}
FunctionEnd
If you are really familiar with the various Windows build numbers you can also check that directly:
${IfNot} ${AtLeastBuild} 9200
...
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.
I am trying to publish the app from Visual-Studio but I am getting the error:
The command "node node_modules/webpack/bin/webpack.js --env.prod"
exited with code 1. first azure app
C:...\firstazureapp
C:...firstazureapp\firstazureapp.csproj 497
I have followed this Article
Getting Started With Angular 5 And ASP.NET Core
Everything is working fine but at publish time only I am getting the error.
I have run this command In the node modules folder and it is giving these issue
C:\Users\acer\source\repos\testfromcmd>node node_modules/webpack/bin/webpack.js --env.prod
Hash: 40bd2f76867df4f7cc31ffb9aab17185511f568b
Version: webpack 2.5.1
Child
Hash: 40bd2f76867df4f7cc31
Time: 26026ms
Asset Size Chunks Chunk Names
main-client.js 1.73 MB 0 [emitted] [big] main-client
ERROR in main-client.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at filterdFiles.forEach (C:\Users\acer\source\repos\testfromcmd\node_modules\webpack\lib\optimize\UglifyJsPlugin.js:81:21)
at Array.forEach ()
at Compilation.compilation.plugin (C:\Users\acer\source\repos\testfromcmd\node_modules\webpack\lib\optimize\UglifyJsPlugin.js:40:18)
at Compilation.applyPluginsAsyncSeries (C:\Users\acer\source\repos\testfromcmd\node_modules\tapable\lib\Tapable.js:142:13)
at self.applyPluginsAsync.err (C:\Users\acer\source\repos\testfromcmd\node_modules\webpack\lib\Compilation.js:635:10)
at Compilation.applyPluginsAsyncSeries (C:\Users\acer\source\repos\testfromcmd\node_modules\tapable\lib\Tapable.js:131:46)
at sealPart2 (C:\Users\acer\source\repos\testfromcmd\node_modules\webpack\lib\Compilation.js:631:9)
at Compilation.applyPluginsAsyncSeries (C:\Users\acer\source\repos\testfromcmd\node_modules\tapable\lib\Tapable.js:131:46)
at Compilation.seal (C:\Users\acer\source\repos\testfromcmd\node_modules\webpack\lib\Compilation.js:579:8)
at C:\Users\acer\source\repos\testfromcmd\node_modules\webpack\lib\Compiler.js:493:16
at C:\Users\acer\source\repos\testfromcmd\node_modules\tapable\lib\Tapable.js:225:11
at _addModuleChain (C:\Users\acer\source\repos\testfromcmd\node_modules\webpack\lib\Compilation.js:481:11)
at processModuleDependencies.err (C:\Users\acer\source\repos\testfromcmd\node_modules\webpack\lib\Compilation.js:452:13)
at process._tickCallback (internal/process/next_tick.js:150:11)
Child
Hash: ffb9aab17185511f568b
Time: 26026ms
Asset Size Chunks Chunk Names
main-server.js 2.04 MB 0 [emitted] [big] main-server
I solved my problem by changing the uglify version from 3.0.23 to 2.8.23 and this works for me thanks for help
I'm trying Sonar 3.2 with C# projects (the only plugins are C# Core and C# FX Cop) and using the Simple Java Runner.
It worked fine on a solution with a single project, but when I tried to analyse using a solution with 2 projects I always get the following error:
17:01:41.775 INFO .s.b.b.ProjectModule - ------------- Analyzing Project1
17:01:42.055 INFO .s.b.ProfileProvider - Selected quality profile : [name=Custom C#,language=cs]
17:01:42.075 INFO nPluginsConfigurator - Configure maven plugins...
17:01:42.125 INFO org.sonar.INFO - Compare to previous analysis
17:01:42.155 INFO org.sonar.INFO - Compare over 5 days (2012-09-27)
17:01:42.175 INFO org.sonar.INFO - Compare over 30 days (2012-09-02)
17:01:42.215 INFO .b.p.SensorsExecutor - Initializer ProjectFileSystemLogger...
17:01:42.215 INFO jectFileSystemLogger - Source directories:
17:01:42.215 INFO jectFileSystemLogger - $(Solution folder)\Project1
17:01:42.215 INFO .b.p.SensorsExecutor - Initializer ProjectFileSystemLogger done: 0 ms
17:01:42.225 INFO .b.p.SensorsExecutor - Initializer CSharpProjectInitializer...
17:01:42.225 INFO .b.p.SensorsExecutor - Initializer CSharpProjectInitializer done: 0 ms
17:01:42.255 INFO o.s.p.cpd.CpdSensor - Detection of duplicated code is not supported for C#.
Total time: 8.442s
Final Memory: 5M/118M
Exception in thread "main" org.sonar.runner.RunnerException: java.lang.NullPointerException
at org.sonar.runner.Runner.delegateExecution(Runner.java:288)
at org.sonar.runner.Runner.execute(Runner.java:151)
at org.sonar.runner.Main.execute(Main.java:84)
at org.sonar.runner.Main.main(Main.java:56)
Caused by: java.lang.NullPointerException
at org.sonar.plugins.csharp.api.sensor.AbstractRegularCSharpSensor.assembliesFound(AbstractRegularCSharpSensor.java:101)
at org.sonar.plugins.csharp.api.sensor.AbstractRegularCSharpSensor.shouldExecuteOnProject(AbstractRegularCSharpSensor.java:81)
at org.sonar.plugins.csharp.api.sensor.AbstractRuleBasedCSharpSensor.shouldExecuteOnProject(AbstractRuleBasedCSharpSensor.java:48)
at org.sonar.api.batch.BatchExtensionDictionnary.shouldKeep(BatchExtensionDictionnary.java:109)
at org.sonar.api.batch.BatchExtensionDictionnary.getFilteredExtensions(BatchExtensionDictionnary.java:99)
at org.sonar.api.batch.BatchExtensionDictionnary.select(BatchExtensionDictionnary.java:57)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:57)
at org.sonar.batch.phases.Phases.execute(Phases.java:93)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:139)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:131)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:126)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:121)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:121)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.Batch.execute(Batch.java:104)
at org.sonar.runner.internal.batch.Launcher.executeBatch(Launcher.java:69)
at org.sonar.runner.internal.batch.Launcher.execute(Launcher.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.sonar.runner.Runner.delegateExecution(Runner.java:285)
... 3 more
The solution folder contains the following sonar-project.properties:
# Project identification
sonar.projectKey=com.project.btg
sonar.projectVersion=1.0
sonar.projectName=BTG
# Info required for Sonar
sonar.sources=.
sonar.language=cs
sonar.dotnet.visualstudio.solution.file=Sonar.project.sln
sonar.dotnet.buildPlatform=x86
sonar.dotnet.buildConfiguration=Debug
sonar.modules=Project1,Project2
#modules specific configuration
Project1:sonar.sources=.\Project1
Project1:sonar.projectName=Project 1
Project2:sonar.sources=.\Project2
Project2:sonar.sources=Project 2
The solution only has this 2 projects.
I tried adding the modules configuration in a sonar-project.properties for each project with just:
# Project identification
sonar.projectName=Project 1
For the single project I used I had:
# Project identification
sonar.projectKey=com.Project1
sonar.projectVersion=1.0
sonar.projectName=Project 1
# Info required for Sonar
sonar.sources=.
sonar.language=cs
I feel I'm missing something very simple, but I couldn't find much information on this.
If someone can help me with this I have an additional question:
Can you analyse a hybrid solution of C++ and C# project?
Thanks
The support of multi-module is built-in for the C# plugins, you don't need to (and should not) specify:
sonar.modules=Project1,Project2
#modules specific configuration
Project1:sonar.sources=.\Project1
Project1:sonar.projectName=Project 1
Project2:sonar.sources=.\Project2
Project2:sonar.sources=Project 2
, nor add a "sonar-project.properties" inside each module.
The C# Plugins rely on the SLN file to automatically discover the modules. Take a look at our sample application, and just replace the Maven POM by a single "sonar-project.properties" file.
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.