Select to view content in your preferred language

Cannot Edit a Silverlight Viewer application

5055
10
03-07-2012 12:40 PM
ShawnyEkadis
Occasional Contributor
Using ArcGIS Viewer for Silverlight I was able to successfully create a web app but I cannot edit it. When I click on the icon to edit the map the Application Builder opens blank. If I click on the Home button I get an error message:

Unhandled Error [Arg_NullReferenceException]
Arguements:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version4.0.60831.0&File=mscorlib.dll&Key=Arg_NullRefer....

If I click save then I get:

Unhandled Error [Arg_NullGeneric]
Arguements:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version4.0.60831.0&File=mscorlib.dll&Key=ArgumentNull_....
Parameter name: map

So the only way out is to close the Builder. I thought this was supposed to be easy??
0 Kudos
10 Replies
KatherineDalton
Esri Regular Contributor
Hi Shawny,

Can you verify that you have a clientaccesspolicy.xml or crossdomain.xml file at the web root? See our [url=]FAQ (Problem: Cannot load data from an external data source outside your Silverlight application's domain)[/url] for specifics on adding a clientaccesspolicy.xml file.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
ShawnyEkadis
Occasional Contributor
Apparently I don't. I tried to copy the example here (http://services.arcgisonline.com/clientaccesspolicy.xml) to create one but that did not work. I can open the web app and it works fine, I just can't edit it. Silverlight and the data are all on the same machine so I would think I don't need a cross-domain policy correct?

Thanks
0 Kudos
AlexeyTereshenkov
Deactivated User
Personally, I keep both files in the inetpub folder: http://services.arcgisonline.com/crossdomain.xml
0 Kudos
ShawnyEkadis
Occasional Contributor
I have added both the crossdomain.xml and the clientaccesspolicy.xml neither has helped. Time to call tech support.
0 Kudos
TedCronin
MVP Honored Contributor
Yes, I cannot edit either consistently.  I can however edit the same exact service on the same server using the App Builder for Flex Beta 1.

SLB allows an edit, an initial edit.  During the initial stage, I am able to change geometry, change attributes, but if the page refreshes, or closes, I am no longer able to edit the geometry or change the attributes.  I cannot select the poly that was created, hence I cannot modify or delete.  FB3 beta, I am able to close the browser, refresh the browser, unplug the machine from the wall, and still go back and edit the data, select it, delete it, whatever is needed.  Same service, same database (SQL 2008R2), same Server (10.1 Prerelease), not the same result.  These need to be consistent.

I agree with @Alexey Tereshenkov, definitely useful for keeping both.
0 Kudos
ShawnyEkadis
Occasional Contributor
Apparently the problem was that the beta version did not uninstall correctly. Tech support had me do the following and now it works:

1. Uninstall the Silverlight Builder.
2. Ensure that C:\inetpub\wwwroot\Apps and Builder have been removed.
3. Ensure the virtual directories tied to these folders were removed from IIS.
4. Ensure the Registry hive 'HKEY_CURRENT_USER\Software\ESRI\ArcGIS Silverlight Viewer' has also been removed.
5. Reinstall Silverlight Builder.
0 Kudos
AndyMartushev
Deactivated User
I had the same issue.  I resolved the issue by browsing to the hostname instead of the server ip.  example use "http://myservername/builder"  not "http://123.123.123.123/builder"

hope this helps
0 Kudos
TedCronin
MVP Honored Contributor
The version 3 release fixes everything for editing data on 10.1 Server, except maybe Auto Complete, which seems a little tricky.
0 Kudos
GrantAlexander
New Contributor
The version 3 release fixes everything for editing data on 10.1 Server, except maybe Auto Complete, which seems a little tricky.


Not in my experience.  I have 3.1 installed against 10.1 and no hope of editing an App.
0 Kudos