I am pretty sure the C:/test/AdPlatform.Shared.dll is exist.
When I run this in Rider/VisoStudio, it works well.
When I try to run it as a system service, it does not work. There is no error and it creates null instance.
Asked
Active
Viewed 4,146 times
0
Tiramonium
- 557
- 5
- 15
li mars
- 1
- 1
- 1
-
AdPlatform.Shared.dll is come from 3rd party. – li mars Oct 26 '17 at 09:30
2 Answers
0
Adding custom Reference of Assemblies/DLL in any project will work only in Local Machine, not in other machine/Environments
ADDING THIRD PARTY DLLs IN ANY PROJECT FROM LOCAL PATH IS ALWAYS RISKER
Correct Way:
- Registering the Custom DLL in GAC then Add the reference from SYSTEM PATH
- For Web service/MVC Related Project(s) creating custom folders(lib) in the Solution itself and adding the DLL from that folder will be the best way to achieve it.
Jayendran
- 9,638
- 8
- 60
- 103
0
If you want a external library in your solution you need to place its file in a place the solution can access from anywhere (aka deploy location), meaning, put the file in a solution folder and set its using statements to its namespace anywhere you reference it in your project(s), so it will be sure to find the library you need.
Tiramonium
- 557
- 5
- 15