Error Message about "System.Runtime.InteropServices.COMException"

  • Thread starter Thread starter Fir5tSight
  • Start date Start date
F

Fir5tSight

Hi,

I have a C#.NET project on my local computer where I use a third party
library, "acPDFCreator.Net.dll" and "acPDFCreatorLib.Net.dll". I added
these two .dll files as references and the program works well on my
local machine. FYI, the output of the program is a service.

Just now I copied the executables together with "acPDFCreator.Net.dll"
and "acPDFCreatorLib.Net.dll" to another machine and started the
program (as a service). The program fails to function and I get an
error as follows:

ProcessControllerService.ProcessControllerService.mController_Exception( Object,
ExceptionEventArgs ): CoreException: Run failed. --->
System.IO.FileLoadException: Could not load file or assembly
'acPDFCreatorLib.Net, Version=2.0.1.32956, Culture=neutral,
PublicKeyToken=8aedc7a81d17941d' or one of its dependencies. This
application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix this problem.
(Exception from HRESULT: 0x800736B1)
File name: 'acPDFCreatorLib.Net, Version=2.0.1.32956, Culture=neutral,
PublicKeyToken=8aedc7a81d17941d' --->
System.Runtime.InteropServices.COMException (0x800736B1): This
application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix this problem.
(Exception from HRESULT: 0x800736B1)
at Reports.PdfReportFile.Print()

Could anyone please advise me on what is wrong and how to get this
fixed?

Thanks!
-Emily
 
Are the assemblies on the same folder on the production folder?

Maybe your DLLs need to be registered in the GAC, don't they?
 
Are the assemblies on the same folder on the production folder?

Maybe your DLLs need to be registered in the GAC, don't they?

Hi Robson,

The .dll files are in the same folder as other executables on this
other machine. How can I register these two .dlls in GAC?

-Emily
 
Back
Top