az application insights - Unable to find assembly System.Diagnostics.DiagnosticSource when using Remoting -


after adding application insights asp.net application (standard asp.net using .net 4.5.2) i've found exception when using .net remoting. exception is:

unable find assembly 'system.diagnostics.diagnosticsource, version=4.0.2.1, culture=neutral, publickeytoken=cc7b13ffcd2ddd51'

i don't understand what's going on here (it seems tracing crossing application domain boundaries), if add system.diagnostics.diagnosticsource nuget package remote service, error goes away.

unfortunately, found i'm getting error when trying use sqldependency trigger cache refresh. there way disable tracing when using remoting, if that's what's going on, or there way resolve issue?

server stack trace:     @ system.runtime.serialization.formatters.binary.binaryassemblyinfo.getassembly()    @ system.runtime.serialization.formatters.binary.objectreader.gettype(binaryassemblyinfo assemblyinfo, string name)    @ system.runtime.serialization.formatters.binary.objectmap..ctor(string objectname, string[] membernames, binarytypeenum[] binarytypeenuma, object[] typeinformationa, int32[] memberassemids, objectreader objectreader, int32 objectid, binaryassemblyinfo assemblyinfo, sizedarray assemidtoassemblytable)    @ system.runtime.serialization.formatters.binary.__binaryparser.readobjectwithmaptyped(binaryobjectwithmaptyped record)    @ system.runtime.serialization.formatters.binary.__binaryparser.readobjectwithmaptyped(binaryheaderenum binaryheaderenum)    @ system.runtime.serialization.formatters.binary.__binaryparser.run()    @ system.runtime.serialization.formatters.binary.objectreader.deserialize(headerhandler handler, __binaryparser serparser, boolean fcheck, boolean iscrossappdomain, imethodcallmessage methodcallmessage)    @ system.runtime.serialization.formatters.binary.binaryformatter.deserialize(stream serializationstream, headerhandler handler, boolean fcheck, boolean iscrossappdomain, imethodcallmessage methodcallmessage)    @ system.runtime.remoting.channels.crossappdomainserializer.deserializeobject(memorystream stm)    @ system.runtime.remoting.messaging.smuggledmethodcallmessage.fixupfornewappdomain()    @ system.runtime.remoting.channels.crossappdomainsink.dodispatch(byte[] reqstmbuff, smuggledmethodcallmessage smuggledmcm, smuggledmethodreturnmessage& smuggledmrm)    @ system.runtime.remoting.channels.crossappdomainsink.dotransitiondispatchcallback(object[] args)  exception rethrown @ [0]:     @ system.runtime.remoting.proxies.realproxy.handlereturnmessage(imessage reqmsg, imessage retmsg)    @ system.runtime.remoting.proxies.realproxy.privateinvoke(messagedata& msgdata, int32 type)    @ system._appdomain.createinstance(string assemblyname, string typename)    @ system.data.sqlclient.sqldependency.createprocessdispatcher(_appdomain masterdomain)    @ system.data.sqlclient.sqldependency.obtainprocessdispatcher()    @ system.data.sqlclient.sqldependency.start(string connectionstring, string queue, boolean usedefaults)


Comments

Post a Comment

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -