问题描述:

Very new to WCF and almost got everything to work doing POST from JQuery to WCF. I thought?

The Jquery is processing a DynaTree and gets the latest dictionary which needs to be serialized in order to perform a successful post.

When I run Visual Studio, it works fine. When I access the site from my development machine - not in debug mode - it also works fine. But when accessing the site from any other machine siting on the same domain within the WLAN, it fails.

var dict = $("#tree").dynatree("getTree").toDict();

The line in particular that fails is JSON.stringify(dict);

The alerts shows an object coming through and hence toDict() works fine. However, when JSON tries to serialize it, fails.

This serialized data will be my post data to WCF handle. There is nothing wrong in WCF, the call to WCF is never made as the code fails one line above.

Need help.

相关阅读:
Top