[Windows Phone 7 Development and Hacking] adamrob69:
Hi all, im very new to what im trying to do here.

I have created a WCF web service webpage (just the default one that is generated in VS2010) and uploaded it to a webserver. I can open the page etc fine on the website.

Im trying to add this reference to a WP7 VB project through normal means but im getting the following errors and warnings:

Error	7	Custom tool error: Failed to generate code for the service reference 'ServiceReference1'. Please check other error and warning messages for details.	C:\Users\adam robinson.ACS\documents\visual studio 2010\Projects\DBTest\DBTest\Service References\ServiceReference1\Reference.svcmap	1	1	DBTest

Warning	3	Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_IService']	C:\Users\adam robinson.ACS\documents\visual studio 2010\Projects\DBTest\DBTest\Service References\ServiceReference1\Reference.svcmap	1	1	DBTest

Warning	4	Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_IService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='Service']/wsdl:port[@name='BasicHttpBinding_IService']	C:\Users\adam robinson.ACS\documents\visual studio 2010\Projects\DBTest\DBTest\Service References\ServiceReference1\Reference.svcmap	1	1	DBTest

Warning	2	Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Could not load type 'System.Runtime.Serialization.DataContractSet' from assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IService']	C:\Users\adam robinson.ACS\documents\visual studio 2010\Projects\DBTest\DBTest\Service References\ServiceReference1\Reference.svcmap	1	1	DBTest

Warning	6	Custom tool warning: Exception has been thrown by the target of an invocation.	C:\Users\adam robinson.ACS\documents\visual studio 2010\Projects\DBTest\DBTest\Service References\ServiceReference1\Reference.svcmap	1	1	DBTest

Warning	5	Custom tool warning: No endpoints compatible with Silverlight 3 were found. The generated client class will not be usable unless endpoint information is provided via the constructor.	C:\Users\adam robinson.ACS\documents\visual studio 2010\Projects\DBTest\DBTest\Service References\ServiceReference1\Reference.svcmap	1	1	DBTest

Warning	1	Custom tool warning: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.	C:\Users\adam robinson.ACS\documents\visual studio 2010\Projects\DBTest\DBTest\Service References\ajrWebService\Reference.svcmap	1	1	DBTest

The web service is ussing basicHttp and i have tried unticking the 'reuse types in referenced assemblies' but still no joy.

Any ideas?