Azure WebJob fails with exit code 532462766


hi

i have scheduled webjob. of times runs successfully. once in 10 ten times, fails.

below logs get. using app insights logging exceptions.

[> 8a1006: sys info] status changed initializing  [> 8a1006: sys info] run script 'something.webjob.exe' script host - 'windowsscripthost'  [> 8a1006: sys info] status changed running  [> 8a1006: info] starting someindexloader...finished someindexloader.  [> 8a1006: info] starting someotherindexloader...finished someindexloader.  [> 8a1006: err ]   [> 8a1006: err ] unhandled exception: system.typeinitializationexception: type initializer 'myapp.common.logger' threw exception. ---> system.reflection.targetinvocationexception: exception has been thrown target of invocation. ---> system.invalidoperationexception: type 'microsoft.applicationinsights.extensibility.runtimetelemetry.remotedependencymodule, microsoft.applicationinsights.extensibility.runtimetelemetry' not loaded.  [> 8a1006: err ]    @ microsoft.applicationinsights.extensibility.implementation.telemetryconfigurationfactory.createinstance(type interfacetype, string typename)  [> 8a1006: err ]    @ microsoft.applicationinsights.extensibility.implementation.telemetryconfigurationfactory.loadinstance(xelement definition, type expectedtype, object instance)  [> 8a1006: err ]    @ microsoft.applicationinsights.extensibility.implementation.telemetryconfigurationfactory.loadinstances[t](xelement definition, icollection`1 instances)  [> 8a1006: err ]    --- end of inner exception stack trace ---  [> 8a1006: err ]    @ system.runtimemethodhandle.invokemethod(object target, object[] arguments, signature sig, boolean constructor)  [> 8a1006: err ]    @ system.reflection.runtimemethodinfo.unsafeinvokeinternal(object obj, object[] parameters, object[] arguments)  [> 8a1006: err ]    @ system.reflection.runtimemethodinfo.invoke(object obj, bindingflags invokeattr, binder binder, object[] parameters, cultureinfo culture)  [> 8a1006: err ]    @ microsoft.applicationinsights.extensibility.implementation.telemetryconfigurationfactory.loadinstance(xelement definition, type expectedtype, object instance)  [> 8a1006: err ]    @ microsoft.applicationinsights.extensibility.implementation.telemetryconfigurationfactory.loadproperties(xelement instancedefinition, object instance)  [> 8a1006: err ]    @ microsoft.applicationinsights.extensibility.implementation.telemetryconfigurationfactory.loadinstance(xelement definition, type expectedtype, object instance)  [> 8a1006: err ]    @ microsoft.applicationinsights.extensibility.implementation.telemetryconfigurationfactory.loadfromxml(telemetryconfiguration configuration, xdocument xml)  [> 8a1006: err ]    @ microsoft.applicationinsights.extensibility.implementation.telemetryconfigurationfactory.initialize(telemetryconfiguration configuration)  [ > 8a1006: err ]    @ microsoft.applicationinsights.extensibility.telemetryconfiguration.get_active()  [ > 8a1006: err ]    @ microsoft.applicationinsights.telemetryclient..ctor()  [ > 8a1006: err ]    @ myapp.common.logger..cctor() in d:\abc\swap\myapp.common\logger.cs:line 17  [> 8a1006: err ]    --- end of inner exception stack trace ---  [ > 8a1006: err ]    @ cnecrmsearch.common.logger.logexception(exception exception, idictionary`2 properties)  [ > 8a1006: err ]    @ myapp.common.indexloaders.someindexloader.loadindex(boolean dropandcreateindex) in d:\abc\swap\myapp.common\indexloaders\someindexloader.cs:line 241  [> 8a1006: err ]    @ myapp.webjob.program.main() in d:\abc\swap\myapp.webjob\program.cs:line 28  [ > 8a1006: info] starting some2indexloader...  [ > 8a1006: sys info] status changed failed  [ > 8a1006: sys err ] job failed due exit code -532462766

thanks in advance!

regards,

priyanka

it looks have broken configuration file.

you either can install application insights on clear application , compare configuration files. or can try uninstall application insights nugets, make sure have no applicationinsights configuration file anywhere in project. reinstall back.


anastasia



Visual Studio Development  ,  Visual Studio Team Foundation Server  >  Application Insights (AI)



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'