使用映射的网络驱动器共享Sharepoint SiteAssets [英] Sharing Sharepoint SiteAssets using mapped network drive

查看:143
本文介绍了使用映射的网络驱动器共享Sharepoint SiteAssets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I have Sharepoint site "SPSite" on server A, on server B I mapped drive to SiteAssets of SPSite.

我在服务器B上有另一个基于ASP.Net的网站,我想使用通过映射驱动器共享的SPSite映像.因此,我将映射的SiteAssets文件夹配置为IIS上ASP.Net网站的虚拟目录.

I have an-other ASP.Net based web site on server B and I want to use images of SPSite i shared through mapped drive. So I configured mapped SiteAssets folder as Virtual Directory on IIS for ASP.Net web site.

我无权通过我的ASP.Net网站访问文件夹SiteAssets的内容,正在寻找解决方案,该如何配置该文件夹.

I do not have access to contents of folder SiteAssets throught my ASP.Net web site, looking for solution how can I configure the folder.

我不确定是否为该任务选择了正确的方法,如果您可以提出建议,我可以考虑一下.

I'm not sure if I choose the right method for this task, if you can advise some alternative I can think about that.

推荐答案

您好,Irfan,

Hi Irfan,

尝试编写标准的C#IO代码以访问映射驱动器的目录和文件:

Try to write standard C# IO code to access the directory and files of mapped drive:

var allDirs = Directory.GetDirectories("\\\\<storageaccountname>.file.core.windows.net\\<storagefileshare>");
ViewBag.Items = allDirs;

详细信息请参见下面的类似文章:

Detailed information refer to the similar post below:

https://stackoverflow.com /questions/35412669/access-mapped-drive-by-iis-running-asp-net-mvc-web-application

此外,作为一种解决方法,我们可以使用Rest API访问SharePoint库.

Besides, as a workaround, we can use Rest API to access the SharePoint library.

最诚挚的问候,

王race(Grace Wang)

Grace Wang


这篇关于使用映射的网络驱动器共享Sharepoint SiteAssets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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