Fault Code: InvokeFailed, Fault Info: Error #2148, Fault Details: null

4801
13
03-01-2011 04:56 AM
sevkidanacioglu
New Contributor
Hello everyone,

I am new about flex application in ArcGIS and I've given first error while I've just starting to work Flex viewer 2.2.

When I want to start index.html file in my webbrowser there is an error page like that:

Fault code: InvokeFailed

Fault info: Error #2148

Fault details: null

I was trying to start with Google Chrome and IE8 but I've give the same error page both of them.

Also,

I was trying to write some code in flash builder and while I executed those codes, they worked correctly both of them. However, with the index.html file n the ArcGIS Flex Viewer 2.2 folder, there is a problem.

Is there anyone help me about this problem ?

Thank you for responding and helping.

Sevki Danacioglu.
Tags (2)
0 Kudos
13 Replies
DasaPaddock
Esri Regular Contributor
Error 2148 means "SWF file %1 cannot access local resource %2. Only local-with-filesystem and trusted local SWF files may access local resources."
This is from:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/runtimeErrors.html

Are you accessing the index.html page via a web server? e.g. http://host/viewer/index.html
0 Kudos
sevkidanacioglu
New Contributor
Thank you for responding.

No, I didnt use this way, because i have not a webserver. I've been trying to access via just web browser.

i also gave this error while i was writing code in my sample project which had been downloaded from esri tutorial page. that page was working IE8 correctly but was not working Google Chrome. It gave the same error page.
0 Kudos
sevkidanacioglu
New Contributor
Is there anyone who has an idea about that error ?
0 Kudos
DasaPaddock
Esri Regular Contributor
A web server is required. See "Getting Started" at:
http://help.arcgis.com/en/webapps/flexviewer/help/index.html
This has instructions for running IIS on Windows 7.

Any other web server can be used as well like the Apache web server:
http://httpd.apache.org/
0 Kudos
sevkidanacioglu
New Contributor
Thank you for help Dasa.

Why the sample project which downloaded from esri tutorial page can be worked with IE8 but cant Google Chrome ? Does this situation relate with Web server ?
0 Kudos
JoãoMartins1
New Contributor II
Hi,

I am having the same issues. But I'm using a IIS 7 and I exported the release build to a folder under the wwwroot. Did I messing up?

Thanks!
0 Kudos
JamesHensleigh
New Contributor
I had a similar problem and as simple as it sounds you may need to change your backslashes \  to forward slashes / depending on what type of system you are running. It fixed the problem on my system.

Good luck!
0 Kudos
MarcCavallaro
New Contributor III
I'm hoping someone can help me out with this error too.  All of a sudden (literally today) I started getting this error on every one of my projects when I run them inside Flash Builder.  However, they work fine when I run export release build and run the applications through http://localhost/

Strangely enough every one of my projects in FB 4.6 is affected and all but one of my old projects in FB 4.0 is receiving this error.  I've been banging my head against this all day.
0 Kudos
DasaPaddock
Esri Regular Contributor
Have you tried reinstalling Flash Builder? Another option is to configure your projects to launch at http://localhost host by setting the Output folder and corresponding Output folder URL in the project's Flex Build Path properties.
0 Kudos