Connection error #2048

Stimulsoft Reports.Flex discussion
Locked
dennislee
Posts: 14
Joined: Tue Apr 02, 2013 5:41 am

Connection error #2048

Post by dennislee »

Hi,

I have an external server to host a Flex application that uses Stimulsoft report.Fx for Flex. The app is undergoing a testing stage and before buying license from Stimulsoft, would like to make sure everything works. I have 3 PCs to test the app, let's called them PC1, PC2 and PC3. The PC1 is a development PC and the app works fine and able to get the report (mrt) in seconds on screen. Then, the whole app is uploaded to the external server (of course with MySQL defined) and PC1 works just fine exactly the same in the development environment with same PC - that is PC1. Now, I tried to test the same app in the same external server using PC2 and PC3. Unexpectedly, both PC2 and PC3 gave me Connection error #2048 and report cannot be produced. Question is why can PC1 works perfectly while PC2 and PC3 cannot? I don't think there is a security violation issue because everything is in the same external server. The only difference I can see is different PCs used. For your information PC1 is more powerful than PC2, and PC2 is more powerful than PC3. Is this the cause?

Thanks in advance for your advise.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Connection error #2048

Post by Vladimir »

Hello,

Please try the test report without the data and report with the XML data. Perhaps there is a connection problem with the MySQL server.

Thank you.
dennislee
Posts: 14
Joined: Tue Apr 02, 2013 5:41 am

Re: Connection error #2048

Post by dennislee »

Hi,

Have tried and no problem to get the report out. I just have three PC side by side with PC1 gets the report perfectly (live data directly from server), PC2 and PC3 access the same server, but could not get the report. To make the case clearer, this is what I did:

PC1 - open IE browser; type in the link say, http://mydomain.com/index.html; execute program that use the mrt and gets the report on screen in split seconds; perfect
PC2 - open IE browser; type in the link say, http://mydomain.com/index.html; execute program that use the mrt and gets the report on screen in split seconds; error# 2048
PC3 - open IE browser; type in the link say, http://mydomain.com/index.html; execute program that use the mrt and gets the report on screen in split seconds; error# 2048

Those three PCs are side by side and execute the link one-by-one.

Thanks.
dennislee
Posts: 14
Joined: Tue Apr 02, 2013 5:41 am

Re: Connection error #2048

Post by dennislee »

Hi,

Interesting finding now. All the time when PC1 was working fine (as stated in last message), it only happened when the local WAMP is in service. My environment is like this. I have PC1 as the development machine loaded with Flash builder and WAMP to develop and test the Flex app with Stimulsoft for Flex. When everything works, I upload to my production server which is external. When I tested the flex app in the production server, everything works including Stimulsoft reports. That is because my PC1 is still running the local WAMP in service. Now, I stop the local WAMP service in my PC1 and run the flex app in production server, I ended up with the a Stimulsoft report with NO data. Almost the same issue as those testing PC2 and PC3 in which they do not have WAMP installed. In short, Stimulsoft works for me only when my local PC turned on WAMP service. Any idea how to resolve this? Appreciate very much if you can help me out on this.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Connection error #2048

Post by HighAley »

Hello.

Reports are rendered on the client-side. If you set up the Connection to the localhost then data is getting from local database on the client.
You should check the connection string if should be set up to get data from the production server by its' IP address.

Thank you.
dennislee
Posts: 14
Joined: Tue Apr 02, 2013 5:41 am

Re: Connection error #2048

Post by dennislee »

Hi,

Thanks for pointing this out. I changed the connection string and right now it is fetching data from production. However, now there is another problem comes up - security sandbox violation. But this is not stimulsoft issue. Any advise to resolve this problem?

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Connection error #2048

Post by HighAley »

Hello.
dennislee wrote:Thanks for pointing this out. I changed the connection string and right now it is fetching data from production. However, now there is another problem comes up - security sandbox violation. But this is not stimulsoft issue. Any advise to resolve this problem?
This problem was discussed in the Security Violation topic on our forum. Please, read it.

Thank you.
Locked