
November 11th, 2010, 08:51 AM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 2
Time spent in forums: 23 m 52 sec
Reputation Power: 0
|
|
|
Getting 400 error and not 500
I have a problem in the IIS. I created on my computer WCF that work with JSON on .NET 3.5. I added ErrorHandling which throw the error in soap for example:
<Fault>...</Fault>
The error arrive with code 500.
But on the server it throw html like this:
The server encountered an error processing the request. The exception message is 'hello world'. See server logs for more details. The exception stack trace is:
at TGS.WebService.HotelMobile.HotelMobileFlow.GetServerTime() in D:\TGS\Symphony\Features\Dev-8.50-SP1-Mobile\Development\WebServiceProjects\HotelMobileWS\HotelMobileFlow.svc.cs:line 96 at SyncInvokeGetServerTime(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
and the error code is 400.
Please assist.
Thanks, Michal
|