Link to home
Start Free TrialLog in
Avatar of socom1985
socom1985

asked on

Error on calling OperationContract in WCF Service

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

ASKER CERTIFIED SOLUTION
Avatar of Edgard Yamashita
Edgard Yamashita
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of socom1985
socom1985

ASKER

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?