Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The server was unable to process the request due to an internal error

When i try to load method from webservice, i get an error:

"The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs"

This is my app.config endpoint def:

<services>
  <service name="Service" behaviorConfiguration="debug">
</services>

<client>
  <endpoint name="Service" address="net.tcp://localhost:12708/" binding="netTcpBinding" bindingConfiguration="netTcp" contract="path.IService" >
    <identity>
      <servicePrincipalName />
    </identity>
  </endpoint>
</client>

<serviceBehaviors>
    <behavior name="debug">
      <serviceDebug includeExceptionDetailInFaults="True" />
    </behavior>
  </serviceBehaviors>

I cannot see more information event if i have declared serviceBehaviors. Could somebody tell me how can i see more details about this error?

like image 419
codelikeprogrammerwoman Avatar asked Jan 13 '14 09:01

codelikeprogrammerwoman


2 Answers

The message of the error is quite clear. The server is configured to hide internal errors for security reasons.This is the default behaviour according to the fault handling in WCF MSDN post.

I see two options, both suppose that you have access to the server:

  • Enable showing the error details See the fault handling in WCF MSDN post. It provides details on how to setup your configuration, in the "Provide Additional Information When an Exception Occurs" section.

  • Debug using actual breakpoints This would be better. In my opinion, no error message could actually give you the insights a debugging session does.

Hope I helped!

like image 136
Pantelis Natsiavas Avatar answered Oct 04 '22 13:10

Pantelis Natsiavas


Solution: My service wasn't started. Because we run services locally, I needed to open the required solution and run the service locally via RG -> Create new instance.

How I do I know about this? My log files are stored in c:/temp. In this location, appeared a new log file and there I found more info about my error. (All the time I was thinking that the details about my error message will enter into my basic log file, but I didn't expect another log file.

So, Reason: web service didn't work.
Solution: Start service localy: Rb -> create new service.

like image 39
codelikeprogrammerwoman Avatar answered Oct 04 '22 13:10

codelikeprogrammerwoman