views:

176

answers:

2

Hi.

I am using XMLHTTP from withing my web project to call a WCF method in my service library that is hosted on another port.

The project is hosted on port 2541:

localhost:2524/Web-Project/test.aspx

When I fire a button on test.aspx, it issues an XMLHTTP request doing a REST-style GET pointing at the below URL string:

localhost:4544/trade.svc/json/getcategories/0";

The response is:

Access To Restricted URI Denied

I have tried using httpcfg (for http://localhost:4544/) but that didn't do anything. I have checked using httpcfg query urlacl and it is registered.

Any ideas?

A: 

Are you running UrlScan on the server? It will block URI's that it doesn't like, and it hates slashes (/) after periods (.) in URIs, which is what you've got here.

Sam
thanks. no, i am not on the server yet. still on an XP dev box.
Code Sherpa