Adding project reference of CF class library to web service

E

enantiomer

I am using VS.NET 2005, C#

I want to expose some of the functionality from my CF class library via
web services. I created the web service project and added a reference
to my businessServices class library. In this library I include some
connection functionality from the SqlServerCE namespace. What ends up
happening is that it copies over the SqlServerCe assembly to the Bin
directory of the web service under Inetpub and when i try to build the
solution it gives the error of:

Error 1 Could not load file or assembly 'System.Data.SqlServerCe,
Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or
one of its dependencies. The located assembly's manifest definition
does not match the assembly reference. (Exception from HRESULT:
0x80131040)

What is wrong with this and why is it doing this? It seems like it is
having rouble loading the assembly because of signed information? Is
this an ok process of exposing a device class library via web services?


Thanks in advance,

Jonathan
 
E

eastlands

Your webservice will run on your desktop/server machine but your CF
class is expecting to run on a device. How do you expect your
webservice to get access to the SQLCE database which is presumably on
the device?

I think you may need to re-engineer your business class library so that
it uses SQL 2005 to access your server database if that is what you are
trying to do. the ADO factory classes will help you keep the same code
for two different SQL-CE and SQL2005 projects.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top