Strange problem

  • Thread starter Thread starter Feroz
  • Start date Start date
F

Feroz

We are developing a 3-tierd app.
I am passing a an array of structures from the the first
tier to the second
it was working fine until suddenly I m getting compiler
error (BC30332)

Value of type '1-dimensional array of
stc_ADM_Product_InsertXXX' cannot be converted to '1-
dimensional array of stc_ADM_Product_InsertXXX' ' because
stc_ADM_Product_InsertXXX' ' is not derived
from 'stc_ADM_Product_InsertXXX'


The strange thing is I m not trying to convert one type to
other...I m calling a function whole parameter signatures
are of same type(Structures)

This is similar to saying an integer cannot be converted
to an integer...

Any comments???
 
Feroz said:
We are developing a 3-tierd app.
I am passing a an array of structures from the the first
tier to the second
it was working fine until suddenly I m getting compiler
error (BC30332)

Value of type '1-dimensional array of
stc_ADM_Product_InsertXXX' cannot be converted to '1-
dimensional array of stc_ADM_Product_InsertXXX' ' because
stc_ADM_Product_InsertXXX' ' is not derived
from 'stc_ADM_Product_InsertXXX'

The strange thing is I m not trying to convert one type to
other...I m calling a function whole parameter signatures
are of same type(Structures)

This is similar to saying an integer cannot be converted
to an integer...

Any comments???

Is the type stc_ADM_Product_InsertXXX available from two different
assemblies, by any chance? I can't immediately think how that would
give a *compile* time error, but it may well be something to do with
it...
 
I have this common assembly(Dll) which defines only
structures..which I refer at the 1st tier and the 2nd
Tier.. so both share the same assembly.....
 
Feroz said:
I have this common assembly(Dll) which defines only
structures..which I refer at the 1st tier and the 2nd
Tier.. so both share the same assembly.....

Are you absolutely sure that you've only got one copy of that DLL? If
it's the same DLL but in two different places, that could also be a
problem.
 
well .NET copies the Dlls it refers in the projects Bin
directory...so we do have multiple dlls of the same
assebly.. but the error it flags is confusing...
I juggled with the build order and got things working...
but still I m not very clear why the compliler flags such
an error..
any ways thanks fr your replies..
 
Back
Top