E
enantiomer
I am using vs.net 2005 and have written a class library of business
objects. The business objects project is for the full .net framework.
The problem is that when I add a reference to the bus objects project
to my device project and try to instantiate a business object, it
always throws a compiler error that says:
"The type 'System.ComponentModel.IDataErrorInfo' is defined in an
assembly that is not referenced. You must add a reference to assembly
'System, Version=2.0.0.0..."
This one happened when I tried this line of code:
Uid uid = new Uid();
Now my base business object which all bus objects extend implements
IDataErrorInfo interface. I notice that this interface is supported in
both the full and compact framework. I have noticed a similar kind of
error when trying to assign instances of datasets in my device project
from my services project as well.
Any ideas on why it is giving me this compile exception? It seems as
though since the bus objects assembly is compiled under the full
framework, when I try to assign a class to it under the compact
framework, any classes/interfaces found under both versions of the
framework although they have the same name, are really defined as
different classes within the GAC (am i right?) and have different
strong name authenticated values. Is this why the compiler error is
being raised?
If this is the case, what is my best bet of using my business objects
in a mobile device project? Is anyone doing this? Thanks for the
help,
Jonathan
objects. The business objects project is for the full .net framework.
The problem is that when I add a reference to the bus objects project
to my device project and try to instantiate a business object, it
always throws a compiler error that says:
"The type 'System.ComponentModel.IDataErrorInfo' is defined in an
assembly that is not referenced. You must add a reference to assembly
'System, Version=2.0.0.0..."
This one happened when I tried this line of code:
Uid uid = new Uid();
Now my base business object which all bus objects extend implements
IDataErrorInfo interface. I notice that this interface is supported in
both the full and compact framework. I have noticed a similar kind of
error when trying to assign instances of datasets in my device project
from my services project as well.
Any ideas on why it is giving me this compile exception? It seems as
though since the bus objects assembly is compiled under the full
framework, when I try to assign a class to it under the compact
framework, any classes/interfaces found under both versions of the
framework although they have the same name, are really defined as
different classes within the GAC (am i right?) and have different
strong name authenticated values. Is this why the compiler error is
being raised?
If this is the case, what is my best bet of using my business objects
in a mobile device project? Is anyone doing this? Thanks for the
help,
Jonathan