Layer Hyperlinks question
I'm attempting to link to a metadata document with layer hyperlinks and just can't get it to work. The URI I'm using is {RootUri}/Resources/Metadata/instaar.html. I get the below error in IE8. In FF and IE9 it doesn't do anything, with no message. I get the same error on both secured and unsecured sites. (It's the Wetlands layer in the Environmental group.) The html file is located in the Sites folder, in the Sites/Resources/Metadata directory.I know I'm missing something simple, probably misusing the token? GE 3.11 and SLV 1.7
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Thu, 20 Dec 2012 20:49:11 UTC
Message: Unhandled Error in Silverlight Application Failed to navigate to gcxfile:///Resources/Metadata/instaar.html. at MS.Internal.NavigationHelper.Navigate(Boolean checkUserInitiatedAction)
at System.Windows.Controls.HyperlinkButton.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
Line: 1
Char: 1
Code: 0
URI: http://maps.sanmiguelcounty.org/SilverlightViewer/Viewer.html?Viewer=SanMiguelCountyPublic
-
Still looking for help on this. Any suggestions?
0 -
Just by the act of posting... It took me all of 15 minutes to finally figure this out. Wrong file location, wrong replacement token.
For those others who (like me) may only have a vague grasp of the architecture, if you want a file (such as a metadata HTML file) to be accessible to the PUBLIC, it has to be in a PUBLIC location. Not the Sites folder. So I set up a metadata folder in the web root and used the following for the URI: {HostUri}/ClientBin/Resources/Metadata/instaar.html. And that works on my test site. So now I need to make a prettier metadata page and link it on the public site!
0
Please sign in to leave a comment.
Comments
2 comments