Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Problem with Joined Assemblies

$
0
0
Re: Problem with Joined Assemblies
VFP and .NET Interop
Re: Problem with Joined Assemblies
Feb. 18, 2013
10:32 am
3PW0MLZEFShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Abhay Sobti

Not sure about that. Does the component work from .NET?

+++ Rick ---



Hi everyone,

I am not a professional DotNet programmer and so this basic question.

I have built the WkHtmlToXSharp.dll file using the freely available source code. I want to install this assembly in the GAC so that All my applications on the local machine can access this assembly using its Fully Qualified assembly name. However, this DLL has a dependency on Common.Loggin.Dll. So, I have used the ILMERGE utility to add the two assemblies as follows :

ilmerge.exe /keyfile:wkHtmlToXSharp.snk /target:library /out:ssWkHtmlToXSharp.dll Common.Logging.Dll WkHtmlXSharp.dll

Now I install the ssWkHtmlToXSharp.dll to the target machines using Installshield.

The problem is : When I try to instantiate the object using the following commands, an error occurs :

oBridge = NEWOBJECT("wwDotNetBridge","\shcommon\wconnect\classes\wwDotNetBridge.prg","",[V4]) oBridge.LoadAssembly("ssWkHtmlToXSharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a62b1b93e623d45b") oConvertor = oBridge.CreateInstance("WkHtmlToXSharp.WkHtmlToPdfConverter")

The error displayed is [using oBridge.cErrorMsg]:

Access to the path 'C:\Windows\assembly\GAC_MSIL\ssWkHtmlToXSharp\2.0.0.0__a62b1b93e623d45b\wkhtmltox0.dll' is denied.

Any help will be welcome.

Thanks
Abhay



Rick Strahl
West Wind Technologies


from Berlin

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles