Error #2035

5525
8
12-08-2010 04:47 AM
philippschnetzer
Occasional Contributor III
So I have a FV2.1 app that has been working fine for a while...then suddenly when the application loads I get an 'Error #2035' popup...but I simply click 'OK' and everything seems to work fine...

Also, after I have exported a release build of the app and click on the index.html found under the bin-release folder in FB4 the error does not appear....only when I open the index.html from the bin-debug does it happen.

On top of that...when I view the app in a web browser it's 'Error #2035' but when viewed in FB4 it's 'Error #2036' - and I have eliminated the browser cache as a possible culprit....


Thanks!
Tags (2)
0 Kudos
8 Replies
WallaceBezerra
New Contributor II
Can you post here the snapshot of the error window?
0 Kudos
philippschnetzer
Occasional Contributor III
Nothing special..simple error message (attached anyway). 

Also, just noticed that since this error appeared I have two widgets, one with preload=open and one with preload=minimized that do not load on start-up anymore.  So I deleted my entire Floating WidgetContainer and did not load those widgets thinking they were the cause...but I still get the error.

No errors in my xml....and what is really odd is that I have no error when I use the release build...

Thanks again!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
philipp,

   That error means URL Not Found so I would recheck your config.xml and make ABSOLUTELY sure that the paths to your widgets xml configurations files are accurate.
0 Kudos
philippschnetzer
Occasional Contributor III
Spot on.  I deleted the source files for a widget and forgot to delete its reference from config.xml.  Thanks as always, Robert!
0 Kudos
KyleTraff
New Contributor
Another issue that might be relevant - be sure to add all flex modules to the build path for your flex viewer project. 

I recently received this error because my config.xml file was pointing its URL to a SearchWidget.swf file in the bin-debug directory that didn't exist.  After adding my SearchWidget.mxml file to my project as a flex module, the widget works again.

To add a flex module in Flash Builder 4:

- In Flex Builder on the left of the screen is the FlexNavigator tree, right click you Flex Sample Viewer project and go to properties
- Click on Flex Modules in the left panel
- Click on Add
- Select an mxml file to add as a module
- Click Ok
0 Kudos
DeeptiPuri
New Contributor
I have a compiled solution running on the server and it was working fine till this morning. I got this error message and I thought on the same line, but everything seems fine. Is there possibility that somehow .swf reference of widget is lost? How can I correct it in the compiled solution? I understand adding reference of widget in Flash builder, but can it be added somewhere in the compiled one?
Thanks
0 Kudos
RhettZufelt
MVP Frequent Contributor
I have a compiled solution running on the server and it was working fine till this morning. I got this error message and I thought on the same line, but everything seems fine. Is there possibility that somehow .swf reference of widget is lost? How can I correct it in the compiled solution? I understand adding reference of widget in Flash builder, but can it be added somewhere in the compiled one?
Thanks


The reference to the widget location is in the config.xml file where the widget is loaded:

        <widget label="Bookmarks" preload="minimize" left="430" top="90" height="360"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>


Make sure your swf is in the location specified in the widget tag and that the proper swf file is there for ALL wigets loaded by the config file.

R_
0 Kudos
DeeptiPuri
New Contributor
Hi R

Thanks for your reply. I checked these references and they were fine. This is a geoprocessing widget out of the box. I got the error message when I was trying to make changes to GP tool running on the server- I was trying to add one more output. So I changed the configuration of this widget but did not make any changes to application configuration or Flex code.

Thanks
0 Kudos