Unable to import wsdl: portType, wsdl: binding, wsdl: port errors with WCF in a Silverlight application

I have a Silverlight application that communicates with ADO.Net server-side data objects through a WCF service. In fact, I use several WCF services to communicate with three different ADO.Net data data. I originally built this project on Visual Studio 2010 and recently switched to Visual Studio Professional 2012 (trial) about a week ago. At first everything worked / ported, and I had no problems with the services about an hour ago. I literally used the same WCF services in my code less than an hour ago. However, when I added a method to insert an xml string into my database, I got this error:

Content Type text/xml; charset=utf-8 was not supported by service . The client and service bindings may be mismatched.

But I checked the bindings and they were basicHttpBinding, as far as I could tell from the ServiceReferences.ClientConfig file. I was looking for a solution and the only one I could find was to remove the service link and read it after restarting Visual Studio, so I finally tried this, but now, even after deleting the method I added, I now get this error when I am trying to add a service link on the client:

Warning 6   Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Exception has been thrown by the target of an invocation.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IXMonitorXMLDataService']    C:\Users\ckarrs\Documents\Visual Studio 11\Projects\SL_xMonitor_Frontend_RefactorV1_Backup82212\SL_xMonitor_Frontend_RefactorV1\Service References\XMonitorXMLDataService\Reference.svcmap  1   1   SL_xMonitor_Frontend_RefactorV1


Warning 7   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='IXMonitorXMLDataService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_IXMonitorXMLDataService']    C:\Users\ckarrs\Documents\Visual Studio 11\Projects\SL_xMonitor_Frontend_RefactorV1_Backup82212\SL_xMonitor_Frontend_RefactorV1\Service References\XMonitorXMLDataService\Reference.svcmap  1   1   SL_xMonitor_Frontend_RefactorV1

Warning 8   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_IXMonitorXMLDataService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='XMonitorXMLDataService']/wsdl:port[@name='BasicHttpBinding_IXMonitorXMLDataService']  C:\Users\ckarrs\Documents\Visual Studio 11\Projects\SL_xMonitor_Frontend_RefactorV1_Backup82212\SL_xMonitor_Frontend_RefactorV1\Service References\XMonitorXMLDataService\Reference.svcmap  1   1   SL_xMonitor_Frontend_RefactorV1

Warning 9   Custom tool warning: No endpoints compatible with Silverlight 5 were found. The generated client class will not be usable unless endpoint information is provided via the constructor.  C:\Users\ckarrs\Documents\Visual Studio 11\Projects\SL_xMonitor_Frontend_RefactorV1_Backup82212\SL_xMonitor_Frontend_RefactorV1\Service References\XMonitorXMLDataService\Reference.svcmap  1   1   SL_xMonitor_Frontend_RefactorV1

Warning 10  Custom tool warning: Exception has been thrown by the target of an invocation.  C:\Users\ckarrs\Documents\Visual Studio 11\Projects\SL_xMonitor_Frontend_RefactorV1_Backup82212\SL_xMonitor_Frontend_RefactorV1\Service References\XMonitorXMLDataService\Reference.svcmap  1   1   SL_xMonitor_Frontend_RefactorV1

I'm so confused. Other service links remain the same, and this service works completely until I tried to add and update the link to it. Is this a compatibility issue between VS 2010 and 2012? The MSDN website says that VS 2012 is backward compatible with VS 2010, and everything seemed to be perfectly portable. Any help is much appreciated, I am puzzled. Please let me know if further information is required.

+5
1

WCF, - .net WSDL, , , , WCF.

: An exception was thrown while running a WSDL import extension. , VS WSDL , .

.net - WSDL, , , . WSDL , ( )

WSDL, ?wsdl URL- , . -, . WSDL "", " " "".

, , WSDL .

- , WSDL , , WSDL , , WSDL . , , . , , , / WSDL.

+1

All Articles