POST
|
Update I have tried version 2.9 of Pro and still the same issues. I then tried version 3.0.2 - and it works fine. Not massively useful to me but at least its something.
... View more
10-06-2022
01:52 AM
|
0
|
0
|
1787
|
POST
|
Packages seem to right. I cleaned the cache - but no difference.
... View more
10-05-2022
11:08 AM
|
0
|
0
|
1791
|
POST
|
"Copy Local" is the default when you install. But thanks.
... View more
10-05-2022
05:00 AM
|
0
|
2
|
1802
|
POST
|
I'm kind of locked into the version I'm using because of end clients - but I tried the version you suggested - 5.0.15, and it failed in a similar way. This is proving so exasperating. I can't even get the ODBC drivers to work either as work around the Npgsql library.
... View more
10-04-2022
10:04 AM
|
0
|
4
|
1818
|
POST
|
I really need help on this please. Anyone from ESRI?
... View more
10-04-2022
01:21 AM
|
0
|
0
|
1828
|
POST
|
I have added to my add-in a nuget package for Npgsql. I am working with Pro 2.6.2 The latest verison i.e. NuGet\Install-Package Npgsql -Version 6.0.7 when I get to the code that starts to try to connect to my DB, I get thrown the error: Exception thrown: 'System.IO.FileNotFoundException' in Npgsql.dll. Can you please look into this. It may have something to do with this error - that it can't find the correct version assembly for System.Runtime.CompilerServices.Unsafe, I believe the one installed by default is version 6: System.AggregateException
HResult=0x80131500
Message=A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.
Source=mscorlib
StackTrace:
at System.Threading.Tasks.TaskExceptionHolder.Finalize()
Inner Exception 1:
FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. As an update to this - it just looks like it doesn't work with ESRI add-in projects. I tried many different versions of Npgsql and all failed. Here are the results for the various versions: Version Npgsql 2.0.11 - "The authentication or decryption has failed." Version Npgsql 3.2.7 - "Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified." Version Npgsql 4.1.9 - "Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified." Version Npgsql 4.1.8 - "Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified." Version Npgsql 5.0 - "Could not load file or assembly 'System.Threading.Channels, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified." Version Npgsql 5.0.5 - "Could not load file or assembly 'System.Threading.Channels, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified." Version Npgsql 5.0.2 - "Could not load file or assembly 'System.Threading.Channels, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified." Version Npgsql 6.06 - "Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified." Version Npgsql 6.03 - "Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
... View more
10-03-2022
03:33 AM
|
0
|
11
|
2122
|
POST
|
Hi, I have had the same problem - when I get to the code that starts to try to connect to my DB, I get thrown the error: Exception thrown: 'System.IO.FileNotFoundException' in Npgsql.dll. When I install an old version of npgsql - then it works. Esri need to fix this to work with the latest versions of npgsql.
... View more
10-03-2022
03:27 AM
|
0
|
1
|
565
|
POST
|
Hi is there a way to embed credentials in your add-in and auto sign in to Portal - this is just to get around users getting bogged down with too many usernames and passwords - we are trying to make a seamless, easy experience for end users.
... View more
09-16-2022
01:45 AM
|
0
|
1
|
253
|
POST
|
How do you handle when the token has expired and you have to input the password?
... View more
09-16-2022
01:40 AM
|
0
|
0
|
1130
|
POST
|
Is there a way to loop through the TOC and preserve the nested hierarchy i.e. NOT the GetLayersAsFlattenedList() method. I also need to examine whether they are group layers or feature/raster layers as I go round. Can't find anything obvious. I did try: MapView.Active.Map.Layers but that just returned me the project node, an item count of 1 - when I had numerous layers loaded in, that made no sense to me. If anyone can help that would be great.
... View more
08-15-2022
01:21 PM
|
0
|
2
|
489
|
POST
|
Hi, Can anyone point me to some example code that does the same behaviour as the Catalog, Portal, Living Atlas. When you hover over an item you get a nice popup floating inline with item which fades in and out. The screenshot below shows what I mean:
... View more
05-06-2022
09:46 AM
|
0
|
0
|
146
|
POST
|
I have an ESRI control, SearchTextBox on my dockpane which I intend to show a suggested list of known authors in autocomplete dropdown that appears underneath the control - this is inbuilt functionality. You have to populate the SuggestionSource with an ObservableCollection of type objects. In my case I am passing a list of strings (after the user types at least 2 letters). I assign my list of strings to ObservableCollection<object> AuthorList which is bound in XAML: <controls:SearchTextBox
x:Name="AuthorTextBox" SuggestionListMax="15"
SuggestionSource="{Binding AuthorList}" ShowMagnifier="False"
InfoText="Author" SearchMode="Manual"
TextChanged="AuthorTextBox_OnTextChanged">
</controls:SearchTextBox> As you can see this works to some extent (see below) - but it does not populate on every key press - it is very intermittent - even if you wait 1 minute! between each key press - sometimes nothing populates, then you can press delete and lose focus and click back, then add some letters and it populates, but it is very erratic in behaviour and this is very frustrating for me. So I am typing "Jones" - and I debug and I can clearly see that the list has been cleared and it is about to accept 15 new entries, however this seems to be ignored. When I go back to the application the control looks like this: Here is my code on the text changed event - it is retrieving a list of 15 authors in sub second speed, it is very fast. private async void AuthorTextBox_OnTextChanged(object sender, TextChangedEventArgs e)
{
if (AuthorTextBox.Text.Length > 2)
{
try
{
UriBuilder uriBuilder = new UriBuilder
{
Scheme = "https",
Host = "localhost",
Path = "service/AuthorBasic/1",
Port = 7269,
Query = $"name={AuthorTextBox.Text}"
};
var response = await CitationSearchVM.Client.GetAsync(uriBuilder.Uri);
if (response.IsSuccessStatusCode == false)
{
Log.Error("FAIL: " + response.StatusCode);
}
else
{
string jsonText = await response.Content.ReadAsStringAsync();
AuthorBasicResponse authorResponse = JsonConvert.DeserializeObject<AuthorBasicResponse>(jsonText);
Module1.CitationSearchVM.AuthorList.Clear();
Module1.CitationSearchVM.AuthorList.AddRange(authorResponse.Authors);
}
}
catch (Exception ex)
{
Log.Error(ex);
}
}
} I don't know whether its some race condition or something I must be subtlety doing wrong. If anyone can help it would be much appreciated.
... View more
05-05-2022
04:08 AM
|
0
|
0
|
346
|
POST
|
I'm bumping this as I still need an answer one way or the other. Just doesn't look very professional to our clients to see the word "Pop-up"
... View more
07-09-2021
01:42 AM
|
0
|
0
|
268
|
POST
|
1. After creating graphics programmatically - the last one created has these adjustment handles left on them - is there anyway to stop this from happening? 2. Also you can see each graphic being made in turn - is there a more elegant way for these to be shown to the user - preferably all at once.
... View more
06-24-2021
06:46 AM
|
0
|
0
|
296
|
POST
|
Hi, I have some graphics (using a sketch tool, polyline) that I want to be shown in a PNG image export. I have added these graphics as overlay graphics as they are temporary only. However when I try to export the PNG - they do not show up in the exported image. Please help - but I'm guessing I have to use a proper graphics layer and have it added to the TOC - I didn't really want to do this as it is a temporary sketch and adding a graphics layers seem a bit more persisted. The code below is showing how I create the export image: public static Task<bool> ExportMapToImage(Geometry geometry, string fileName)
{
return QueuedTask.Run(() =>
{
MapView map = MapView.Active;
string tempPath = GeneralUtils.GetTempPath();
string filePath = System.IO.Path.Combine(tempPath, fileName);
if (File.Exists(filePath))
{
File.Delete(filePath);
}
//Create PNG format with appropriate settings
PNGFormat PNG = new PNGFormat();
PNG.Resolution = 150;
PNG.Height = 500;// geometry.Extent.Height;
PNG.Width = 800;// geometry.Extent.Width;
PNG.OutputFileName = filePath;
//Export active map view
if (PNG.ValidateOutputFilePath())
{
map.Export(PNG);
}
return true;
});
} This code shows how I am adding the graphics to the overlay: _graphicList.Add(mapView.AddOverlay(polyline, SymbolFactory.Instance.ConstructLineSymbol(ColorFactory.Instance.CreateRGBColor(0, 0, 0), 2, SimpleLineStyle.Solid).MakeSymbolReference()));
... View more
06-16-2021
11:51 AM
|
0
|
2
|
1250
|
Title | Kudos | Posted |
---|---|---|
1 | 12-19-2023 01:36 AM | |
1 | 12-21-2023 04:02 AM | |
1 | 05-27-2021 10:01 AM | |
1 | 05-05-2021 01:32 AM | |
2 | 02-11-2021 08:46 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|