Error on calling OperationContract in WCF Service

socom1985
socom1985 used Ask the Experts™
on
I need some help to find the solution. I deployed my WCF Service on a server. Local it worked just fine. But on the server I get an error invoking one of the operations first operation works fine.

Here the 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 <serviceDebug> 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 3.0 SDK documentation and inspect the server trace logs.

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

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 IService.createInstallation()
   at ServiceClient.createInstallation()
public class Service : IService
    {
        private CustomerConfiguration custConfig;
        
        /// <summary>
        /// Method generates a request
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public string createRequest(string request)
        {
            string response = "";

            Request req = new Request();
           custConfig = req.validate(request);

            //Return response
            if (custConfig.mode != 9)
            {
                response = "0";
            }
            else
            {
                response = custConfig.error;
            }

            return response;
        }

        /// <summary>
        /// Method initializes the installation
        /// process
        /// </summary>
        /// <param name="custConfig"></param>
        public void createInstallation()
        {
            Installation inst = new Installation();
            inst.init(custConfig);

            
        }

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Systems Analyst
Commented:
well the error message just tells us that an unhandled exception was thrown, did you try to enable the exception error as the message instructs you ? maybe with the real exception you might be able to know whats the real problem..

see here on how to enable the server to show the exception

http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicedebugbehavior.includeexceptiondetailinfaults.aspx

Author

Commented:
I tried to catch the exception but it does not even write my log file. So I think there is a permission problem.
Could that be? And how do I have to set the permissions?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial