Problem with DLL

  • Thread starter Thread starter MW
  • Start date Start date
M

MW

Hello,

I have a following situation I have a web service, which is called from DLL,
which is used by Pocket. To ilustrate this:

WEB
SERVICE --------------> DLL -----------------------> Pocket client

The reason for doing this that way is, I also have WebClient, so, this also
aplies:

WEB
SERVICE --------------> DLL -----------------------> Web client

While everything works great on Web Client, any call to the DLL from Pocket
client results in LoadException, that says:

Additional information: Cannot load type System.Web.Services.Protocols.SoapHttpClientProtocol
from set System.Web.Services, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A.

What's wrong? Have I made some fundamental error?

I greatly appreciate any help on this, as I have no idea what to do next.

Thank you in advance,
MW
 
Indeed you have. You're trying to use assembly compiled against desktop on
device which is not allowed.

Note you have desktop PKT: B03F5F7F11D50A3A

NETCF PKT is 969DB8053D3322AC

Please make sure this DLL is compiled as NETCF DLL project, not desktop one.

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
Thanks for the reply.

You're right, when I created new project (for CF) and added all the files
everything works.

However I now have a problem that I have two sets of files in different projects.
Is there a workaround?

Thanks,
Wally
 
You can use NETCF DLL in desktop projects assuming no device specific code
is used in the DLL.

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
Back
Top