Loading...

VB.Net Build Error

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

VB.Net Build Error

Postby pengel » Thu Oct 23, 2008 12:29 am

I have written an application using GDViewerPro4 version 1.7.0.0. I have set the local copy property to True in my references for my three GD items. When I run the application, it works great. When I try to build it, I get the following exception, referencing all lines of code where I am calling a method or setting a property, like SetZoomFitControl, Appearance, DisplayFromFile. The error is:

Reference required to assembly 'GdViewerPro4, Version=1.7.0.0, Culture=neutral, PublicKeyToken=null' containing the type 'GdViewerPro4.GdPictureStatus'. Add one to your project.

The one for the Appearance property is:
Reference required to assembly 'GdViewerPro4, Version=1.7.0.0, Culture=neutral, PublicKeyToken=null' containing the type 'GdViewerPro4.ViewerAppearance'. Add one to your project.

In my project's preferences, I have three items associated with GDViewer. They are:
GdPicture Pro 5 - Imaging Toolkit [1.7.0.0] (References the file Interop.GDPicturePro5.dll)
GDViewer pro 4 - Image Viewer ActiveX [1.6.0.0] (References the file AxInterop.GDViewerPro4.dll)
GDViewer Pro 4 - Image Viewer ActiveX [1.6.0.0] (References the file Interop.GDViewerPro4.dll)

I need to deploy this product, so any help you can provide would be greatly appreciated.

Paul
pengel
 
Posts: 4
Joined: Thu Oct 09, 2008 2:02 pm

Re: VB.Net Build Error

Postby Loïc » Thu Oct 23, 2008 5:59 pm

Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: VB.Net Build Error

Postby pengel » Thu Oct 23, 2008 7:21 pm

That is very helpful. The only problem I still have is that when I purchased and installed the GdPicturePro I lost my AxInterop, and using the GdViewerPro4 does not seem to support the same event behavior as the previous one. Sorry for the confusion, but I'm not clear on why when I create a reference now I can only create it to the GdViewerPro4, not the AxGdViewerPro4.

I had tried the solution you referred me to, which led to the second post on this topic. Please see:
gdviewerpro4-axgdviewerpro4-issue-t1029.html

So, to summarize, I want to be able to deploy this w/ the original class library so that my functionality will work, but it seems not to be available anymore.
pengel
 
Posts: 4
Joined: Thu Oct 09, 2008 2:02 pm

Re: VB.Net Build Error

Postby MIKES » Thu Oct 23, 2008 7:49 pm

My two cents...

I had something similiar when I recently started using a new version of gdPicture pro 5.
In that my Ax and Interop got lost....

After a bit of googling I found that If I added the GDPicturePro5.Imaging Control out of the tool box to the form somewhere, the Ax and Interop were recreated with the new version. (not sure I I had to recompile first or not).
Course had to make sure the tool box had the updated version.

After that I could remove the control that was added.

I've only been through this process once, so I am a little shady on the details.

(Thats the reason I've not gone to 5.7 yet... maybe next week.)


Using VS2005 and vb.net
Mike S.
GdPicturePro.Net v6.2.14
GdPicturePro5 v5.8.0
Vb.Net /Visual Studio 2005
MIKES
 
Posts: 49
Joined: Thu Jul 31, 2008 8:03 pm
Location: Michigan

Re: VB.Net Build Error

Postby pengel » Thu Oct 23, 2008 8:03 pm

That make sense! I'll give it a try and let you know what happens. Perhaps if you have only create the viewer objects through declaration the events are not exposed in the same way!

Again, I'll let you know what I find!
pengel
 
Posts: 4
Joined: Thu Oct 09, 2008 2:02 pm

Re: VB.Net Build Error

Postby pengel » Thu Oct 23, 2008 8:47 pm

Thanks Loïc and MikeS! That did the trick. That last bit is a bit nasty...but once you understand, it works.

I've deployed my app. I tried to load it on another machine, after upgrading to Framework 3.5, and it crashed, so I have to trouble-shoot that. I doubt it has to do w/ Gd, though.

Cheers,
Paul
pengel
 
Posts: 4
Joined: Thu Oct 09, 2008 2:02 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest