.net 4.0 - unbind BindAsLegacyV2Runtime -
so have application launcher can (should) run new apps created in clickonce , older apps use remoting type of logic
when trying run apps received following message
cannot load assembly. error details: system.io.fileloadexception: not load file or assembly 'program' or 1 of dependencies. operation not supported. (exception hresult: 0x80131515) file name:'program' ---> 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.
googling found piece of code says update app config
loading blocked , network-hosted assemblies .net 4
that fix older apps broke newer apps
so found setting uselegacyv2runtimeactivationpolicy @ runtime
and "works" in if load new app first, no issue, load older app , ok, if go load new app stops working.
so either need know how unbind bindaslegacyv2runtime when run new apps. or need whole other approach?
thanks
adding
<runtime> <loadfromremotesources enabled="true"/> </runtime>
fixed issue both types of application
Comments
Post a Comment