|
POST
|
Does anyone know why the IdentityManager.Current.FindServerInfo() method always returns null in the following code? FindserverInfo returns only the servers that are currently registered and no servers are registered at the beginning of the session. Servers are registered either manually by calling 'RegisterServers' or automatically when a token credential is needed for an ArcGIS resource.
... View more
12-10-2012
04:20 AM
|
0
|
0
|
678
|
|
POST
|
Olà Sergio, it did work, which somehow it really is a odd or strange behaviour, as i said in my first post, the code worked liked a charm until yesterday morning Referer verification by portals is sometimes capricious but anyway using the right referer should help. the portal object should have (i guess) the CurrentUser set, a Token etc.... and instead those values are always null. If i make a POST request to generateToken to require a token, and set the portal instance Token property with the returned value, CurrentUser property is always null. Strange! That should work as soon as you set the Portal token. I just tried a WP program doing that. I get the right username: using System.Windows;
using ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.Portal;
using Microsoft.Phone.Controls;
namespace PhoneApp1
{
public partial class MainPage : PhoneApplicationPage
{
public MainPage()
{
InitializeComponent();
IdentityManager.Current.TokenGenerationReferer = "file:///Applications/Install/";
IdentityManager.Current.GenerateCredentialAsync("http://www.arcgis.com/sharing/rest", "<username>", "<password>",
(crd, err) =>
{
if (crd != null)
{
var portal = new ArcGISPortal { Token = crd.Token };
portal.InitializeAsync(null, (p, e) => MessageBox.Show(p.CurrentUser.FullName));
}
else
MessageBox.Show("Error " + err.Message);
});
}
}
}
... View more
11-08-2012
07:03 AM
|
0
|
0
|
607
|
|
POST
|
May be your featureset has only one feature so you should use selectedFeature = featureSet1.Features(0)
... View more
11-08-2012
01:44 AM
|
0
|
0
|
631
|
|
POST
|
My best bet is that the referer you set is not the right one. When sending web requests, WinPhone set a referer that looks like : file:///Applications/Install/<productId>/Install/, so when generating token you can try with the option referer=file:///Applications/Install/
... View more
11-08-2012
01:40 AM
|
0
|
0
|
607
|
|
POST
|
Is there any way to group/regroup all 5 services under POI and display all sub-layers from (poi_1,poi_2) under one group called POI? The easier way is to create a 'GroupLayer' called POI and insert your 5 dynamic servcies in this group layer. The legend, if used in Tree mode, will reflect that organization.
... View more
11-06-2012
05:44 AM
|
0
|
0
|
625
|
|
POST
|
Is there any way to create a SimpleFillSymbol with DashDot outline (border)? You have to change the Template of the FillSymbol and set the StrokeDashArray property: <esri:FillSymbol BorderBrush="Red" BorderThickness="2" Fill="Green" > <esri:FillSymbol.ControlTemplate> <ControlTemplate> <Path x:Name="Element" Stroke="{Binding Symbol.BorderBrush}" StrokeThickness="{Binding Symbol.BorderThickness}" StrokeDashArray="5,3" Fill="{Binding Symbol.Fill}" /> </ControlTemplate> </esri:FillSymbol.ControlTemplate> </esri:FillSymbol>
... View more
11-06-2012
05:38 AM
|
0
|
0
|
767
|
|
POST
|
To avoid these issues, I would recommend to start with a fresh glass Template (you can get it in the visualstudio gallery. Search for 'ESRI'). Compile it and check that the design surface is working well. Then you'll be able to add your application files.
... View more
11-06-2012
05:35 AM
|
0
|
0
|
806
|
|
POST
|
Strange! The only reason I can see is that you set the MaxAllowableOffset property which reduces the number of vertices returned. As that option is not supported by ArcGIS server 9, it could explain the difference. But is it your case?
... View more
11-06-2012
05:28 AM
|
0
|
0
|
908
|
|
POST
|
The 'GenerateRenderer' functionality is supported by the feature layer rest end point since the renderer is defined by layer. You can verify that by looking at the feature layer rest end point : http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2, you'll see the GenerateRenderer functionality at the bottom of the page.
... View more
11-06-2012
05:23 AM
|
0
|
0
|
665
|
|
POST
|
The new available Showcase template for API v.3 does not contain all these functionalities. AFAIK the showcase Template has never included the 'LayerCheckBox', 'Configurator', 'ConfiguratorContainer' components which seems missing in your project. I guess they have been added manually after getting the template. Is there any EASIER way to migrate to ESRI Silverlight API v.3, please? I think the easier way is just to reuse the same code and recompile it. We might have some issues with components that have been deprecated and then removed between 2.2 and 3.0 (such as ScaleBar or ToolBar controls) but you should be able to easily fix that (ScaleBar has been replaced by a ScaleLine control in the toolkit dll and the ToolBar control has to be replaced by your own container (e.g. stackpanel)).
... View more
11-06-2012
05:19 AM
|
0
|
0
|
556
|
|
POST
|
I should note that the URL we are using is utilizing SSL and our ArcGIS Service is not using SSL. Cross domain support over SSL needs to be explicetly authorized in the ClientAccessPolicy file: <access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="http://*"/>
<domain uri="https://*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy> Not sure of the syntax with CrossDomain but I guess there is something similar.
... View more
11-06-2012
05:12 AM
|
0
|
0
|
757
|
|
POST
|
The simplest way to activate the IdentityManager is to initialize a challenge method using the built-in SignInDialog (sample). Something like: IdentityManager.Current.ChallengeMethod = SignInDialog.DoSignIn; The sign in dialog will automatically show up when an authentication is needed. For advanced scenarios, you can also create you own challenge method and react differently depending on the server url.
... View more
11-06-2012
05:06 AM
|
0
|
0
|
782
|
|
POST
|
The sample you pointed out is using the esri WKID 102020 : South Pole Lambert Azimuthal Equal Area (for Antarctic) and WKID 102017 for Arctic. The underlying arcgis services are: http://www.natice.noaa.gov/ps/PS2/rest/services/ANTARCTIC_BASE_LOWER/MapServer or http://www.natice.noaa.gov/ps/PS2/rest/services/ARCTIC_WEEKLY/MapServer
... View more
11-06-2012
05:00 AM
|
0
|
0
|
878
|
|
POST
|
Is there anyway to get the ObjectId for layers where the ObjectId attribute is set to not visible? If a field is not set to visible at server side, I don't know any way to get it at client side. The only way is to update the service and make the field visible.
... View more
11-06-2012
04:54 AM
|
0
|
0
|
709
|
|
POST
|
The ArcGIS Silverlight and WPF dlls are compiled with the 'AnyCPU' option, so they can be used for x86, x64 or anycpu executable. It is the JIT compiler that generates an assembly code that's compatible with the requested target. I am myself regularly working with both machines (x86 and x64) and I never noticed specific issues for 64bits.
... View more
11-06-2012
04:52 AM
|
0
|
0
|
499
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-12-2025 03:01 AM | |
| 1 | 10-14-2025 09:24 AM | |
| 1 | 06-13-2013 09:22 AM | |
| 1 | 04-29-2022 02:21 AM | |
| 1 | 04-29-2022 02:28 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|