Hi there,
I have a WCF WebService that is running fine in the prduction.
I migrated it to my local machine for tests, by zipping the entire folder, and installing it in my local IIS.
The service is running fine, when I navigate to the service page: http://localhost:8085/MyService/help I get a list of available GET / POST methods. Using one of these methods on the
productio server returns a building address as expected
![]()
![]()
Using the same method / operation locally - return a Request Error:
![]()
![]()
<div dir="ltr">
The server encountered an error processing the request. Please see the service help page for constructing valid requests to the service. The exception message is 'The type
initializer for 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy' threw an exception.'. See server logs for more details. The exception stack trace is: Server stack trace: at System.Threading.Thread.InternalCrossContextCallback(Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegate ftnToCall, Object[] args) at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(IMessage
reqMsg) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at MobileForms.Business.LookupDataManager.SearchBuildings(String
searchString) at SyncInvokeSearchBuildings(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.ProcessMessage11(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean
isOperationContextSet) |
</div>
What else needs to be done please ?