Using UNC for URI in Framework.xml
I am attempting to make use of a UNC path for the Uri setting in the Framework.xml file. I am not having luck with it. I can get it to work if I use a drive mapping, but UNC indicates the following in the Essentials manager: " Invalid Site: Site.xml referenced by SiteLocation is invalid." I have tried various formats such as: Uri= file:////vdxdde0x/ArcGIS_Intranet/GeocortexWorking/KevinRiMapExtended2/Site.xml Uri= file://vdxdde0x/ArcGIS_Intranet/GeocortexWorking/KevinRiMapExtended2/Site.xml Uri= file://\\vdxdde0x\ArcGIS_Intranet\GeocortexWorking\KevinRiMapExtended2\Site.xml Uri= (file:///\\vdxdde0x\ArcGIS_Intranet\GeocortexWorking\KevinRiMapExtended2\Site.xml) file:\\vdxdde0x\ArcGIS_Intranet\GeocortexWorking\KevinRiMapExtended2\Site.xml
0
-
The second format you listed is the correct one: Uri= file://vdxdde0x/ArcGIS_Intranet/GeocortexWorking/KevinRiMapExtended2/Site.xml Try opening the Site.xml file in a browser using this Uri. Does the file open? Ensure that the permissions have been set correctly that the identities running the Essentials app pools (by default Essentials and EssentialsAdmin) can see and write to the folder.
0 -
0
-
A little more information: So the problem I have been experiencing is on 2008 Server. The problem so far only affects Geocortex Essentials Manager. I can actually load the site in Essentials with no problem. That may help narrow it down a bit. I decided to try this on a 2003 R2 Server and have gotten a little farther. Essentials Manager on the 2003 server does not display the red icon beside the site name as it does on my 2008 server. If I select the site I am able to go in and look at what has been set for that site (on the 2008 server when I select the site it gives me a message box indicating: Cannot open SiteName.) . Now if I make a change on the 2003 server and go to save the changes, the following happens: The changes are written to the file successfully, but I do get an error during the save process as follows (please note the bolded area): System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentException: URI formats are not supported. 0 -
I think I know what your code is doing. I am now on 2.3.1 and am running into the same problems. In my post on 3/24/2010 9:24am I indicated that Process Monitor is indicating an attempt to open file from the C drive by replacing the server name in the UNC with c: So lets use this URI as the example Uri= (file://vdxdde0x/ArcGIS_Intranet/GeocortexWorking/KevinRiMapExtended2/Site.xml) file://vdxdde0x/ArcGIS_Intranet/GeocortexWorking/KevinRiMapExtended2/Site.xml The path it is trying to open is c:\ (file://vdxdde0x/ArcGIS_Intranet/GeocortexWorking/KevinRiMapExtended2/Site.xml) ArcGIS_Intranet\GeocortexWorking\KevinRiMapExtended2\Site.xml I think the following is happening in your code. You are creating a new object of type URI. You then use the absolute path property of that object to attempt open the file. The absolute path of the URI I specified above is: / (file://vdxdde0x/ArcGIS_Intranet/GeocortexWorking/KevinRiMapExtended2/Site.xml) ArcGIS_Intranet/GeocortexWorking/KevinRiMapExtended2/Site.xml This partially explains why it drops the server name and then tries to open from the C drive. Once again I will reiterate - The Essentials app will open this site properly and allow us to view the map. It is manager that is not working and will not allow us to modify the site.xml files through the manager system. 0 -
I'm not sure if this is what you're looking for or not, but when I created UNC hyperlinks on a layer I had to use this format: file://///netdrives/engr/Documents/Drawings/{PlanNo}.tif and when I wanted to use drive lettering it looked like this: file://e|Documents/Drawings/{PlanNo}.tif 0
Please sign in to leave a comment.
Comments
5 comments