I have some programs that some of them built with vb6 and others are .net and all of them runs in many client machines,
vb6 programs uses some of the dlls of .net programs and because of this, i always have to register these .net dlls on client machines.
i use a batch file to register my dlls on client machines with some lines of command like this one :
because of some reasons i upgraded my .net programs to .net framework 4.
so for using .net 4, i changed my registering command to something like this :
but in .net 4 it gives me the error :
Could not load file or assembly 'file:///M:\SharedLibraries\XPST4.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
i know that i can solve it by adding the ''loadFromRemoteSources'' tag to file ''regasm.exe.config'' but i must do it on every client machine that it's not my favorite option !
could you show me a better solution ?
Thanks in Advance.
User contributions licensed under CC BY-SA 3.0