VB.Net 2008 and "Reference required to assembly" error

Discussions about image processing and document imaging.
Post Reply
rjhaleymd
Posts: 10
Joined: Fri Nov 16, 2007 4:06 pm

VB.Net 2008 and "Reference required to assembly" error

Post by rjhaleymd » Wed Jul 02, 2008 12:41 am

Loic,

I've hit a stone wall:
I am using registered version of the lastest GDPicturePro 5.x.
It does exactly what I want it to do.

I am using VB.Net express 2008

My project runs fine in debug mode, without errors.

When I try to build the exe, I get the following error and the build stops:

Error 102 Reference required to assembly 'GdPicturePro5, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null' containing the type 'GdPicturePro5.GdPictureStatus'. Add one to your project. C:\Development\GDPicture\FaxHandler\FaxHandler\FaxHandler\frmFaxHandler.vb 35 9 FaxHandler

The errors highlight each instance in code to the Imaging control.

When I click on "Show Error Help" I get the following:

The error help text is:
Reference required to assembly '<assemblyname>' containing the type '<membername>'
See Also Send Feedback

Error Message
Reference required to assembly '<assemblyname>' containing the type '<membername>'. Add one to your project.

The project contains a type that depends on another type from an assembly that is not included in the project references.

Error ID: BC30652

To correct this error
Add a project reference for the dependent types in the project.

See Also
Concepts



There is no problem reported with the GDViewer object I also use in the project on the form, just the imaging object. (I placed the imaging object from the tool box onto the form, and reference the named object: frmMain.gdpImg)
Below: NO problem with the Viewer, but the imaging object generates the error as above.

Code: Select all

        GDPViewer.CloseImage()
        GDPImg.TiffDeletePage(iNImage, iPage)
However, I have already added references (and removed and re-added, again and again) to GDPicturePro.
Have you seen this before? Do you have a recommendation? I am stumped (and ready to go back to VB6 to do this job! :( )

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: VB.Net 2008 and "Reference required to assembly" error

Post by Loïc » Wed Jul 02, 2008 9:42 am

Hi,

Try that:

- Remove all gdpicture references from your project
- delete the "bin" and the "obj" folders to your project directory.
- Add a reference to the last GdPicture Pro SDK COM server
- Rebuild the solution


If you always have problem with this solution, please send me your project by mail (esupport (at) gdpicture (dot) com) and I will solve your issue within few minutes.


Best regards,

Loïc Carrère

rjhaleymd
Posts: 10
Joined: Fri Nov 16, 2007 4:06 pm

Re: VB.Net 2008 and "Reference required to assembly" error

Post by rjhaleymd » Wed Jul 02, 2008 10:43 pm

Thanks Loic,
spectacular response, as usual. You shouldn't have to support Microsoft.
I was unable to just delete the references and the bin and obj directories.
So I have started a new project, with a new main form, and imported the code and other modules.
Haven't finished yet, but the initial build including references to GDPicture did not return any errors.
So . . . :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest