Solved

Flex3. Problem Deploying project on remote IIs7 server

Posted on 2008-10-12
8
2,011 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
 
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 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

15 Experts available now in Live!

Get 1:1 Help Now