Solved

Global Assembly Cache VB.NET Application

Posted on 2008-06-12
2
1,549 Views
Last Modified: 2013-11-07
I am using a VB.NET addid called EasyPDF to allow users to convert Word, XL files, etc, to VB.NET.  Everything works OK on the development machine, however when I compile the application and attempt to deploy it to a machine other than the development machine I got the following error message:

Unable to install or run the application.  The application
 Requires that assembly BCL.easyPDF.Interop.EasyPDFPrinter
Version 5.0.0.0 be installed in the Global Assembly Cache
(GAC) first."

I  then went into Solution Explorer/References and set the Copy Local Option to True for EasyPDFPrinter.  This then bypaseed the above message and allowed the install to proceed.  The application runs (there is noting in the GAC), however the conversion to PDF won't proceed and now returns a message "Cannot create ActiveX component".

Can anyone please help with a solution?

0
Comment
Question by:bertpet
2 Comments
 
LVL 7

Expert Comment

by:sj_hicks
ID: 21776406
Have you tried to install it to the GAC?

gacutil.exe /i BCL.easyPDF.Interop.EasyPDFPrinter
0
 
LVL 11

Accepted Solution

by:
melmers earned 500 total points
ID: 21885615
When you use an interop assembly you must copy the ActiveX dll and the Interop assmebly to your application path and then register the ActiveX dll with
regsvr32 PathToYourActiveX.dll



0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now