Select to view content in your preferred language

Application Builder Add-in

2881
3
09-06-2012 10:16 AM
TINATHOMPSON
Emerging Contributor
I'm new to the Application Builder and would like to add some add-ins such as a query task.  I'm not sure how to do this.  I know
where the upload add-ins tool is and I found some sample code but can't get it into the right format or make it work.  Is there a resource center, etc. where you can get sample .xap files for queries, etc.?
0 Kudos
3 Replies
TanyaOwens
Frequent Contributor
There is a forum just for the application builder at http://forums.arcgis.com/forums/211-ArcGIS-Viewer-for-Silverlight which might help.

But one problem you might be having if you downloaded the sample from http://help.arcgis.com/en/webapps/silverlightviewer/samples/start.html is that you have to do a build/debug on the silverlight solution in Visual Studio before you upload the xap file.
0 Kudos
TINATHOMPSON
Emerging Contributor
There is a forum just for the application builder at http://forums.arcgis.com/forums/211-ArcGIS-Viewer-for-Silverlight which might help.

But one problem you might be having if you downloaded the sample from http://help.arcgis.com/en/webapps/silverlightviewer/samples/start.html is that you have to do a build/debug on the silverlight solution in Visual Studio before you upload the xap file.


I guess I'm completely lost.  When I tried to build the tool it keeps giving me the following error:

Error 1 Could not load the assembly file:///C:\silverlight viewer\SilverlightViewer.Xap\bin\Debug\ESRI.SilverlightViewer.dll. This assembly may have been downloaded from the Web.  If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project. You can change this designation by changing the file properties. Only unblock assemblies that you trust. See http://go.microsoft.com/fwlink/?LinkId=179545 for more information. StreetViewWidget


Also, when I try to go back to my application builder and edit a map that I have created it gives me an error:

A clientaccesspolicy.xml or crossdomain.xml might be missing at the web root

Do you think I would be better off uninstalling the application builder and re-installing?
0 Kudos
TanyaOwens
Frequent Contributor
Just to warn you - I am very new to programming and such and I have used the viewer on a limited basis. So you might get some better answers from the viewer forum.

My experience with that error is that I had to make sure I unzipped the file as an administrator on my computer. Then I went into the properties of the entire unzipped folder to  unblock the solution. I also made sure the file was not read only. That seemed to fix the problem.

Are you getting the clientaccesspolicy.xml error when you try to load in layers? See the "Problem: cannot load data from an external data source outside your silverlight application's domain" at http://help.arcgis.com/en/webapps/silverlightviewer/help/#/Frequently_asked_questions/01770000000r00... - it might help.

I don't think the application builder is a the problem but I am not sure.
0 Kudos