Click here to Skip to main content
11,721,385 members (82,902 online)
Rate this: bad
good
Please Sign up or sign in to vote.
I am getting
"Error HRESULT E_FAIL has been returned from a call to a COM component"
error when i am trying to upgrade the service reference. what should i do? am i missing some thing..plz suggest some solution.i m using mvvm,prism,silverlight 4,wcf
Posted 26-Jun-12 22:36pm
Edited 26-Jun-12 22:44pm
Mehdi Gholam285.7K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

delete web service reference and add it once a again.Find the “Web.config” file in Solution Explorer, and double-click on it to open it up. Once you’ve opened it, scroll to the bottom and look for the section.

"AdventureWorks_WebServer.Service1Behavior"
name="AdventureWorks_WebServer.Service1">


bindingConfiguration="customBinding0"
contract="AdventureWorks_WebServer.Service1" />


binding="mexHttpBinding"
contract="IMetadataExchange" />



Notice that there are two endpoint tags: the top one, which has an address=””, and the bottom one, which has an address=”mex”. We want to focus on the top one, with the address=””, as follows:


bindingConfiguration="customBinding0"
contract="AdventureWorks_WebServer.Service1" />
In order to successfully communicate with the Silverlight client application, we need to change the binding to “basicHttpBinding”, and remove bindingConfiguration, as follows:

contract="AdventureWorks_WebServer.Service1" />
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

delete web service reference and add it once a again.Find the “Web.config” file in Solution Explorer, and double-click on it to open it up. Once you’ve opened it, scroll to the bottom and look for the section.

"AdventureWorks_WebServer.Service1Behavior"
name="AdventureWorks_WebServer.Service1">


bindingConfiguration="customBinding0"
contract="AdventureWorks_WebServer.Service1" />


binding="mexHttpBinding"
contract="IMetadataExchange" />



Notice that there are two endpoint tags: the top one, which has an address=””, and the bottom one, which has an address=”mex”. We want to focus on the top one, with the address=””, as follows:


bindingConfiguration="customBinding0"
contract="AdventureWorks_WebServer.Service1" />
In order to successfully communicate with the Silverlight client application, we need to change the binding to “basicHttpBinding”, and remove bindingConfiguration, as follows:

contract="AdventureWorks_WebServer.Service1" />
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 254
2 Mika Wendelius 170
3 cyycoish 70
4 ppolymorphe 66
0 Sergey Alexandrovich Kryukov 2,249
1 OriginalGriff 1,024
2 F-ES Sitecore 690
3 Maciej Los 619
4 Richard MacCutchan 580


Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 27 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100