POST
|
I have a series of map services in a REST directory which should be available to any IP address. However, some users report that they are not able to view the content. In a test, a laptop was used to access the REST directory using one IP address (wifi network). This IP blocked every attempt. The same laptop was then used on a different network, and could access everything without problem. I have tried clearing browsing history, network cache, turning off and on modums and routers etc at the user end without luck. The server that hosts the REST directory does not block access. I would be extremely grateful if someone could five some ideas/ advice about why this is happening, and how to fix it? With thanks, Mick
... View more
09-02-2014
09:16 PM
|
0
|
2
|
987
|
POST
|
Hi, I have a python script which runs as a scheduled task each day, on a Windows 2008 server machine, which creates a log file. However, I cannot get the log file to be created with a date appended to it. Other CMD scripts use "update_logfile_%date:~10,4%%date:~7,2%%date:~4,2%.log" but this doesn't work. I also tried "update_logfile_%Y-%m-%d.out", but that didn't work either. Ideally, I would like something like this: update_logfile_2011_02_10.out Could anyone help please? Many Thanks, Mick
... View more
02-09-2011
01:31 PM
|
0
|
1
|
11069
|
POST
|
Hi, I have a Python data update script which grabs data from an Oracle database and puts it into feature classes in File Geodatabases. This uses the Data Interoperability Quick Import tool. This has been working fine for a while. My problem now is that some data sets often have no data for periods of time, so my update script simply does not create that feature class. This in turn causes my MXD problems, because it is missing a data link. What I want to do is add an 'if statement' to my update that says something like "FeatureClassX does not exist, then create feature class from an empty Master template" using the Create Feature Class tool. Else, continue on with update as Feature Class does exist. Does anyone know if there is a way to do this in python script? I tried using 'GetCount' but ran into errors saying things were not defined, but I think even if it were written correctly it, it probably isn't what I'm after anyway - would GetCount return a value of zero records if the feature class does not exist? Any help with this would be greatly appreciated. Many Thanks, Mick
... View more
12-06-2010
11:23 AM
|
0
|
1
|
2384
|
POST
|
Hi , The fix in VS2010 did just suppress the error. The double naming of "SilverlightApplication_Web" (SilverlightApplication_Web.SilverlightApplication_Web.MainPage) still has me confused. I think it is because of the file structure rather than it being defined twice. The solution file sits on my C drive with the file structure: C:\...\SilverlightApplication_Website\ Also in this folder is another folder called SilverlightApplication_Web (which contains my App.xaml and MainPage.xaml, SilverlightApplication_Web.vbproj files), and one called SilverlightApplication_WebSite (which contains the Default.html and Web.Config files). I assume that I have set things up incorrectly, and this may be causing my problems. I've also noticed that if I remove 'Namespace SilverlightApplication_Web' from my .XAML.VB file, the error goes away in VS2010. When I run the project, I get a new error: A security exception occured while trying to connect to the REST endpoint. I have tried putting the ClientAccessPolicy.xml in each of the three folders, and in fact all of them too, and also in the WWWROOT directory. It doesn't seem to make a difference. Could someone please advise what the root directory? Thanks again, Mick
... View more
09-01-2010
02:11 PM
|
0
|
0
|
1304
|
POST
|
Hi Jennifer Thanks for your reply. I downloaded an evaluation copy of VS2010, attempted to build my project and got the same error message: 'InitializeComponent' is not declared. It may be inaccessible due to its protection level. However, further informaiton was: Generate method stub for 'InitializeComponent' in 'SilverlightApplication_Web.SilverlightApplication_Web.MainPage' All references seemed to be fine - without warning icons. In the .xaml.vb page, the error offered a 'fix error' option. When selected the code below was added: Private Sub InitializeComponent() Throw New NotImplementedException End Sub When I rebuild the project, it worked!! Thank you very much for your advise. Mick
... View more
08-26-2010
03:06 PM
|
0
|
0
|
1304
|
POST
|
Hi, I'm new to Silverlight, and am trying to make use of the code available on the ArcGIS Resource Center. I am using Microsoft Expression Blend 4 to create a simple map using the ESRI online services. I have created a new Silverlight Application and Website project in Expression Blend, and then added the code from the Resource Center (http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Navigation) into the XAML and XAML.VB pages. I have used the project name for the Namespace, rather than 'ArcGISSilverlightSDK', which is in the online code. I can view the XAML in the Expression Blend Design view, but when I build the project I get the following error: Description: 'InitializeComponent' is not declared. It may be inaccessible due to its protection level. File: MainPage.xaml.vb Project: SilverlightApplication_Web The XAML code is: <UserControl x:Class="SilverlightApplication_Web.MainPage" 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" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"> <Grid x:Name="LayoutRoot" Background="White"> <esri:Map x:Name="MyMap" Extent="-130,10,-70,60"> <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/> </esri:Map> <esri:Navigation Margin="5" HorizontalAlignment="Left" VerticalAlignment="Bottom" Map="{Binding ElementName=MyMap}" > </esri:Navigation> </Grid> </UserControl> The XAML.VB code is: Imports Microsoft.VisualBasic Imports System.Windows.Controls Namespace SilverlightApplication_Web Partial Public Class MainPage Inherits UserControl Public Sub New() InitializeComponent() End Sub End Class End Namespace Any help would be great!! Thanks in advance. Mick
... View more
08-25-2010
03:41 PM
|
0
|
9
|
4155
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|