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. 19, 2013
12:52 am
3PX1FFNAZShow this entire thread in new window
Gratar Image based on email address
From:Abhay Sobti
To:Rick Strahl
Aah ! Found the issue !! The problem was not with the Assembly itself, but with the access. I dont know how that happened, but running the code as "Run as Administrator" solved the issue.

Abhay

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




-- Abhay

HTML Help Builder

Viewing all articles
Browse latest Browse all 10393

Latest Images

Trending Articles



Latest Images