Question

I'm trying to call a webservice using WinJs.XHR in a windows 8 app; the code works fine when I'm not using firewall; However when I'm using firewall I got the following error:

**Forbidden ( Forefront TMG denied the specified Uniform Resource Locator (URL).  )**

any clue?

  WinJS.Promise.timeout(50000, WinJS.xhr({
        url: "<Service_URL>"

    })
        .then(function (rss) {


        }, function (onRError) {

            });
        },
        function progress(result) {

        }) );
Was it helpful?

Solution 3

The problem does not exist any more, all what I did was adding the internet(Client/Server) and Private networking and them removed them.

Not sure if it was something with the code or the ISA server/client .

OTHER TIPS

That might be hard to determine without seeing the URL. I would bet a character in the URL is being rejected by the firewall. You can use Fiddler to see what the URL is with the firewall off/on.

You may want to check out the enterpriseAuthentication capability described here:

http://msdn.microsoft.com/en-us/library/windows/apps/hh464936.aspx

I have not used it, but it might give you what you need.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top