开发者

WCF 4 Call Works with Cassini Not IIS

I have a simple ASP.NET site making a call to a WCF service. The call works in Visual Studio 2010 (both sites running under Cassini using basic HTTP binding). Moving the same thing to XP , running the web site page (which makes a simple call to the WCF service) makes the web server throw a "500" error.

There is nothing in the Event Log. Tracing is activated for the WCF service and everything looks normal except for a Warning-level message "Configuration evaluation context was not found." at the Open ServiceHost activity.

On the XP machine, there is just a single web site running as low IIS-in process with ASP.NET 4.0 set, also each Virtual Directory is set for ASP.NET 4.0, only anonymous auth is set on both vdirs (no Windows).

The web.config on the web site is set with Authentication set to "None" and identity impersonate is set to "false" as well.

I want the WCF service to be completely开发者_StackOverflow社区 wide-open for this exercise, I just need it to take any call and return a result.

What am I missing?

Thanks.


A http 500 error means "internal error".

Your best bet to find what the error is, is to put a try catch around the call to the wcf service and log the error.

Also check the IIS log to verify that the call to the WCF service was made.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜