Windows Phone 8, Windows 8 + updates 64 bit, VS 2012. Running VS2012 as an admin
I have created a WCF service. Code on the service:
[OperationContract]
Object GetCustomersObject();
Implementation code
public Object GetCustomersObject()
{
object c = DataContext.Customers;
return c;
}
I then Add a New Website to my application and configure the Service.svc file to point to the contract etc. Run it in a web browser and can see the WSDL.
I then test it using the WCFTestClient utility but i can connect to all the methods except for the one above as it does not support an Object.
I now create a Win Phone 8 project and connect to the service i then get the error "An exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.ni.dll but was not handled in user code"
expanding the exception i notice the message is The remote server returned an error: NotFound.. I then follow the steps found at http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj684580(v=vs.105).aspx since i am running IIS under VS i dont follow instructions for anything else (that is i add an entry to the config as suggested and open the firewall port, delete the existing service and readd it after shutting down the IIS service).
I still get the same error. So i delete the service and re-add it using the IP, machine name and whichever ive used still gives the same error.
I have also tried to turn the Windows Firewall service off to eliminate it being a firewall issue and same problem remains.
Im lost as to what else i could try?