Click here to Skip to main content
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 23:36pm
Edited 26-Jun-12 23:44pm
Mehdi Gholam249.3K
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 Mathew Soji 334
1 Maciej Los 295
2 BillWoodruff 290
3 Afzaal Ahmad Zeeshan 257
4 DamithSL 225
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,045


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 27 Jun 2012
Copyright © CodeProject, 1999-2014
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