Handle FTP Uri in Attributes.
I have a map service with attributes that are URIs. One is HTTP scheme, the other is FTP Scheme.
In the attribute table, the HTTP Scheme becomes a clickable link, the FTP does not.
I've tried adding the URIs to the feature description like this
<a href="{FTP_FILE_NAME}">{FTP_FILE_NAME}</a><br />
<a href="{HTTP_FILE_NAME}">{HTTP_FILE_NAME}</a>
The HTTP_FILE_NAME attribute works, but the FTP_FILE_NAME shows an error in the log shown below.
Questions:
1. Is there another way to handle FTP URIs?
2. Is there a way to modify the viewer to handle them?
Thank you,
Scott
05/16/2013 04:29:07:078: CRITICAL: Unhandled exception occurred: System.InvalidOperationException: Failed to navigate to ftp://ftp.com/RUSHC002.txt.
at App.OnUnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e) Geocortex.EssentialsSilverlightViewer.Viewer
at EventHandler`1.Invoke(Object sender, TEventArgs e) System
at Errorstatic .CallApplicationUEHandler(Exception e) MS.Internal
at Errorstatic .GetXresultForUserException(Exception ex) MS.Internal
at JoltHelperstatic .FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags) MS.Internal
Details:
at MS.Internal.NavigationHelper.Navigate(Boolean checkUserInitiatedAction)
at MS.Internal.FrameworkCallbacks.NavigationHelper_Navigate(IntPtr nativeHost, String targetName, String navigationUri)
-
My suspicion is silverlight does not permit FTP calls as they are considered unsafe. The way around this is perhaps having a small webpage application that takes the HTTP request and forms an FTP request using javascript?
From my searching: http://social.msdn.microsoft.com/Forums/en-US/silverlightcontrols/thread/3198ca20-d081-450d-b49c-947c9c2a980f/
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar