Simple WCF Call inside a Module

Topics: Web Client Software Factory, User Forum
May 7, 2008 at 5:20 PM
Can anyone give any advice on how to make a simple WCF service call from my Module?

When adding the Service Reference to the module, all goes well until the actual method execution on the service (Ping()) which returns a simple datetime.

DataLoadServiceClient client = new DataLoadServiceClient();
client.Ping();

When it executes it, the error that is returned is

Unable to find an entry point named 'FreeCredentialsHandle' in DLL 'security.Dll'.

Does anyone have any ideas? Thanks in advance.

May 13, 2008 at 4:03 AM
Edited May 13, 2008 at 4:05 AM
Does anyone have any ideas? Thanks in advance.
Did you call your project security?   This would account for this error...
May 13, 2008 at 12:50 PM
Thanks for the reply Bill. No I didn't. I do have a reference in the service to CompanyName.Mig.Security but that's not what I think is happening.

The problem I think is with the Development Web Server included with Visual Studio 2008 (Cassini???). Anyways, I have the WCF service hosted in another Virtual Directory in IIS on XP. When I debug my app using another Virtual Directory in IIS; everything runs fine, but when I debug with the Dev Server it gives me the error above. It's not a huge workaround, but I would still like to know what's causing the issue.

Thanks,
Mike Kushner