简体   繁体   中英

access denied to a webservice, however I can browse to it

I am trying to access http://ws.geonames.org/countryInfo which I can browse to fine, however in my code I am getting access denied I am not sure why, I am testing the service by having the following code on page_load

XmlDocument xml = new XmlDocument();
xml.Load("http://ws.geonames.org/countryInfo");

I also just found out if I create an app and use IIS express the webservice returns data fine however running on IIS 7 is when the problem occurs.

DotNetOpenAuth...CreatRequest breaks on server (Works on my machine ;-)

basically it was the proxy, I changed the applicationpool identity to me and it went through he proxy fine. Why IIS express was getting through and not IIS 7.5 I am not sure. hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM