POST
|
We don't know what kind of errors you get, but here is a thread discussing deployment: http://forums.arcgis.com/threads/16706-server-500-error?highlight=asp.net Just a few pointers: 1. Make sure your deployment website is configured as Application 2. If you have used .Net framework 4.0 to develop the application, confirm that ASP.Net 4 is installed on the web server (see the threads for details). 3. Is your web server configured for Silverlight applications: http://learn.iis.net/page.aspx/262/configuring-iis-for-silverlight-applications/ Post your error, or search your error in Google (or other search engines) to see what the problem might be. Good Luck!
... View more
09-21-2011
06:38 AM
|
0
|
0
|
207
|
POST
|
Jerry, Can you debug and find out which object is null? Is it "graphic" or the Shape attribute? While debugging, check to see what is the value of findResult.LayerName if you are searching multiple layers. It could be only one layer causing the error. Also, you could go to your service in the REST Services directory, and perform Find there. http://yourservername/arcgis/rest/services/yourmapservicename Scroll all the way down to the page and click on Find. Use the API Reference link in the upper right corner to see what parameters you need to provide. See if you get geometry back when Return Geometry is true. Make sure that all layers you are searching have the Shape field (to see the fields of each layer go to the above page and click on each layer link to see their metadata). Good Luck!
... View more
09-20-2011
07:37 AM
|
0
|
0
|
397
|
POST
|
Jerry, Have you tried adding: findParameters.ReturnGeometry = true;
somewhere before: findTask.ExecuteAsync(findParameters);
The default is "true" in this version of the API, but I cannot recall what it was in previous versions. It looks like your Shape attributes come back null, so give it a try. Good Luck!
... View more
09-19-2011
08:33 AM
|
0
|
0
|
397
|
POST
|
Dominique, Thank you so much! You saved my sanity! 😄 Darina
... View more
09-06-2011
06:10 AM
|
0
|
0
|
825
|
POST
|
Raffi, In the links above, I see a second parameter to the pushView method, which is the data that you want to pass. Maybe, this what you are missing. Another link: http://www.unitedmindset.com/jonbcampos/2010/10/25/flex-4-5-mobile-development-post-burrito/ Good Luck!
... View more
08-22-2011
06:34 AM
|
0
|
0
|
274
|
POST
|
Hi Raffi, My Flex is getting kind of rusty, and you know I haven't done anything mobile, but here are some links that might help you: http://help.adobe.com/en_US/flex/mobileapps/WSa122979b4619725672e48c412a3e152164-7fff.html#WSe11993ea1bd776e577ad4b2d12a42c5858a-7fff http://cookbooks.adobe.com/post_Passing_data_between_Views-18854.html 😄 P.S. I just open your link, you are using the second approach. Have you tried the first (which is explained in the links above): http://devgirl.org/2011/08/09/flex-mobile-development-passing-data-between-tabs-part-1-includes-source/
... View more
08-22-2011
06:24 AM
|
0
|
0
|
274
|
POST
|
These applications use an older version of the Flex Viewer (probably the first version). Applications using the current version of the Flex Viewer look like this: http://www.ci.yakima.wa.us/gis/iBus/index.html Darina
... View more
08-09-2011
12:21 PM
|
0
|
0
|
263
|
POST
|
Gabriel, This should work:
var states = (from g in args.FeatureSet.Features
select g.Attributes["STATE_NAME"]).Distinct().OrderBy(s => s);
QueryComboBox.ItemsSource = states; Simply remove the foreach loop, and Items.Add replace with ItemsSource. Or you could do it this way too:
string[] states = args.FeatureSet.Features.Select(s => s.Attributes["STATE_NAME"].ToString()).Distinct().OrderBy(t => t).ToArray();
QueryComboBox.ItemsSource = states; Here is an article on using Linq with Distinct and Order By: http://programminglinq.com/blogs/marcorusso/archive/2008/07/20/use-of-distinct-and-orderby-in-linq.aspx Hope, it works!
... View more
08-03-2011
11:46 AM
|
0
|
0
|
910
|
POST
|
Gabriel, I know I am replying a little late (it's summer time), but you can either add the checkbox handlers in code behind in Map_Loaded instead in xaml, or you can check in the Check/Uncheck event handlers if the Map object is null, and skip the code if it is. Cluster cluster;
private void Map_Loaded(object sender, RoutedEventArgs e)
{
GraphicsLayer gl = Map.Layers["QueryGraphicsLayer"] as GraphicsLayer;
//preserve the clusterer object to use it when you want to turn the clusering back on
cluster = gl.Clusterer;
//this is the symbol to be used for the single points that don't get clustered
//it can be defined in your xaml, or you can difine it in code
//if it is in your xaml you get it this way:
SimpleRenderer simpleRenderer = LayoutRoot.Resouces["simpleRenderer"] as SimpleRenderer;
//you can use a UniqueValueRenderer also, or not use anything
//if you don't specify the renderer, the single points will be red circles (I think)
gl.Renderer = simpleRenderer;
clusterCheckBox.Checked += new RoutedEventHandler(clusterCheckBox_Checked);
clusterCheckBox.Unchecked += new RoutedEventHandler(clusterCheckBox_Unchecked);
}
private void clusterCheckBox_Unchecked(object sender, RoutedEventArgs e)
{
//check first if Map is null
if (Map == null) return;
GraphicsLayer gl = Map.Layers["QueryGraphicsLayer"] as GraphicsLayer;
//check if gl is null
if (gl == null) return;
gl.Clusterer = null;
UniqueValueRenderer uniqueRenderer = LayoutRoot.Resources[QueryUniqueValueRenderer"] as UniqueValueRenderer;
gl.Renderer = uniqueRenderer;
}
private void clusterCheckBox_Checked(object sender, RoutedEventArgs e)
{
//check first if Map is null
if (Map == null) return;
GraphicsLayer gl = Map.Layers["QueryGraphicsLayer"] as GraphicsLayer;
//check if gl is null
if (gl == null) return;
GraphicsLayer gl = Map.Layers["QueryGraphicsLayer"] as GraphicsLayer;
gl.Clusterer = clusterer;
SimpleRenderer simpleRenderer = LayoutRoot.Resouces["simpleRenderer"] as SimpleRenderer;
gl.Renderer = simpleRenderer;
}. In your xaml remove the event handlers on the checkbox: Checked="clusterCheckBox_Checked" and Unchecked="clusterCheckBox_Unchecked". Hope this works! Good Luck!
... View more
08-02-2011
05:50 AM
|
0
|
0
|
459
|
POST
|
Hi Gabriel, Here is one way to do this: Cluster cluster;
private void Map_Loaded(object sender, RoutedEventArgs e)
{
GraphicsLayer gl = Map.Layers["QueryGraphicsLayer"] as GraphicsLayer;
//preserve the clusterer object to use it when you want to turn the clusering back on
cluster = gl.Clusterer;
//this is the symbol to be used for the single points that don't get clustered
//it can be defined in your xaml, or you can difine it in code
//if it is in your xaml you get it this way:
SimpleRenderer simpleRenderer = LayoutRoot.Resouces["simpleRenderer"] as SimpleRenderer;
//you can use a UniqueValueRenderer also, or not use anything
//if you don't specify the renderer, the single points will be red circles (I think)
gl.Renderer = simpleRenderer;
}
private void clusterCheckBox_Unchecked(object sender, RoutedEventArgs e)
{
GraphicsLayer gl = Map.Layers["QueryGraphicsLayer"] as GraphicsLayer;
gl.Clusterer = null;
UniqueValueRenderer uniqueRenderer = LayoutRoot.Resources[QueryUniqueValueRenderer"] as UniqueValueRenderer;
gl.Renderer = uniqueRenderer;
}
private void clusterCheckBox_Checked(object sender, RoutedEventArgs e)
{
GraphicsLayer gl = Map.Layers["QueryGraphicsLayer"] as GraphicsLayer;
gl.Clusterer = clusterer;
SimpleRenderer simpleRenderer = LayoutRoot.Resouces["simpleRenderer"] as SimpleRenderer;
gl.Renderer = simpleRenderer;
}
Good Luck! Darina P.S. Check for spelling mistakes, I just typed this in notepad.
... View more
07-28-2011
07:42 AM
|
0
|
0
|
459
|
POST
|
Lisa, I haven't followed the logic of adding the layers to the MapLayerCollection, but I noticed that here: public LayerCollection MapLayerCollection
{
get { return mapLayerCollection; }
set
{
if (mapLayerCollection != value)
{
mapLayerCollection = value;
RaisePropertyChanged("LayerCollection");
}
}
}
the parameter of the RaisePropertyChanged method is "LayerCollection", and I believe it should be "MapLayerCollection". Hope, that's all you have to fix. Debug to make sure the MapLayerCollection gets populated as you expect. Good Luck!
... View more
06-07-2011
10:23 AM
|
0
|
0
|
502
|
POST
|
Hi guys, Please look at these threads, they might help you resolve your problem. http://forums.arcgis.com/threads/28246-Map-services-become-unresponsive?highlight=application+pool+timeout http://forums.arcgis.com/threads/18470-Sleeping-Map-service-issue-with-ArcGIS-10 http://forums.arcgis.com/threads/18566-Services-fall-asleep?highlight=application+pool+timeout Good Luck!
... View more
04-28-2011
05:39 AM
|
0
|
0
|
877
|
POST
|
Craig, I had a similar error while creating a raster, and the problem was that my raster file name was longer than 13 characters. I was using a different tool but this might be your problem too. Good Luck! Darina
... View more
04-14-2011
10:36 AM
|
0
|
0
|
1499
|
POST
|
Jerry, 401 error points to not supplied or invalid user credentials problems. http://www.checkupdown.com/status/E401.html It seems to me that your web server (at the root level) is not configured to allow anonymous access. Check the directory security in IIS Manager to see if Anonymous Authentication is allowed. If not, allowing it might resolve your problem. Warning: If this is a production server, or a dev server used by other developers, don't change the authentication before you consult the right people, or someone might get mad. 😉 And make sure you don't ovewrite this setting for the subfolders (websites), because this might be the intended setting for them. Just be careful. Hope, this points you in the right direction! Good Luck!
... View more
03-17-2011
06:29 AM
|
0
|
0
|
197
|
Title | Kudos | Posted |
---|---|---|
1 | 05-04-2022 06:11 PM | |
2 | 05-05-2023 01:24 PM | |
1 | 02-09-2023 02:52 PM | |
2 | 02-15-2023 10:49 AM | |
1 | 12-22-2022 01:36 PM |
Online Status |
Offline
|
Date Last Visited |
09-09-2024
10:59 PM
|