.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Used to be able to use net.tcp to connect to a WCF service, now can only use basicHttpBinding - afte

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :WCF


When developing I used to be able to connect to a WCF service using net.tcp, even though basicHttpBinding was specified on service side.



What changed was that we added a behaviourconfiguration to the WCF service.



We have to change our client endpoints to also use http:// … instead of net.tcp with the same behavior configuration.



Why can we no longer use net.tcp, and in the first place how did it work when it was never specified in the WCF configuration on the service side?

I.W Coetzer

View Complete Post

More Related Resource Links

Enter your credentials to connect to the web service


When trying to publish an InfoPath 2007 form template (as a Content Type), I am getting the following message with a UserName/Password dialog box:
Enter your credentials to connect to the following web service: http://MySitePath/_vti_bin/Webs.asmx

When I enter my credentials, the above dialog box appears again. I have carefully entered my credential. Another thing I noticed that despite this error I see the form got created at the destination library. The only thing is that the Content Type did not get created and hence is not available in the "Site Content Type Gallery".

We are using Sharepoint 2007 enterprise edition. And I have recently published the InfoPath form templates several time as Content type without any issue.


Please help. Thanks........

Error: The search request was unable to connect to the Search Service.

When attempting a search, I get the the error message "The search request was unable to connect to the Search Service. "  The search sevice has been started in Central Administration.  Does anyone have suggesting as to how to troubleshoot this issue?   Thank you in advance for your help.

WCF Service basicHttpBinding SmartDevice

Hello, i'm trying to use a WCF service in a SmartDevice project but i get the following message: "There was no endpoint listening at <URL> that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details." To connect to my WCF Service i used the NetCFSvcUtils.exe to generate the code to connect to the service, but i'm not sure if my binding is right, it's the first time that i develop for a smart device using a WCF Service. My binding code is:   <system.serviceModel> <services> <service behaviorConfiguration="WcfServiceCCM.ServiceCCMBehavior" name="WcfServiceCCM.ServiceCCM" > <endpoint address="" binding="basicHttpBinding" contract="WcfServiceCCM.IServiceCCM" bindingConfiguration="basicBindingConfig" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <bindings> <basicHttpBinding> <binding name="basicBindingConfig" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="524288" /> </basicHttpBinding> </bindings> <behaviors> <serviceBehaviors> <behavior name=&qu

Search service is not able to connect to the machine that hosts the administration component

I encounter the error above when trying to set up Sharepoint Server Search. I have tried both setting up search manually through Central admin (just selecting default for everything) as well as through Powershell (using this: http://stsadm.blogspot.com/2009/12/creating-sharepoint-2010-enterprise.html). I'm using the farm admin as Search account as well as account for Application pools, so I guess permissions should not be the issue.Creating new Search service application seems to be successful, but when going to Searchadministration after creation, then System status displays the error above. Event log does add any info and just displays same error message ("SearchApi.cs throws exception:The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component 'db397ab0-d9b0-46c4-9077-dc8be62bf586' in search application 'TNS Enterprise Search Service Application' is in a good state and try again."). I have found this http://blog.fpweb.net/sharepoint-2010-server-search-troubleshooting/ stating that the solution is not to use MSDN version of Windows 2008, but does give any explanation why.Any ideas would be appriciated.Best regardsThomas

Unable to connect a web service from SharePoint 2010

Hi, I have a requirement to connect to a webservice from SharePoint 2010 without passing Network credentials explicitly. If i am already logged into the SharePoint 2010 portal , I should be able to click on Search (which is a web service which retrieves search results from Oracle UCM) and retrieve the result. I tried localhost.ServiceX myProxy = new localhost.ServiceX(); myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; also myProxy.UseDefaultCredentials = True Still i am unable to authenticate. Default credentials returns null value.   Kindly help.

Search request unable to connect to the Search Service.

I have searched through other similiar topics and have not been able to get it working again properly. I've tried deleting the Search Service account out and all associated information and created a new one. My crawl logs show that they are successfull and that I have content available in my local sites, as well as my people listed. I have disabled loopback checks, given the default content access account owner access on the databases. Everytime I do a search, I get that error message listed as the subject. I'm running a 4 server farm setup with 1 DB, 1 App, and 2 WFE's. Everything was working fine and now I can't get back working right. I have hammering at it all day and need some additional input of where to look. I'm no SharePoint expert by any means, but I'm slowly getting used to everything. Please help!

Infopath 2010 cannot connect to Rest web service

Hi all, I recently tried to access an Excel spreadsheet range as a Rest web service in Infopath 2010; no luck.  Here are the steps I followed: 1. [Successful] Upload Excel spreadsheet with the said ranges onto a Sharepoint document library 2. [Successful] Bind the Excel spreadsheet range (I have one called Regions) in the Sharepoint document library as a Rest web service in Infopath form's listbox control during design time as follows - http://mosscrm/sites/sandbox/_vti_bin/excelrest.aspx/eventbudgets/lookups.xlsx/model/ranges('Regions')?$format=atom 3. [Failed] Then I tried to preview the form, but the actual data in the Excel range failed to populate the Infopath listbox control.  The error I got was: "Could not open "http://<localhost>/sites/<site name>/_vti_bin/ExcelRest.aspx/EventBudgets/Lookups.xlsx/Model/Ranges('EventTypes')?$format=atom"   The error I then got from Infopath was a pop-up saying: The query cannot be run for the following DataObject: Event Types InfoPath cannot run the specified query. The file is not a valid XML file. Not enough storage is available to process this command . If anyone out there has experienced a similar issue and resolved it, please kindly share your solution approach. Thanks.



The search service is not able to connect to the machine that hosts the administration component

I'm expierencing this error message and am not sure what to do to fix this.  I don't want to break anything else on our farm.   The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component '9139bef7-69a3-4125-9d0e-e09484cc24ee' in search application 'Search Service Application' is in a good state and try again. Nothing appears under topology.  It just continues to load.  Any suggestions would be appreciated.

Unable to connect to local host service when a splash screen is show before start the services

Hi all:

I want to show a splash screen before start the local host services, the host can be open without error, however the client (Form1) is not able to connect to the service. Without the splash screen, every thing work fine. Any idea why ?

Here is the code.

Imports System.ServiceModel

<ServiceContract()> _
Public Interface IHelloWorldService
   <OperationContract()> _
   Function SayHello(ByVal name As String) As String
End Interface

Public Class HelloWorldService
   Implements IHelloWorldService

   Public Function SayHello(ByVal name As String) As String Implements IHelloWorldService.SayHello
      Return String.Format("Hello, {0}", name)
   End Function
End Class

Module Module1
   Private host As ServiceHost
   Private frmSplash As Form

   Sub Main()
      AddHandler AppDomain.CurrentDomain.AssemblyLoad, Addres

503 Service Error and Cannot connect to configuration database.


We have a brand new installation of Windows Server 2008 R2, SQL Server 2008 R2, and SharePoint 2010, and configuration of SharePoint 2010 at end of installation.

So far after all of this was installed the only thing we've accomplished so far is this:

Accessing the website:  503 Service Unavailable.
Accessing admin site:  503 Service Unavailable and/or Cannot connect to configuation database.

I've installed teh recommended hotfixes.  I've rebooted.  I've reconfigured to ensure it was hitting the right database and everything else.  Googled and searched here, ALL to no avail.

Suggestions?  I'm at my wits end and won't spend another second on what, but all appearances, is turning out to be a crappy product that our company spent thousands on.  I've had better luck (100% success) running just the services.


Error : Unable to connect to the remote server, When using web service in window service

Hi All,

          I want to consume a web service in windows service but in windows service I am not able to access  web service. I have tried it in windows application and web application it is working fine but in windows service  it is not accessible.


i am getting error:-   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)--->   at System.Net.HttpWebRequest.GetRequestStream()
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Testmachone.MachWebRef.SimCardWS.ProvisionImsiCard(String MsMin, String MsEsn, String CardId, String UserId, String Password, String MscId, String BId, String NewValue, ActionTypes Command, String MDN, String COS, String MIP_KEY, String MEID, String RADIUSPassword, String IMSI, Boolean PrePaid)

 any body can help me what could be issue


WSE 2.0 to WCF connect to Java service


Hi All,

I currently have a WSE 2.0 client that connects successfully to a Java web service and I'm trying to get a WCF client to do the same thing. I've tried basicHttpBinding, wsHttpBinding, and also customBinding with different variations with no success. I'm hoping if I post my _working_ WSE client code that someone can easily translate it to either a config or code based solution.

string _javaSignCertName = "java_messagesign_test";
string _javaSSLCertName = "*.javaWS.com"
string _javaWebServiceURL = "https://javatest.javaservices.com:443/JavaServiceWS";
javaServiceWS_vs0 javaService = null;

// WSE 2.0 method
X509CertificateStore store = X509CertificateStore.LocalMachineStore(X509CertificateStore.MyStore);


// Look in the local machine store.
X509CertificateCollection col = (X509CertificateCollection)store.FindCertificateBySubjectString(_javaSignCertName);
Microsoft.Web.Services2.Security.X509.X509Certificate cert = 

When i Add service Reference in console application, I was not able to connect the page?



when i  add http://abcdef/webservice.svc in service reference , I got the following errors


The document at the url http://staging.syncfusion.com/SyncfusionService/WebsiteService.svc was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'There was an error downloading 'http://26128-staging/SyncfusionService/WebsiteService.svc?disco'.'.
  - The remote name could not be resolved: '26128-staging'
- Report from 'http://staging.syncfusion.com/SyncfusionService/WebsiteService.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.
- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.
- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.
Metadata contains a reference that cannot be resolved: 'http://staging.syncfusion.com/SyncfusionService/WebsiteService.svc'.
The remote server returned an unexpected response: (417) Expectation failed.
The remote server returned an error: (417) Expectation failed.
If the service is defined in the current solution, try building the solution and adding the service

How to connect to a WCF intalled as a windows service with user name and password


I have installed my WCF service using

        <endpoint address="service" binding="wsDualHttpBinding" contract="aa.IABC" name="HttpBinding"/>

And I intall this service as a Windows service..

When installing the service I am giving

                serviceProcessInstaller1.Account = ServiceAccount.User;
                serviceProcessInstaller1.Username = userName;
                serviceProcessInstaller1.Password = password;   

I am trying to connect to this service using my client but cannot open the channel .


          <binding name="HttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
              receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"

How to improve the speed of data transfer in WCF service using basicHttpBinding


Hi All,

                I come across an issue in transferring 2MB file into the server through WCF service from my Windows Mobile client using 3G connection. Application takes around 2 minute to upload fine into server.

It’s an image file is there any way I can improve the speed.


I used basic httpBinding and WCF Service accepts file as byte array.

E.g. Operation contract.

Int UploadData(byte[] inImage)

Thanks ,

Jayakumar A

The search service is not able to connect to the machine that hosts the administration component.

I just installed the FAST Content Search Service Application.  However, when going to Application Management -> Manage Service Application -> FAST Content SSA, I see the following error:

Crawl status The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component 'e5ece22e-b215-4c8e-a661-5f20d526de78' in search application 'FAST Search Content SSA' is in a good state and try again. 
Clicking on Content sources brings me to

System.InvalidOperationException: The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component 'e5ece22e-b215-4c8e-a661-5f20d526de78' in search application 'FAST Search Content SSA' is in a good state and try again. 
   at Microsoft.Office.Server.Search.Administration.SearchApi..ctor(SearchServiceApplication application) 
   at Microsoft.Office.Server.Search.Administration.SearchApi.CreateSearchApi(SearchServiceApplication application) 
   at Microsoft.Office.Server.Search.Administration.SearchServiceApplication.get_SearchApi() 
   at Microsoft.Office.Server.Search.Administration.ContentSourceCollection..ctor(Content parent) 
   at Microsoft.Office.Server.Search.Administration.Content.get_ContentSources() 
   at M
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend