Install fails but enhanced logging does not contain errors - vsto

I have a ClickOnce Office Add-In that inconsistently fails to install in a PowerShell script. The script is being run from SCCM. When it fails, the only error in the install log is a -400 return value, which of course means almost nothing. There is other output both before and after that error, and nothing stands out.
I was able to replicate this once while ClickOnce logging was turned on, and the output is below (no timestamps because I had to transcribe this by hand).
Failed install:
PLATFORM VERSION INFO
Windows : 6.2.9200.0 (WinNT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.7.2046.0 built by: NET47REL1
clr.dll : 4.7.3260.0 built by: NET472REL1LAST_C
dfdll.dll : 4.7.2046.0 built by: NET47REL1
dfshim.dll : 10.0.15063.0 (WinBuild.160101.0800)
SOURCES
Deployment url : file://path/to/my.vsto
ERROR SUMMARY
No errors were detected during this operation.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
No phase information is available.
ERROR DETAILS
No errors were detected during this operation.
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
DETAILED EXECUTION FLOW
Activation through IPHM APIs is started.
Method Call : InPlaceHostingManager(file://path/to/my.vsto,False) called.
Method Call : InPlaceHostingManager.GetManifestAsync() called.
Internal state=GettingManifest
Method Call : DeploymentManager.BindAsync() called.
Binding started in a worker thread.
Internal state=DownloadingDeploymentInformation
Method Call : InPlaceHostingManager.Dispose() called.
Internal state=Done
Successful install:
PLATFORM VERSION INFO
Windows : 6.2.9200.0 (WinNT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.7.2046.0 built by: NET47REL1
clr.dll : 4.7.3260.0 built by: NET472REL1LAST_C
dfdll.dll : 4.7.2046.0 built by: NET47REL1
dfshim.dll : 10.0.15063.0 (WinBuild.160101.0800)
SOURCES
Deployment url : file://path/to/my.vsto
Application url : file://path/to/my/Application Files/my_1_0_0_123/my.dll.manifest
IDENTITIES
Deployment Identity : my.vsto, Version=1.0.0.123, Culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil
Application Identity : my.dll, Version=1.0.0.123, Culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Online only application
ERROR SUMMARY
No errors were detected during this operation.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
No phase information is available.
ERROR DETAILS
No errors were detected during this operation.
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
DETAILED EXECUTION FLOW
Activation through IPHM APIs is started.
Method Call : InPlaceHostingManager(file://path/to/my.vsto,False) called.
Method Call : InPlaceHostingManager.GetManifestAsync() called.
Internal state=GettingManifest
Method Call : DeploymentManager.BindAsync() called.
Binding started in a worker thread.
Internal state=DownloadingDeploymentInformation
Method Call : InPlaceHostingManager.Dispose() called.
expectedAppId=file://path/to/my.vsto#my.vsto, Version=1.0.0.123, culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil/my.dll, Version=1.0.0.123, culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil, type=win32
Application is not found in store.
Internal state=DownloadingApplicationInformation
_cached=False
_isUpdate=False
Binding is successful.
Creating GetManifestCompletedEventArgs.
Application Identity=file://path/to/my.vsto, Version=1.0.0.123, culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil/my.dll, Version=1.0.0.123, culture=neutral, PublicKeyToken=<an alphnumeric value>, processorArchitecture=msil, type=win32
IsCached=False
Method Call : InPlaceHostingManager.DownloadApplicationAsync() called.
Internal state=DownloadingApplcication
Method Call : DeploymentManager.SynchronizeAsync() called.
Download and install of the application started ina worker thread.
Application is not cached.
Application is successfully committed to the store.
Refreshing ActivationContext from store.
Installation is successful.
Internal state=Done
Method Call : InPlaceHostingManager.Dispose() called.
Internal state=Done
Note that there are no actual errors in the failed install.
When I do see this, it does not re-occur a second time. How do I troubleshoot this further?

Related

keycloak custom identity provider giving build error .I have implemented a custom AbstractIdentityProvider but getting build error

I have implemented a custom idp class extending AbstractIdentityProviderMapper .
and i am getting below error while building and i am using keycloak 17 :
ERROR: Failed to run 'build' command.
ERROR: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.deployment.steps.MainClassBuildStep#build threw an exception: java.lang.RuntimeException: Failed to record call to method public void org.keycloak.quarkus.runtime.KeycloakRecorder.configSessionFactory(java.util.Map,java.util.Map,java.util.Map,java.lang.Boolean)
at io.quarkus.deployment.recording.BytecodeRecorderImpl.writeBytecode(BytecodeRecorderImpl.java:509)
at io.quarkus.deployment.steps.MainClassBuildStep.writeRecordedBytecode(MainClassBuildStep.java:444)
Entire Problem statement is well mentioned here
I have implemented a abstractIdentityProvider mapper to call logic execution upon authentication from external idp .

Mule can't start as Window Service

When i start mule as window service, i check log and get this error.
Error message:
Mule installed.
--> Wrapper Started as Service
Launching a JVM...
Starting the Mule Container...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
WARNING - Unable to load the Wrapper's native library because none of the
following files:
wrapper-windows-x86-64.dll
wrapper.dll
could be located on the following java.library.path:
D:\Programs\mule-standalone-3.9.0\bin%LD_LIBRARY_PATH%
D:\Programs\mule-standalone-3.9.0\lib\boot
Please see the documentation for the wrapper.java.library.path
configuration property.
System signals will not be handled correctly.
Error in WrapperListener.start callback. java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi in java.library.path, C:\windows\system32\config\systemprofile\AppData\Local\Temp\jansi-64.dll (The system cannot find the path specified)]
java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi in java.library.path, C:\windows\system32\config\systemprofile\AppData\Local\Temp\jansi-64.dll (The system cannot find the path specified)]
at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:184)
at org.fusesource.hawtjni.runtime.Library.load(Library.java:142)
Resolved issue by creating the 'Temp' folder.
I've been testing with jdk 1.8.0_45.
C:\Windows\system32\config\systemprofile\AppData\Local\Temp

Nhibernate Nunit Framework Exception

I get the error below when running my tests from command line. I use re-sharper for my test environment. When I run from VS2015, all the tests pass. But when I run them from command line using nunit framework the configuration setup fails. My current project is in .NET 4.6.2.
SetUp : System.TypeInitializationException : The type initializer for 'NHibernate.Cfg.Configuration' threw an exception.
System.TypeInitializationException : The type initializer for 'NHibernate.LoggerProvider' threw an exception.
System.ApplicationException : Unable to instantiate: NHibernate.Log4NetLoggerFactory
System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
System.TypeInitializationException : The type initializer for 'NHibernate.Log4NetLoggerFactory' threw an exception.
System.NullReferenceException : Object reference not set to an instance of an object.
at NHibernate.Cfg.Configuration.Reset() in C:\Projects\nhibernate-core\src\NHibernate\Cfg\Configuration.cs:line 177
I encountered this issue when I upgraded from Nhibernate 2.0 to Nhibernate 4.0. I'm able to run the tests using version 2.0 dll of Nhibernate.
I have updated the test framework build file to run the tests on the latest nunit.framework.dll. (not the reference to the test project).

fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0]

While my .NET Core application is running, I noticed the following line:
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0]
An unhandled exception has occurred: Method 'Clone' in type 'Microsoft.EntityFrameworkCore.Infrastructure.Internal.SqlServerOptionsExtension' from assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=1.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation. System.TypeLoadException: Method 'Clone' in type 'Microsoft.EntityFrameworkCore.Infrastructure.Internal.SqlServerOptionsExtension' from assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=1.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.
I'm just curious what's causing this error because my apps is still running fine despite the error message.
By the way, I'm using .NET Core 2.0.0 Preview 1 version.
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware is just the middleware catching exceptions when nothing else in your program did
So your "real" exception is
Method 'Clone' in type 'Microsoft.EntityFrameworkCore.Infrastructure.Internal.SqlServerOptionsExtension' from assembly 'Microsoft.EntityFrameworkCore.SqlServer, ...' does not have an implementation
By doing some googling with this exception, it seems to get down to support of your .Net Core version vs your EF Provider
If you want more information, you can:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/error-handling?view=aspnetcore-2.1#the-developer-exception-page Enable Developer Exception pages
Log more information from EF (https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-2.1#add-providers => enable in trace mode will get you more information)

PRISM exception on not existing method

I am using PRISM for Silverlight 4.0 in one of my projects where I also access Sharepoint 2010.
The strange thing is that randomly I get the error:
An exception occurred while initializing module 'SharepointServiceModule'.
- The exception message was: Die Methode add_GetListCompleted im Typ SharepointServiceModule.Services.SharepointObjectModelService der Assembly SharepointServiceModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null hat keine Implementierung.
- The Assembly that the module was trying to be loaded from was:SharepointServiceModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Check the InnerException property of the exception for more information. If the exception occurred while creating an object in a DI container, you can exception.GetRootException() to help locate the root cause of the problem.
Which is very strange for me because first of all it happens only randomly and second that the method "add_GetListCompleted" is an event which must be implemented because I use it and it works.
Does anybody have an idea of whats going on here?
I found a solution for my problem.
First I tried to change the name of the interface and I noticed that the interface name did not change in the error message.
Therefore I removed the affected xap module from the Web project (this can be done in the properties of the "name.Web" project under "Silverlight Applications") and added it again. Then I performed a clean of the solution and a rebuild. After that everthing worked fine...