Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: IISWCFWM5
Hi I am having an WCF sync Service hosting on IIS7 on my server, I can access the URL in browser, Actually i built the WCF service and later on i added a wcf service website to my solution by adding my wcf service reference. and in the service.svc file i mentioned the particular service. the web.config in the wcf site looks like
      <service behaviorConfiguration="ServiceBehavior" name="SimGuru_WCF.SimGuruDBCacheSyncService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
            <dns value="localhost" />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
        <behavior name="ServiceBehavior">
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="false"/>
When i am trying to access the service it is giving me the "The remote server returned an error: (404) Not found" but still i can access the service through URL
can some one please help me to sort this issue out
Thanks in advance
Posted 30-Aug-12 4:10am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I got it, using trace i was able to sort my problem
                         <messagelogging maxmessagestolog="30000">
The Trace viewer explained me where i am doing wrong one thing is that security issues with the sql server, and more over i don't even have a connection string property in my web. config file i have one on wcf service but not on wcf web site Any how it is solved
thanks all for your co-operation
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The problem is in your project that consumes the WCF. The server works ok.
Did you add service reference on your "client" project?
Hope it helps.
SREEKAN2 at 30-Aug-12 10:46am
My client project is a windows mobile project there is no option to add service reference there are only provision to add web reference and reference
Christian Amado at 30-Aug-12 10:48am
Add web reference :) Your wcf must be published first.
SREEKAN2 at 30-Aug-12 11:10am
Yes i already done that one the error is coming in the reference.cs file
SREEKAN2 at 30-Aug-12 12:04pm
Now I am getting {"The remote server returned an error: (500) Internal Server Error."} error
SREEKAN2 at 30-Aug-12 12:04pm
Is there any thing to do with end points?

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 668
1 OriginalGriff 396
2 Tadit Dash 345
3 sanket saxena 329
4 Peter Leow 193
0 Sergey Alexandrovich Kryukov 12,109
1 OriginalGriff 7,326
2 Peter Leow 5,003
3 Abhinav S 4,003
4 Maciej Los 3,575

Advertise | Privacy | Mobile
Web03 | 2.8.140421.2 | Last Updated 30 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid