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

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\WSDLLoader.as:98]

Here's my crossdomain.xml file

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
      <site-control permitted-cross-domain-policies="all"/>
      <allow-access-from domain="*" />
      <allow-http-request-headers-from domain="*" headers="*" />
</cross-domain-policy>
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="http://172.16.15.133/MainLine/MLwebService.asmx?wsdl" useProxy="false">
	<mx:operation name="GetBlockInfo" fault="ErrHandler(event)" result="dataHandler(event)"/>	
	<mx:operation name="SetPosition" result="dataHandler2(event)"/>
</mx:WebService>

Open in new window

jwhitedAsked:
Who is Participating?
 
ee_autoConnect With a Mentor Commented:
Question PAQ'd, 250 points refunded, and stored in the solution database.
0
 
jwhitedAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.