This project has moved and is read-only. For the latest updates, please go here.

ejecting code sharing because a dependent assembly did not match the conditional APTCA share mode

Oct 5, 2015 at 5:02 PM
Hi. I have a problem with SharePoint 2013 and profiling using rewritten IL very similar to this issue:

In my case, I had instrumented several System.Net.Sockets.Socket methods, but when the profiled code gets invoked and executes into my profiling agent, the event log shows entries like so:
An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1551841460/ROOT

Process ID: 10036

Exception: System.IO.FileLoadException

Message: Loading this assembly would produce a different grant set from other instances.    (Exception from HRESULT: 0x80131401)

Server stack trace: 
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
Any recommendations or thoughts?