WSDL download failed for the following URLs

This problem can be caused by web server security settings

I was trying to connect to the WSDL of a web service I had built in C# on an ASP.NET platform (Windows Server 2003, IIS6.0) using Adobe Flash CS2 (or Flash 8, whatever the correct nomenclature is) and ActionScript 2.0 (publishing for Flash Player 8) and I kept getting this error:

WSDL download failed for the following URLs

I searched 'round the web and didn't find an appropriate answer. Plenty of people were talking about accessing web services via Flash over HTTPS and this problem occurring, but HTTPS wasn't my issue.

Turns out the issue was that I had set my web site on the server to require Basic Windows Authentication. I only discovered this when I opened the SWF in a browser and was met with the Windows network challenge.

Unfortunately, when you're hitting CTRL-ENTER in the Flash IDE, you don't see any kind of useful error; just the one mentioned above.

I disabled the need for Basic Windows Authentication and the problem went away. I haven't yet worked out how to have the two things working as I'd like — probably I will move my ASMX file to a non-authenicated area — but in the short term, it's stopped me tearing my hair out.

www.cylindersix.com

This page is © Cylinder Six Limited and contains information about an error known as WSDL download failed for the following URLs