Opening a file (xls, gif, pdf) using a hyperlink when the webserver and files are in another domain

I have beeen trying to do this for days. I have an IIS server runnning asp.net2.0. The client machines are an a sepearte domain but on the same LAN. The clients can access the .aspx pages without difficulty. One of the pages has a list of dynamically created hyperlinks to files which reside on the IIS server. The hyperlinks are calling 'file://server/share/filename.extension'. I have tried everything to get the clients to open the files in their browsers but it never works. I have used 'logonuser' to log the clients on at adminstrator level on to the IIS server but it still won't work. The only thing that works is mapping a drive in windows explorer on the client but this is not a practicable solution for when I role this project out. Can anybody help? Please? (I am using vb2005)

0
Padlock
2/26/2008 8:29:11 PM
asp.net.security 27051 articles. 1 followers. Follow

3 Replies
952 Views

Similar Articles

[PageSpeed] 35

The client needs permission to open the files.  That client might be the user if you are using Windows authentication, or the ASP.NET process account if not.  You'll need to deal with domain trusts and account access with your network and/or domain admins.

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
0
jeff
2/26/2008 9:20:00 PM

Thanks for your answer Jeff. I am a real newbie at this. I am using windows authentication and am using the LogonUser function to log the client session as administrator on the server machine but it still won't work. Can you point me at a a code example that might help me?

 

0
Padlock
2/26/2008 9:24:49 PM

Padlock:

 The hyperlinks are calling 'file://server/share/filename.extension'. I have tried everything to get the clients to open the files in their browsers but it never works.

Well, if you cannot open the shared 'file://server/share/filename.extension' in windows explorer, mean this file doesn't allow to access between separate domains, If you want to add trust relationships between domains, here is a good guideline http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/deploy/dgbe_sec_ztsn.mspx?mfr=true


Best Regards
XiaoYong Dai
Microsoft Online Community Support

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
0
XiaoYong
2/28/2008 10:50:36 AM
Reply:

Similar Artilces:

How to convert .tiff image file to .pdf file without using any 3rd party tool using C#.net
HI allI have a urgent requirement i want to convert .tiff image to .pdf file Thanks in advance Regards RaviPlease click "mark as answer" if this post helped you. I dont think its possible without doing a lot of code or using third party tools, but if you  are looking for a free tool you can try a combination of http://blog.codebeach.com/2008/02/convert-multipage-tiff-to-pdf-in-net.htmland  http://www.codeproject.com/KB/aspnet/Creating_PDF_documents_in.aspx Thanks and RegardsS.K.Vignesh----------------------Do remember to "Mark as answer" for this pos...

Error: The process cannot access the file because it is being used by another process. on File.Open
I have a gridView that has a bunch on document names stored in it. In a template column I have a view button. When the view button is clicked I run some javascript that that opens a new window and passes a documentID. In the viewDocuments form I make a call to the server passing to ID to get document details: Dim cmdSELDoc As New SqlCommand("[get_document]", conHTA) cmdSELDoc.CommandType = Data.CommandType.StoredProcedure Dim prmDocID As SqlParameter = cmdSELDoc.Parameters.Add("@i_document_id", Data.SqlDbType.Int) prmDocID.Value = Request.QueryString("docID") Try reader = cmdSELDoc.Ex...

Cannot open items in .pbl file using File
Hello, I am using InfoMaker version 8.0.3 and I cannot open items in a .pbl file using the File - Open routine. I can open them using the Library Painter window and the .pbl file is set as my current working library. I have switched the object type to see if the display was limiting my list of reports. The entire list is blank. Am I missing a setting somewhere? Thanks! I have no idea. My guess is that you have duplicate pbXXX80.dll's on your system. -- Terry Dykstra (TeamSybase) http://powerbuilder.codeXchange.sybase.com/ http://www.pb9books.com product enhancem...

opening a file from database as column as path (eg:c:/file/fil1) in a gridview using hyperlink
opening a file from database as column path (eg:c:/file/fil1) in a gridview using hyperlink Hi SoftwareEngineer2008 , What do you want to do ? Please elaborate.  Samu ZhangMicrosoft Online Community SupportPlease remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. ...

superreview requested: [Bug 69114] Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) : [Attachment 143792] patch v4
Christian Biesinger <cbiesinger@gmx.at> has asked Brian Ryner (IBM) <bryner@brianryner.com> for superreview: Bug 69114: Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) http://bugzilla.mozilla.org/show_bug.cgi?id=69114 Attachment 143792: patch v4 http://bugzilla.mozilla.org/attachment.cgi?id=143792&action=edit ------- Additional Comments from Christian Biesinger <cbiesinger@gmx.at> I'll change nsIFileProtocolHandler's uuid before checking in ...

superreview granted: [Bug 69114] Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) : [Attachment 143792] patch v4
Boris Zbarsky <bzbarsky@mit.edu> has granted Christian Biesinger <cbiesinger@gmx.at>'s request for superreview: Bug 69114: Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) http://bugzilla.mozilla.org/show_bug.cgi?id=69114 Attachment 143792: patch v4 http://bugzilla.mozilla.org/attachment.cgi?id=143792&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> sr=bzbarsky, but I didn't verify general correctness of the win32 mumbo-jumbo (I don't know enough about win32 to do that). ...

superreview granted: [Bug 69114] Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) : [Attachment 143888] patch for callers, v2
Boris Zbarsky <bzbarsky@mit.edu> has granted Christian Biesinger <cbiesinger@gmx.at>'s request for superreview: Bug 69114: Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) http://bugzilla.mozilla.org/show_bug.cgi?id=69114 Attachment 143888: patch for callers, v2 http://bugzilla.mozilla.org/attachment.cgi?id=143888&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> >Index: xpfe/components/bookmarks/src/nsBookmarksService.cpp The changes to this are fine. File a bug on firefox t...

superreview requested: [Bug 69114] Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) : [Attachment 143792] patch v4 #2
Christian Biesinger <cbiesinger@gmx.at> has asked Boris Zbarsky <bzbarsky@mit.edu> for superreview: Bug 69114: Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) http://bugzilla.mozilla.org/show_bug.cgi?id=69114 Attachment 143792: patch v4 http://bugzilla.mozilla.org/attachment.cgi?id=143792&action=edit ...

superreview requested: [Bug 69114] Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) : [Attachment 143888] patch for callers, v2
Christian Biesinger <cbiesinger@gmx.at> has asked Brian Ryner (IBM) <bryner@brianryner.com> for superreview: Bug 69114: Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) http://bugzilla.mozilla.org/show_bug.cgi?id=69114 Attachment 143888: patch for callers, v2 http://bugzilla.mozilla.org/attachment.cgi?id=143888&action=edit ------- Additional Comments from Christian Biesinger <cbiesinger@gmx.at> I'll make those changes ...

superreview requested: [Bug 69114] Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) : [Attachment 143888] patch for callers, v2 #2
Christian Biesinger <cbiesinger@gmx.at> has asked Boris Zbarsky <bzbarsky@mit.edu> for superreview: Bug 69114: Opening Internet Shortcuts (.url files) doesn't work (using File | Open or file protocol) http://bugzilla.mozilla.org/show_bug.cgi?id=69114 Attachment 143888: patch for callers, v2 http://bugzilla.mozilla.org/attachment.cgi?id=143888&action=edit ...

Opening a file on another file server.
Hi, How can I via Asp.Net open a file by either opening it in the user's web browser or streaming it to the user's browser with an open / save dialog option? Only catch is that the file is not on the web server but rather on another file server to which the user has access to.I.W Coetzer To open a file in the browser... ....................................................... string path = @"C:\Swift3D.pdf"; WebClient client = new WebClient(); Byte[] buffer = client.DownloadData(path); if (buffer != null) { Response....

Object tag element opened with "Open File" -- Local File Security
Hi, I'm trying to open an html file with the object tag in it from a local file (file://) in Firefox 3.0 The html file is the following: <html> <body> <object type="audio/mpeg" data="media/where_to_begin.mp3" width="200" height="20"> <param name="src" value="media/where_to_begin.mp3" /> <param name="autoplay" value="false" /> alt : <a href="media/where_to_begin.mp3">media/where_to_begin.mp3</ a> </object> </body> <...

open an image file and a pdf file same time
Hi:I have a dynamic created image file, and can be show on my webpage by using: <form id="form1" runat="server">    <div>        <asp:Image ID="Image1" runat="server" ImageUrl="~/Labels/label1Z569W0R0394923376.GIF"  />    </div>    </form> Now, I have a pdf file which is static (a kind of user menu), is it possible that I can insert this pdf file to above form, so when the page open, it will show both image and pdf file?if n...

Opening file dialog box for gif file
Name: Nick Hajek Email: nhajekatmeridian-technicaldotcom Product: Gran Paradiso Summary: Opening file dialog box for gif file Comments: Every time I open a different page at omaha.com I get three "Opening File" dialog boxes that ask if I want to Save or Open blank.gif. No other browsers (IE6 & 7, FF 2) do this. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4) Gecko/2008030714 Firefox/3.0b4 ...

Web resources about - Opening a file (xls, gif, pdf) using a hyperlink when the webserver and files are in another domain - asp.net.security

Hyperlink - Wikipedia, the free encyclopedia
A hyperlink points to a whole document or to a specific element within a document. Hypertext is text with hyperlinks. A software system for viewing ...

SA Supreme Court rules Dr Janice Duffy was defamed by Google through its hyperlinks, auto-complete and ...
A FORMER SA Health researcher has won a six-year legal battle against Google, proving she was defamed by the internet giant due to the way it ...

Banned hyperlinks could cost you $11,000 a day
The Australian communications regulator says it will fine people who hyperlink to sites on its blacklist, which continues to be controversially ...

ANALYSIS - Supreme Court hyperlink decision a victory for free speech
A hyperlink by itself should never be seen as 'publication' of other content, the Supreme Court said. But when it comes to libel the court did ...

Review: HyperLink is a great, inexpensive steel bracelet for the Apple Watch
Apple's own stainless steel link bracelet is too expensive for many of us to consider. HyperLink, however, is a less expensive alternative that ...

Apple's 'audio hyperlink' tech can control devices with inaudible sonic pulses
An Apple patent filing published by the U.S. Patent and Trademark Office on Thursday describes a method of encoding hyperlinks into an audio ...

Patent troll sending out invoices for image hyperlinks
A company named Vuestar thinks everyone who links images to pages on the Web …

How Effective Hyperlinks Can Help Your Blog
... link text explain exactly where the link is leading you or does it say something generic like click here ? When I saw Writing Effective Hyperlinks ...

Gmail's Shortcut for Inserting Hyperlinks
... doesn't mean Google shouldn't improve them. Many people complained that Gmail's rich text editor doesn't have a shortcut for inserting hyperlinks ...

Scientology loss keeps hyperlinks legal
The Church of Scientology loses a courtroom battle to compel a Dutch writer and her ISP to remove postings from a Web site, in a ruling that ...

Resources last updated: 12/8/2015 4:50:33 AM