Solved

Flex3. Problem Deploying project on remote IIs7 server

Posted on 2008-10-12
8
2,017 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
  • 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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 250 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

831 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