I have a product.pdf in my clientbin(silverlight) folder which contains detail about product on click of button just i want to open that pdf i used following code it's working fine locally after hosting it is giving HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. how can i do that one please help me
** service and calling aspx page in silverlight**
Dim uri As New Uri(HtmlPage.Document.DocumentUri, "/ClientBin/product.pdf")
'HtmlPage.Window.Navigate(uri, "_blank")
Dim path As String = uri.AbsoluteUri.ToString()
' HtmlPage.Window.Eval("window.open('" & path & "')")
HtmlPage.Window.Eval("document.location.href='" & path & "';")
** Error code After hosting **
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
How to open a pdf file in silverlight after hosting?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Aug 17, 2011, 11:02 PM EDT
Can you post the uri value and path values you are getting while debugging...
Rajkumar Reddy5 reputationPosted Aug 18, 2011, 1:19 AM EDT