Solved

Flex3. Problem Deploying project on remote IIs7 server

Posted on 2008-10-12
8
2,019 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 …
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

856 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