Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Flex3. Problem Deploying project on remote IIs7 server

Posted on 2008-10-12
8
Medium Priority
?
2,028 Views
Last Modified: 2013-11-19
I made a Flex3 project using «Data>Create Application from Database» and named "Registro". "Registro" is a table name from a remote SQL server 2008 database . It's ASP.NET 6 I got .NET 3.5 like my remote servers.
When it asked to me for a Server to use, I selected "Visual Studio Server for developers" option. Running the project on that local server show me the datagrid with data sucessfully.
Next I produced the "Build-release" and using FTP  I put a directory in my remote IIs7 server with the contents of "bin-release" folder.
Running the application appears an error message: "unexpected error..." tryng to fill the datagrid.
Looking on error message it cann't find wsdl or something else.

Thanks in advance.
Note: I test for connectivity and it's ok.
0
Comment
Question by:cpach115
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 19

Expert Comment

by:Gary Benade
ID: 22704024
Looks like the path to your web service is wrong. Please post the complete error message.
0
 

Author Comment

by:cpach115
ID: 22704223
Thanks to answer.
Error message:
===========
[FaultEvent fault=[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://www.cphslamsoft.com/registro/Registro.asmx?wsdl)"] messageId="9E197B8B-1ADC-7275-F9D7-F735B7E26D4D" type="fault" bubbles=false cancelable=true eventPhase=2]

Here is the RegistroConfig.as contain:
==========================
public static const ENDPOINT_URL:String = "http://www.cphslamsoft.com/registro/Registro.asmx?wsdl";

Namespace:
=========
[WebService(Namespace = "http://www.cphslamsoft.com/Registro")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Registro : WebService {...........
0
 
LVL 19

Expert Comment

by:Gary Benade
ID: 22704512
OK, you WSDL path is correct, the error you are getting is a security error, to fix that you need to upload a
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 19

Expert Comment

by:Gary Benade
ID: 22704538
OK, your WSDL path is correct, the error you are getting is a security error, to fix that you need to upload a crossdomain.xml file to your web server root directory. I have attached a sample that will work.
0
 
LVL 19

Assisted Solution

by:Gary Benade
Gary Benade earned 1000 total points
ID: 22704559
this site won't allow xml attachments, so save the text below into a file called crossdomain.xml and place it in your server root directory
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>

Open in new window

0
 

Author Comment

by:cpach115
ID: 22704658
Thanks to answer:
Ok.... I put crossdomain.xml as you suggest. and after run application (debug way) got this error message:
=======================
[FaultEvent fault=[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"] messageId="E88CF5BD-FD6A-3AA1-6ED3-F75E815BBABF" type="fault" bubbles=false cancelable=true eventPhase=2]

If I run it from explorer got this error:
==========================
[FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://www.cphslamsoft.com/registro/Registro.asmx"] messageId="121FEC5E-9A14-A080-61F3-F7614D944AB0" type="fault" bubbles=false cancelable=true eventPhase=2]
0
 

Author Comment

by:cpach115
ID: 22704673
Ok...I put crossdomain.xml file in "www.cphslamsoft.com/"...(root)
0
 

Accepted Solution

by:
cpach115 earned 0 total points
ID: 22718099
I solved the security problem by using the following crossdomain.xml (I'm using Windows Server 2008 and .NET )

<?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>
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

604 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