Re: Class Library for CF and .NET Framework

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Alex Feinman [MVP] (public_news_at_alexfeinman.com)
Date: 06/07/04


Date: Sun, 6 Jun 2004 21:22:29 -0700

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

-- 
Alex Feinman
---
Visit http://www.opennetcf.org
"Jeff Jackson" <aaxemen@hotmail.com> wrote in message
news:uNtFSNDTEHA.1472@TK2MSFTNGP09.phx.gbl...
> 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
>
>


Relevant Pages

  • Exception from HRESULT: 0x800700B6
    ... I developed an C# ASP.NET Web Service and 3rd party COM component is used in ... But I am getting the following error after migrating to Windows 2003 SP1 ... Exception from HRESULT: 0x800700B6. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: App crashes on Windows98
    ... You can run Windows Forms apps on Win98, ... Private Sub btnQuickQuoteOK_Click(ByVal sender As System.Object, ... exception is not handled. ...
    (microsoft.public.dotnet.framework.aspnet)
  • dll not loading in Web Service
    ... We have developed a Web service and we need to add a reference to a .net ... dll MyDll.dll which uses Win32 dlls. ... An unhandled exception occurred during the execution of the ... be loaded by the Web Service but can be loaded by the Windows Forms? ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Web service fails to run on Windows 2003
    ... What is your web service basically doing ?. ... of code that is throwing the exception ?. ... on Windows 2000 and XP. ... FUNCTION: ProcessFile: Loop for processing lines ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: does publisher 2000 run on windows xp?
    ... > exception. ... Not on my machine at the moment, as my Windows has a problem with ... 16-bit apps in general; ... Prev by Date: ...
    (microsoft.public.publisher)