Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

I have Windows application and which has login page.
Login page calls webservice for authentication and if authenticated it redirects to new page.

I have webservice which does this activity for me.
If i run host webservice in my server and run windows application on my office machines it works.
But if i run Windows application in Client's system. Then It gives me below error(In this case web service is still on my server).

27/10/2014 02:36:39 PM ==> Username: ==> ActivateProduct ==> Error Msg: An error occurred while receiving the HTTP response to http://URL..../licensews/Service.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
Posted
Updated 4-Nov-14 19:06pm
v2
Comments
ArunRajendra 5-Nov-14 0:59am    
Don't post your valid URL. Could be misused.
sunil mali 5-Nov-14 1:07am    
Ok Sure thanks..

1 solution

Hi,

I think there is a serialization problem you can find the exact error. Just add the below code in service config in section.

After adding the below code, a"App_tracelog.svclog" file will be created where your service exists. Open it and find the red colored line which is the error and see its description.

XML
<system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchvalue="Warning, ActivityTracing">
        <listeners>
          <add name="ServiceModelTraceListener" />
        </listeners>
      </source>
      <source name="System.ServiceModel" switchvalue="Verbose,ActivityTracing">
        <listeners>
          <add name="ServiceModelTraceListener" />
        </listeners>
      </source>
      <source name="System.Runtime.Serialization" switchvalue="Verbose,ActivityTracing">
        <listeners>
          <add name="ServiceModelTraceListener" />
        </listeners>
      </source>
    </sources>
    <sharedlisteners>
      <add initializedata="App_tracelog.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelTraceListener" traceoutputoptions="Timestamp" />
    </sharedlisteners>
  </system.diagnostics>


Hope this helps you in finding the exact error :)

Regards,
Praneet
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900