Forum  Commercial Foru...  Commercial Foru...  Link Open network file
Previous Previous
 
Next Next
New Post 1/22/2012 4:53 PM
Unresolved
  scottb1978
7 posts
No Ranking


Link Open network file 

I have tried every which way and cannot get Link.Open to open a network file system location.

If I manually enter the following into a browser:
    \\loc.something.com.au\datashare\path\to\file\515_message.html

It works and shows the file contents to me, as does:
    file:\\loc.something.com.au\datashare\path\to\file\515_message.html

But when I try to use File.Open it considers both of these to be a relative link and prepends it with the current path causing something like this.
    http://localhost:234/file:\\loc.something.com.au\datashare\path\to\file\515_message.html

File.Open with www.google.com works as expected but always fails with the NFS.

I'm getting desparate, can anyone please help me get a simple link working here. I don't want to give the web server user permissions to the network file system so downloading & streaming the file to the client isn't an option.

Thanks,
Scott.

 

 
New Post 1/23/2012 12:07 PM
  palli
11824 posts
1st Level Poster




Re: Link Open network file 

Hi Scott,

This is a known limitation with an open tracker entry having a workaround suggestion for you. Please view it here and follow up on our progress.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 1/30/2012 4:59 PM
  scottb1978
7 posts
No Ranking


Re: Link Open network file 

Thank you.

This works correctly on the dev environment but I get strange behaviour after I deploy to a server:

  • IE8 - Works correctly
  • Firefox9 - Does nothing
  • Chrome - Opens an empty browser window but doesn't load the files

I've turned off all the popup blocking but nothing seems to fix it for the other browsers.

Any suggestions :)

 
New Post 1/30/2012 6:30 PM
  scottb1978
7 posts
No Ranking


Re: Link Open network file 

This is the error I see in FireBug for Firefox...

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://myurl.com.au/Route/2.80.2.1/moz/en-US/Office2010/1/Resources.Browser.Form.js.wgx :: <TOP_LEVEL> :: line 3090"  data: no]
http://myurl.com.au/Route/2.80.2.1/moz/en-US/Office2010/1/Resources.Browser.Form.js.wgx
Line 3090

 
New Post 1/31/2012 12:15 PM
  palli
11824 posts
1st Level Poster




Re: Link Open network file 

Hi Scott,

This is some kind of browser security issue that you have hit here, and despite repeated attempts, I wasn't able to find any solution. There are multiple reports of this problem that I noticed during my Googling, but no definite solution.

Visual WebGui does actually play no role in this problem, and you should test this and try finding a workaround by not going through Visual WebGui for starters, so you can concentrate on the problem at hand. You can do this for instance by placing an HtmlBox inside your Visual WebGui form, and then set it's contents using the following:

this.htmlBox1.Html = "<a href=\"\" onclick=\"window.open('file://YourDNS/YourShare/YourFile.txt');return false;\">Open File</a>";
 

You can also create an Html page within your project, bypassing Visual WebGui altogether and placing the following inside the body:

<a href="" onclick="window.open('file://YourDNS/YourShare/YourFile.txt');return false;">Open File</a>
 

Both of these tests failed in my environment.

I will ask around if someone knows how to work around this in JavaScript and if I do, I will post my results here.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Link Open network file
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS