Azure Mobile Services and Application Insights -


i hava added azure application insights new azure mobile services (.net backend) project. when running on local machine it's sending data insights. when deploy azure not work. in log @ portal message below. know how solve this?

message='could not load assembly 'd:\home\site\wwwroot\bin\microsoft.applicationinsights.extensions.intercept_x86.dll'. error received: 'could not load file or assembly 'file:///d:\home\site\wwwroot\bin\microsoft.applicationinsights.extensions.intercept_x86.dll' or 1 of dependencies. module expected contain assembly manifest.'.', exception=system.badimageformatexception: not load file or assembly 'file:///d:\home\site\wwwroot\bin\microsoft.applicationinsights.extensions.intercept_x86.dll' or 1 of dependencies. module expected contain assembly manifest. file name: 'file:///d:\home\site\wwwroot\bin\microsoft.applicationinsights.extensions.intercept_x86.dll' @ system.reflection.runtimeassembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) @ system.reflection.runtimeassembly.nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) @ system.reflection.runtimeassembly.internalloadassemblyname(assemblyname assemblyref, evidence assemblysecurity, runtimeassembly reqassembly, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) @ system.reflection.runtimeassembly.internalloadfrom(string assemblyfile, evidence securityevidence, byte[] hashvalue, assemblyhashalgorithm hashalgorithm, boolean forintrospection, boolean suppresssecuritychecks, stackcrawlmark& stackmark) @ system.reflection.assembly.loadfrom(string assemblyfile) @ microsoft.windowsazure.mobile.service.config.webhostassemblyresolver.loadassembly(string assemblyfilepath) @ microsoft.windowsazure.mobile.service.config.webhostassemblyresolver.getapplicationassemblies(icollection1 asmpaths, iset1 excludedassemblynames)

wrn: assembly binding logging turned off. enable assembly bind failure logging, set registry value [hklm\software\microsoft\fusion!enablelog] (dword) 1. note: there performance penalty associated assembly bind failure logging. turn feature off, remove registry value [hklm\software\microsoft\fusion!enablelog]. , id=00000000-0000-0000-0000-000000000000, category='service.hosting'

this exception first chance exception , not affect monitoring in general. ai not work because azure mobile services infrastructure blocks http module application insights http module cannot loaded. there no workaround how enable autocollection right now. can manually instrument code.


Comments