c# - .net local assembly load failed with CAS policy -


we getting following assembly load error. assembly loaded local path "c:\program files\asworx products\asworx\bin\". problem not there old version of binary. issue appears when have sent new binary through e-mail. build settings not changed. how can correct issue? issue appears in win7 32 bit machine

file name: 'file:///c:\program files\asworx products\asworx\bin\asconnexdi.dll' ---> system.notsupportedexception: attempt made load assembly network location have caused assembly sandboxed in previous versions of .net framework. release of .net framework not enable cas policy default, load may dangerous. if load not intended sandbox assembly, please enable loadfromremotesources switch. see http://go.microsoft.com/fwlink/?linkid=155569 more information.     @ system.reflection.runtimeassembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks)     @ system.reflection.runtimeassembly.nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks)     @ system.reflection.runtimeassembly.internalloadassemblyname(assemblyname assemblyref, evidence assemblysecurity, stackcrawlmark& stackmark, 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, evidence securityevidence)     @ system.activator.createinstancefrominternal(string assemblyfile, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes, evidence securityinfo)     @ nest.ice.iosystem.dimanager.initializedi() 

from link in error message:

if application has been copied web, flagged windows being web application, if resides on local computer. can change designation changing file properties, or can use element grant assembly full trust. alternative, can use unsafeloadfrom method load local assembly operating system has flagged having been loaded web.

try opening file properties , clicking 'unblock':

properties window


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -