c# - Register a dll on a server -
i'm working on console application in c# , uses 2 different dll:
-log4net.dll -htmlagilitypack.dll
the .exe built has been placed on server , run every 5 minutes through task scheduler. if place both dll @ same level .exe, works well, automatically found things place them in usual dll folder, in bin folder on server.
how can accomplish ?thanks help
for need tell clr find reference directory, can next way,
add reference of assembly in visual studio , set "copy local" property falsethen specify directory runtime search there using below code in app config this
<configuration> <runtime> <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatepath="bin;bin2\subbin;bin3"/> </assemblybinding> </runtime> </configuration>
c# server regsvr32 dllregistration
No comments:
Post a Comment