Click here to Skip to main content
12,952,398 members (44,356 online)
Rate this:
 
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
Updated 26-Jun-12 22:44pm
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
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 <services> section.

<service behaviorconfiguration="<br" mode="hold" /> "AdventureWorks_WebServer.Service1Behavior"
name="AdventureWorks_WebServer.Service1">

<endpoint address="" binding="customBinding">
bindingConfiguration="customBinding0"
contract="AdventureWorks_WebServer.Service1" />

<endpoint address="mex">
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:

<endpoint address="" binding="customBinding">
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:
<endpoint address="" binding="basicHttpBinding">
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 <services> section.

<service behaviorconfiguration="<br" mode="hold" /> "AdventureWorks_WebServer.Service1Behavior"
name="AdventureWorks_WebServer.Service1">

<endpoint address="" binding="customBinding">
bindingConfiguration="customBinding0"
contract="AdventureWorks_WebServer.Service1" />

<endpoint address="mex">
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:

<endpoint address="" binding="customBinding">
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:
<endpoint address="" binding="basicHttpBinding">
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
Top Experts
Last 24hrsThis month
OriginalGriff 6,239
CHill60 3,490
Maciej Los 3,083
Jochen Arndt 1,975
ppolymorphe 1,880


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