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 Gholam253.5K
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 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web01 | 2.8.141220.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