Click here to Skip to main content
15,895,962 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
Hello.

How can I import a custom class library dll in a device aplication (Smart Device Project)?


It's because I have one class library project where I declared methods and Functions to interact with a Database. On the other hand, I have a Device aplication project where I want to use the dll generated from the class library project.

But, I'm getting an error message in my device application when I call a function of my class library that return a dataset. This error says I need to reference an assembly "System.Data, version 2.0.0.0, culture neutral, token .... that contains System.Data.DataDet". I have In both projects this referece (Properties project-->References).
Posted
Updated 18-Jan-15 4:45am
v2
Comments
Sergey Alexandrovich Kryukov 17-Jan-15 18:02pm    
Probably, you don't. Please show your project file or its relevant fragment.
—SA
Armando Alejo 18-Jan-15 10:53am    
In my device application project I have these References:
System 2.0.0.0
System.Data 2.0.0.0
System.Data.SqlClient 3.0.3600.0


In my Class reference project I have
System 2.0.0.0
System.Data 2.0.0.0
System.Data.SqlClient 3.0.3600.0
NameSpace connectDB
Class Access

Function ExecuteQuey () as Dataset
...
Return dsResult
End class
End Namespace


Class Form1
Sub getResult
dim objA as new Acess
dim dSet as DataSet=connectDB.ExecuteQuery
End Sub

End Class

In this part of code is where I get the above message: connectDB.ExecuteQuery
Sergey Alexandrovich Kryukov 18-Jan-15 14:37pm    
1) This is not a project file. I was asking about the project file, XML, *.*proj.
2) Please don't put any code in comment. Use "Improve question" and format it properly:
<pre lang="HTML">

<!-- your code here -->

</pre>


(In CodeProject, the attribute lang="HTML" is used for HTML, XML and XML-based formats of source code.)

—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900