C
Christopher C. Bernholt
We have a solution which contains 2 projects. The first project is a
windows control and it references an assembly. The second project is a
test windows application used to test the windows control from the
first project. As such, it references the windows control using a
project reference. In addition, it also references the same assembly
that the first project references.
The assembly which is referenced by both projects contains some UDT's
that are needed in both projects. However, when referenced as
mentioned above, we get errors such as:
Value of type 'RLC.Image.Collections.ImageInfoCollection' cannot be
converted to 'RLC.Image.Collections.ImageInfoCollection'.
where RLC.Image.Collections.ImageInfoCollection is one of the UDT's in
the referenced assembly. Also we get a number of the following errors
where the signature of an overloaded method with a primitive argument
can be used, but the other overloaded methods with UDT as the argument
cannot:
Overload resolution failed because no accessible 'LoadImages' can be
called with these arguments:
'Public Sub LoadImages(documentInfoCollection As
RLC.Image.Collections.ImageInfoCollection)': Value of type
'RLC.Image.Collections.ImageInfoCollection' cannot be converted to
'RLC.Image.Collections.ImageInfoCollection'.
'Public Sub LoadImages(imagePathCollection As
RLC.Image.Collections.ImagePathInfoCollection)': Value of type
'RLC.Image.Collections.ImageInfoCollection' cannot be converted to
'RLC.Image.Collections.ImagePathInfoCollection'.
'Public Sub LoadImages(documentInfo As RLC.Image.DocumentInfo)':
Value of type 'RLC.Image.Collections.ImageInfoCollection' cannot be
converted to 'RLC.Image.DocumentInfo'.
'Public Sub LoadImages(imagePath As String)': Value of type
'RLC.Image.Collections.ImageInfoCollection' cannot be converted to
'String'.
Anyone ever experienced this? I'm assuming it has to do with the way
the references are being read.
Thanks!
windows control and it references an assembly. The second project is a
test windows application used to test the windows control from the
first project. As such, it references the windows control using a
project reference. In addition, it also references the same assembly
that the first project references.
The assembly which is referenced by both projects contains some UDT's
that are needed in both projects. However, when referenced as
mentioned above, we get errors such as:
Value of type 'RLC.Image.Collections.ImageInfoCollection' cannot be
converted to 'RLC.Image.Collections.ImageInfoCollection'.
where RLC.Image.Collections.ImageInfoCollection is one of the UDT's in
the referenced assembly. Also we get a number of the following errors
where the signature of an overloaded method with a primitive argument
can be used, but the other overloaded methods with UDT as the argument
cannot:
Overload resolution failed because no accessible 'LoadImages' can be
called with these arguments:
'Public Sub LoadImages(documentInfoCollection As
RLC.Image.Collections.ImageInfoCollection)': Value of type
'RLC.Image.Collections.ImageInfoCollection' cannot be converted to
'RLC.Image.Collections.ImageInfoCollection'.
'Public Sub LoadImages(imagePathCollection As
RLC.Image.Collections.ImagePathInfoCollection)': Value of type
'RLC.Image.Collections.ImageInfoCollection' cannot be converted to
'RLC.Image.Collections.ImagePathInfoCollection'.
'Public Sub LoadImages(documentInfo As RLC.Image.DocumentInfo)':
Value of type 'RLC.Image.Collections.ImageInfoCollection' cannot be
converted to 'RLC.Image.DocumentInfo'.
'Public Sub LoadImages(imagePath As String)': Value of type
'RLC.Image.Collections.ImageInfoCollection' cannot be converted to
'String'.
Anyone ever experienced this? I'm assuming it has to do with the way
the references are being read.
Thanks!