Solved

Flex3. Problem Deploying project on remote IIs7 server

Posted on 2008-10-12
8
2,013 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET reading ATOM 2 52
Word Directory is not in the drop down list 4 25
ASP.net Have sliders change in order 2 10
Reset asp.net login password 4 34
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 …
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

867 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

23 Experts available now in Live!

Get 1:1 Help Now