Error consuming webservice from Flex 3 using IIS 7 and windows server 2008

Posted on 2008-11-14
Last Modified: 2013-11-19
I'm getting the following error in Flex 3 when trying to consume a webservice using ii7 on server 2008. Works ok on Server 2003 iis 6. Any ideas?

[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://Server2008iis7/MainLine/MLwebService.asmx?wsdl)"]
      at mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\wsdl\]

Here's my crossdomain.xml file

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
      <site-control permitted-cross-domain-policies="all"/>
      <allow-access-from domain="*" />
      <allow-http-request-headers-from domain="*" headers="*" />
flex code fragment. Normally a name instead of an ip address would be used, but to bypass any dns issues, we changed to the ip address.

<mx:WebService id="MLwebService"

		wsdl="" useProxy="false">

	<mx:operation name="GetBlockInfo" fault="ErrHandler(event)" result="dataHandler(event)"/>	

	<mx:operation name="SetPosition" result="dataHandler2(event)"/>


Open in new window

Question by:jwhited

    Author Comment

    Found the problem. For some reason IIS 7 on our server 2008 defaulted to Authentication mode="Forms" instead of Authentication mode="Windows" in the web.config file. Created a new application/virtual directory and got the same default for authentication mode. What's up with that? Seems like anything but "Forms" would be ok for a default. Anyway, that's all we changed and it works ok.

    Accepted Solution

    Question PAQ'd, 250 points refunded, and stored in the solution database.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
    Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now