Class Library for CF and .NET Framework

J

Jeff Jackson

I'm trying to build a class library that can be used for .NET framework
desktop windows applications as well as .NET Compact Framework apps. The
class library needs to make use of a web service. I created the project for
the class library using the Smart Device Application option in the wizard
and things work properly for smart device apps that consume my class
library; however, when I try to use the same class library with a .NET
windows application, I get a runtime exception when I access the web
service.

The message is: An unhandled exception of type
'System.InvalidOperationException' occurred in system.web.services.dll

Am I trying to do something that can not be done? Otherwise I guess I'll
have to have separate builds of my class library - one for CF applications
and another for windows apps. Does that make sense? Is there another way?
I'd prefer not to have to have two different assemblies.

Thanks,
Jeff
 
A

Alex Feinman [MVP]

IIRC the desktop and CF versions of the System.Web.Services are different.
What is the stack when you hit the exception? Perhaps you would be able to
get around this problem by customizing web service proxy
 

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