I want to access a map service in a protected IIS webserver. The protection is using Basic Authentication so that each user that want to access the web server has to supply username and password. I already supplied the correct username and password but i keep getting the errors. And I use the code from "http://serverapps.esri.com/javascript_examples/StateHighlight.html" (i changed the necessary parts such as the map service accessed)