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 IncludeExceptionDetailInFa ults (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.Channe ls.Service Channel.Th rowIfFault Understood (Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channe ls.Service Channel.Ha ndleReply( ProxyOpera tionRuntim e operation, ProxyRpc& rpc)
at System.ServiceModel.Channe ls.Service Channel.Ca ll(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channe ls.Service Channel.Ca ll(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channe ls.Service ChannelPro xy.InvokeS ervice(IMe thodCallMe ssage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channe ls.Service ChannelPro xy.Invoke( IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Pr oxies.Real Proxy.Hand leReturnMe ssage(IMes sage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Pr oxies.Real Proxy.Priv ateInvoke( MessageDat a& msgData, Int32 type)
at IService.createInstallatio n()
at ServiceClient.createInstal lation()
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 IncludeExceptionDetailInFa
Server stack trace:
at System.ServiceModel.Channe
at System.ServiceModel.Channe
at System.ServiceModel.Channe
at System.ServiceModel.Channe
at System.ServiceModel.Channe
at System.ServiceModel.Channe
Exception rethrown at [0]:
at System.Runtime.Remoting.Pr
at System.Runtime.Remoting.Pr
at IService.createInstallatio
at ServiceClient.createInstal
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);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Could that be? And how do I have to set the permissions?