当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - ASP.NET Application isn't reaching WCF Service

问题描述:

The set up I have on my local machine works fine, but when I push it to the server I encounter an issue. All my calls work on the server until I call this certain method in the Reference.cs file.

public DataResults GetData(DataRequest request) {

return base.Channel.GetData(request);

}

Then nothing happens after this is called, it just sits there. No exception is being thrown or anything.

I had my logger code log points on each method, it gets to this method, but never gets to the WCF method. But all the other WCF method except for 2 of them. And the two works when I run it on my local machine.

The WCF method is set up like this:

The interface has:

 [OperationContract]

[FaultContract(typeof(Domain.Fault.SystemFault))]

[FaultContract(typeof(Domain.Fault.BusinessFault))]

DataResults GetData(DataRequest request);

and the actual method:

public DataResults GetData(DataRequest request)

{

try

{

Logger.LogInformation("Got to service");

DataResults dr=CallDB(request);

return dr;

}

catch (Exception ex)

{

throw this.getFaultExceptionComplete("GetData failed");

}

}

分享给朋友:
您可能感兴趣的文章:
随机阅读: