Registering .net 4 dll on Clients Machines

0

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 :

"C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" "M:\SharedLibraries\XPST.dll"

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 :

"C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe" "M:\SharedLibraries\XPST4.dll"

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.

.net-4.0
client
config
regasm
mapped-drive
asked on Stack Overflow Feb 24, 2016 by Farzad Karimi • edited Feb 24, 2016 by Farzad Karimi

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0