|
POST
|
Yes, it is currently a working MVC application. The stuff I am testing will be a new addition to the application. The JS for the web map is nested inside this MVC application as is the proxy folder.
... View more
11-26-2018
12:24 PM
|
0
|
1
|
6936
|
|
POST
|
Ah, it is not. I get a "Server Error in '/' Application" - resource cannot be found error (404). Testing the proxy with the actual domain name (while in the development environment) does respond correctly, so that's working.
... View more
11-26-2018
12:09 PM
|
0
|
4
|
6936
|
|
POST
|
Yes to port number. Proxy is located inside of the app folder. So http://localhost:14906/appName <-- proxy sits in this app. You gave me an idea though. Do you think I need to edit the urlPrefix in the proxy rule? Currently it is set to the actual production environment. urlUtils.addProxyRule({
urlPrefix: "https://www.mydomain.org",
proxyUrl: "/appName/proxy/proxy.ashx"
});
... View more
11-26-2018
11:54 AM
|
0
|
6
|
6936
|
|
POST
|
Bummer, I have tried that. I have also tried setting mustMatch to false to no avail. <ProxyConfig allowedReferers="*"
mustMatch="true"
logFile="proxyLog.txt"
logLevel="Warning">
<serverUrls>
<serverUrl url="https://www.mydomain.org/myserver/rest/services/HabitatManagement/HabitatManagement/GPServer"
username="xxx"
password="xxx"
matchAll="true"/>
<serverUrl url="https://www.mydomain.org/myserver/rest/services/HabitatMonitoring/HabitatData/MapServer"
username="xxx"
password="xxx"
matchAll="true" />
<serverUrl url="https://www.mydomain.org/myserver/rest/services/HabitatMonitoring/HabitatClassification/GPServer"
username="xxx"
password="xxx"
matchAll="true" />
</serverUrls>
</ProxyConfig>
... View more
11-26-2018
11:34 AM
|
0
|
8
|
6936
|
|
POST
|
I'm trying to use my development environment to work on some things and currently the data on my map gets loaded through a proxy service. The proxy isn't set up to allow a localhost referrer so I would like to do so. I think this would be possible but I'm struggling to get it to work. I get a 404 error. Request URL comes out looking like this: http://locahost:14906/appName/proxy/proxy.ashx?https://www.mydomain.org/myserver/rest/services/HabitatMonitoring/HabitatData/MapServer/4?f=json Current config file: <ProxyConfig allowedReferers="https://www.mydomain.org/*,http://localhost:14906/*"
mustMatch="true"
logFile="proxyLog.txt"
logLevel="Warning">
<serverUrls>
<serverUrl url="https://www.mydomain.org/myserver/rest/services/HabitatManagement/HabitatManagement/GPServer"
username="xxx"
password="xxx"
matchAll="true"/>
<serverUrl url="https://www.mydomain.org/myserver/rest/services/HabitatMonitoring/HabitatData/MapServer"
username="xxx"
password="xxx"
matchAll="true" />
<serverUrl url="https://www.mydomain.org/myserver/rest/services/HabitatMonitoring/HabitatClassification/GPServer"
username="xxx"
password="xxx"
matchAll="true" />
</serverUrls>
</ProxyConfig> Do I need to add localhost somehow as serverUrls? I'm not sure how that would look because accessing my rest services from localhost uses the same server URLs seen in the above code. You can't access them like "http://localhost:14906/myserver/rest/services/...."
... View more
11-26-2018
10:33 AM
|
0
|
10
|
8950
|
|
POST
|
Hahaha, seriously, of course it's just a typo. Thank you!! I'll leave the thread up because I couldn't find any good examples on how to zip up a file geodatabase in python on GeoNet. Maybe it'll help someone later...
... View more
11-02-2018
11:30 AM
|
4
|
0
|
12773
|
|
POST
|
Does anybody have a good method of doing this? I've tried using the zipfile python library but am utterly confused on how to do it for a file geodatabase since it's not exactly a directory/file structure. My folder structure looks like so, I want to zip up the folder/geodatabase outlined in red: I've tried this (all the indentation is correct in my script, don't know why GeoNet is changing it upon publishing the question): import zipfile
#Creates the empty zip file and opens it for writing
myzipfile = zipfile.ZipFile("D:\GIS_Testing\HabitatDbase\MyZip.zip", 'w', zipfile.ZIP_DEFLATED)
for root, dirs, files in os.walk("D:\GIS_Testing\HabitatDbase"):
if root == "D:\GIS_Testing\HabitatDbase\HabitatData.gdb":
for f in files:
myzipfile.write(os.path.join(root, file)) I've also tried using shutil.make_archive and for some reason instead of zipping up my file geodatabase it zips up my python script file which is completely bewildering as I have no idea how it would even get the path to the script file... I get a TypeError on the last line that says "object of type 'type' has no len()"
... View more
11-02-2018
11:19 AM
|
1
|
16
|
17999
|
|
POST
|
I get something like this: Server: xxx.domain.xxx (never seen the name of this server before) Address: IP address of the DNS server Name: NameOfPersonInThisPositionBeforeMe.ag.domain.xxx Address: My IP address
... View more
11-02-2018
10:35 AM
|
0
|
0
|
876
|
|
POST
|
Cannot ping the hostname from the RDP ("ping HHSDC42") but I did try to ping the IP address of the publishing machine and that gave me something back. The hostname command on the publishing machine does respond with HHSDC42. When I ping the server machine from the publishing machine by hostname, I get a lot of "Request timed out" responses. I cannot see a folder I shared on the server machine to my publishing machine. I have checked that both computers are on the same network and that network sharing for the domain profile is switched on for both machines. I think here in lies the problem - they are both on the same network but network discovery for the domain is turned off on the server. This is strange because in Windows Explorer under the Network heading I can see other computers listed there... I have attempted to change the network sharing properties, but every time I save changes, it switches back to off for the domain profile. I'm going to ask my Network guy when he gets back in town about this and see if he can help me figure it out (I really don't know much about our network or how it's all set up, I work for a massive organization so it's maybe more complicated than a typical network setup).
... View more
11-02-2018
05:34 AM
|
0
|
2
|
876
|
|
POST
|
It does not appear so. I do not see HHSDC42 in the computers listed in the Network. I could share my local files with the RDP before I log in, making the file located at \\tsclient\D\GIS_Testing\HabitatDbase\PrintTesting but I don't think that's what you're looking for.
... View more
11-01-2018
12:42 PM
|
0
|
4
|
876
|
|
POST
|
Alright, on publishing machine I've added myself as a user to GIS_Testing On server machine, I appear to be the "logged on" user:
... View more
11-01-2018
10:47 AM
|
0
|
6
|
3561
|
|
POST
|
Thanks for the suggestion but that didn't work for me.
... View more
11-01-2018
10:40 AM
|
0
|
0
|
3561
|
|
POST
|
For method #2, when you say "Give the account running the Server service access to the share" - that would be the ArcGIS Server Account that I have set up as a domain user, correct? So "UTK\mfoley10" ? See my reply to Jake Skinner below...I couldn't get that to work. Alternatively, I was able to make method #1 work. I just would like to understand method #2 better for my own edification. Thanks for your help!
... View more
11-01-2018
10:26 AM
|
0
|
0
|
3561
|
|
POST
|
Hm, I tried your solution but maybe it's a user problem as it still can't connect. The HHSDC42 is my "device name" or name of the publishing machine.
... View more
11-01-2018
10:17 AM
|
0
|
10
|
3561
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-18-2020 10:31 AM | |
| 2 | 09-16-2025 02:17 PM | |
| 3 | 09-12-2025 09:26 AM | |
| 1 | 08-16-2023 05:11 PM | |
| 1 | 02-27-2024 06:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-16-2025
02:16 PM
|