在新选项卡中打开网络共享文件夹 [英] Open a network shared folder in the new tab

查看:159
本文介绍了在新选项卡中打开网络共享文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在尝试使用asp.net的href在浏览器的新标签页上打开共享网络文件夹,但收到错误。

这个我正在做的事情是:




如果我从运行提示符(\\\\10.0.10.89\UniServices)尝试它,它可以正常工作但不在浏览器中。还设置了权限。

这是我收到的错误消息。



Hi All
I am trying to use href of asp.net to open a shared network folder on the new tab on the browser but getting an error.
This is what I am actually doing:


If i try it from the run prompt(\\10.0.10.89\UniServices) it works fine but not in the browser . Have also set the permission.
This is the error message that I am getting.

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.





感谢高级。



Thanks in Advanced.

推荐答案

请参阅我对答案的评论。您想知道始终有效的解决方法吗?您需要在提供文件的计算机上运行HTTP和/或FTP服务器。然后,您可以统一访问http://10.0.10.89/UniServices或ftp://10.0.10.89/UniServices等文件,这与使用WWW完全相同。这样的服务器或服务器可以非常轻量级,并且消耗不成比例的系统资源(内存,CPU时间和流量),而不仅仅是文件共享服务。如果切换到此类体系结构,则可以使用与Internet相同的所有Web技术。顺便说一句,这是Intranet背后的一个完整理念。只是局域网中的文件共享还没有内联网。请参阅: http://en.wikipedia.org/wiki/Intranet [ ^ ]。



真的,如果你想要的话拥有Intranet,依靠Windows文件共享服务是不切实际的,因为这是极其有限的技术。你甚至有问题(即使它很容易解决)这一事实清楚地表明了这一点。如果您使用浏览器而不是文件管理器,则需要HTTP和/或FTP。我记得这种分享很受欢迎的时候,因为人们还没有掌握Web和TCP / IP。我的方式,在Intranet中,您也可以自由使用基于TCP的自定义服务。另一个论点如果使用* NIX机器可以使用SMB协议(Samba),这与文件共享本身一样有限,但是与TCP / IP和应用程序级HTTP或FTP的所有连接都将与操作系统无关,因为所有这些协议独立于系统。



您也可以在Intranet中使用本地DNS。然后你就可以使用你当地的域名了。



-SA
Please see my comments to the answer. Do you want to know the workaround which always works? You need to run an HTTP and/or FTP server on the computers which serves up files. Then you can access the files like "http://10.0.10.89/UniServices" or "ftp://10.0.10.89/UniServices" on a uniform basis, exactly the same way you do it with WWW. Such server, or servers, can be really lightweight and consume insignificant fraction of system resources (memory, CPU time and traffic), no more then with file sharing services. If you switch to such architecture, you can use all the Web technologies of your choice in exact same way is in Internet. This is a whole idea behind Intranet, by the way. Just the LAN with file sharing in not yet the Intranet. Please see: http://en.wikipedia.org/wiki/Intranet[^].

Really, if you want to have Intranet, relying on the Windows file sharing services is just impractical, as this is extremely limiting technology. The mere fact that you even have your problem (even though it is easily resolvable) is a clear indication of that. If you use the browser, not file manager, you need HTTP and/or FTP. I remember the time when such sharing was popular just because people did not yet master Web and TCP/IP. My the way, in Intranet you can freely use custom TCP-based services as well. Another argument if the use of *NIX machine which can use SMB protocol (Samba) which is as limiting as file sharing itself, but with TCP/IP and application-level HTTP or FTP all connection would be OS-agnostic, as all those protocol are system-independent.

Optionally, you can also have your local DNS in your intranet. Then you would be able to use your local domain names.

—SA


这篇关于在新选项卡中打开网络共享文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆