|
POST
|
I have a Rest service that needs to open an IAGSServerConnection. When I run this from the Visual Studio application server or run it in a unit test harness everything works fine. But if I try to run from IIS it will give me an error on the IAGSServerConnectionFactory::Open. Access Denied: Either the SOM service is not running or user is not a member fo the agsuser or agsadmin group.... For fun I tried adding user and password to the property set, but that has not impact. In IIS I have done all the things that I have read need to be done to run ArcObjects. Classic .NET AppPool is set to Integrated (I have tried both Classic and Integrated with same result) and I have Enable 32-bit applications set to true My folder is an Application not a virtual directory The application uses the Classic .NET AppPool Can someone please explain what needs to change for a service to run from IIS that is different from it running in Visual Studio Thanks -Joe
... View more
05-05-2012
10:37 PM
|
0
|
1
|
700
|
|
POST
|
Patrick, Thanks for the response, after I posted I guessed that might be the solution as it is a similiar approach for managing an AGS from another machine without a domain. Just had to convince the IT guys here that it was necessary so they would setup the account 🙂 Thanks again -Joe
... View more
03-27-2012
11:54 PM
|
0
|
0
|
431
|
|
POST
|
Your solution does work but it is still causing me a problem that I am not resolving. I moved some of my imagery over to the local disk and built the services from there and it all works. However, I am still having an issue when the imagery is stored on a network share. I have checked and the "Everyone" user has read permissions to this folder, but the issue still exists. Is there a special way that permissions need to be set on a network share so that the SOC will have the appropriate access? My SOC user is not a domain user only a local user on the AGS machine, I am not sure if I will need to make the user a domain user (that seems like an odd requirement to me). Is there something else I am missing? Thanks -joe
... View more
03-27-2012
12:35 AM
|
0
|
0
|
1897
|
|
POST
|
My approach is do be looping through the GraphicsContainer and then storing the items to be deleted into a List then looping through that list at the end and deleting each element. I think because the Graphics Collection is so big that it takes a while to find the element in the collection in order to remove it. I have put some timers in there and the call to IGraphicsContainer:: DeleteElement is really slow. The approach I am thinking of trying, which is a bit convoluted but I think may improve performance is to delete everything from the GraphicsContainer and make an ElementCollection of all the things that should be kept. Then use IGraphicsContainer::AddElements methods and add them back. I'll see what happens Thanks again. -Joe
... View more
03-24-2012
07:10 AM
|
0
|
0
|
718
|
|
POST
|
That was it IMultiLayerMarker in my case. not sure why I did not see it, does exactly what I expected. Thanks for the help. You would not happen to know a way to speed up deleting elements, I delete a lot of elements (probably close to 1000 in some cases) and it takes forever (well almost 10 minutes, which seems like forever when you are watching) Thanks again -joe
... View more
03-21-2012
12:34 AM
|
0
|
0
|
718
|
|
POST
|
Hi All, I am writing an application that deletes elements (lines, markers, text, etc) from a page layout based on the color of the symbol. For the most part everything works fine. I cast the element to the appropriate Element type (ITextElement, ILineElement, etc) get the Symbol property and the Color. There is one exception, for a few of the elements the Symbol has multi-layers and it is the second layer of the symbol that is the Color I am looking for. I do not seem to get a reference to this part of the symbol. I have searched and I cannot find a way to loop through the layers in a multi-layer symbol. Does anyone know how you would go about doing that? Seems there should be an Interface I can cast my Symbol to and determine if it is multi-layer and then loop through each layer, get the symbol on the layer and check the color. But I do not see a way to do that. Thanks -Joe
... View more
03-18-2012
09:52 PM
|
0
|
4
|
965
|
|
POST
|
Hi, Basically you just need to initialize a Graphic object and then change to using object initialization. This occurs in code not Xaml. So start by writing the code for a new Graphic Graphic g = new Graphic(); (for me the new Graphic completes automatically after the = is typed). Replace the (); with {} and start to type the word Geometry (or Symbol...). At this point Visual Studio hanges for a minute and then pops up a huge intellisense window. I should give the caveat that I do have ReSharper running, so perhaps this has something to do with it, but it seems like a standard Visual Studio intellisense. Thanks, I appreciate your taking the time to look into this -Joe
... View more
06-28-2011
08:07 PM
|
0
|
0
|
495
|
|
POST
|
Hi, There seems to be an issue (or at least I am having one) that when you create a new Graphic object and try to use the Object Initialization approach. When you start type in the brackets it tries to display an intellisense, which just about freezes VS and when it does display is a window about half the size of the screen. Pretty much makes using object initialization useless because you have to wait while it hangs a minute for every property you want to set. -Joe
... View more
06-27-2011
10:52 PM
|
0
|
3
|
1464
|
|
POST
|
Thanks for the help, this was exactly the solution I needed.
... View more
01-31-2011
01:16 AM
|
0
|
0
|
1489
|
|
POST
|
This is exactly what we have been trying to do. So the sooner you can have the code posted the better. I can clean it up
... View more
01-25-2011
06:24 PM
|
0
|
0
|
1489
|
|
POST
|
As you said this seems to be the only thing available using a line cap. I am not sure I undersatnd why ESRI seems to have gone out of the way to not expose any thing that could allow users to do more than make lines have cool visual affects. It seems to me that it would make sense to have Symbol be a UI Component so developers could have greater control over the Control Template. Or some way to have access to the actuall UI Elmenent that is being drawn on, like Flex does. I think what we are trying to accomplish should be possible in a straight forward way. If you have any thoughs on making a polyline that is truly an arrow it would be greatly appreciated.
... View more
01-22-2011
01:21 AM
|
0
|
0
|
1489
|
|
POST
|
I have tried it both ways, that just happens to be where I was at when I copied it. The best I can see with this setting is that if you make a really, really thick line you can kind of tell there is a triangle at the end when you zoom in. But on a normal thckness line you cannot see any difference when you change this setting. What I really want to do is create a line that has an arrow head end point, not just a small triangular end point. Like I said in my intial post, I did this in Flex, and if I were to just use the core .net shapes I can do it I have been messing around with the various aspects of the ControlTemplate, it looks to me like somehow there might be a way to use the PathGeometry to get the behavior I want. I have yet to figure out how you can set a path the starts at the end point of the line (I am no XAML guru). If you have any insight into how one might go about this I would greatly appreciate it. It seems a little mysterious how the Path "Element" is being grabbed onto and used Thanks -Joe
... View more
01-20-2011
05:38 PM
|
0
|
0
|
1489
|
|
POST
|
I have a simple need. Create a line with a Triangle end point. Was able to do in Flex by inheriting from LineSymbol and overriding the Draw method. Cannot use this approach because the Silverlight LineSymbol does not expose the same methods in this way. Looked at CartographicLineSymbol and it has an EndLineCap which would seem to offer this behavior based on the Enum values. Set to triangle and it does nothing, in fact I do not see any affect of setting any of the properties on this object. This basically would just seem the it exposes some of the Attributes on the <Path/> element. If I set them directly in the PAth element of a custom Symbol still no affect. Any Ideas??? Thanks -Joe
<esri:LineSymbol x:Class="Kpoint.Jbl.Viewer.Modules.CoaGraphics.Symbols.FollowAndSupportSymbol"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
<esri:LineSymbol.ControlTemplate>
<ControlTemplate>
<Canvas>
<Path Name="Element" Stroke="Blue" StrokeThickness="3" StrokeDashArray="2 1" StrokeDashCap="Round"StrokeEndLineCap="Triangle" />
</Canvas>
</ControlTemplate>
</esri:LineSymbol.ControlTemplate>
</esri:LineSymbol>
... View more
01-19-2011
08:19 PM
|
0
|
10
|
3140
|
|
POST
|
I am pretty much at wits end with this new licensing model that seems to cause nothing but problems. My first set of issues was that I could not run NUnit tests getting an error the same as or with a different file as listed in the header. Finally fixed that (well did not fix, just realized I could run tests using the MS Testing harness and rewired my tests). So now I want to deply the service. Once the service is setup it will no longer run and gives my the 'Could not load file or assembly 'ESRI.ArcGIS.Version' as the message. These are simple operations I am trying to do, and I am spending hours figuring out issues with this new licensing model. It does not even fail validating or anything, because it does not get to that point. It won't even load the assemblies. This has been a huge waste of my time, for something I could have finished in a couple hours in 9x Any help would be appreciated -joe
... View more
12-07-2010
02:13 AM
|
0
|
4
|
2267
|
|
POST
|
A bit late on the response, but I would consider using the Multi-Speak model if it can meet your needs. This does have a gdb included Using a standard model is a nice way to go if you can get away with it. The MM based model will work well for UG and OH (I may be biased if you saw my complete resume), but is rather complex and perhaps overkill for smaller utilities. All depends on what you really need to do with he data, of course.
... View more
10-16-2010
11:00 AM
|
0
|
0
|
1012
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-23-2025 12:16 PM | |
| 1 | 10-19-2022 01:08 PM | |
| 1 | 09-03-2025 09:25 AM | |
| 1 | 04-16-2025 12:37 PM | |
| 1 | 03-18-2025 12:17 PM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|