What is the best way to access remote filestore in ITHit webdav

雨燕双飞 提交于 2019-12-11 04:15:29

问题


I am in the middle of implementing a WebDAV server using the ITHit WebDAV engine for .net. The server is a httplistener running as a windows service so using Mapped drive on the service machine is causing problems as it seems services cannot see mapped drive.

I have had some success with using UNC path but the GetExtendedFileAttrjbutes don't seem to work with UNC path ( I am not really using them either but wondering what else might not work).

So the question is, what is the best way of implementing the server which needs to run as a service and access a remote filestore folder?

Are there any recommendations?

Regards Amar


回答1:


Currently WebDAV server samples with file system back-end provided with IT Hit WebDAV Server Engine for .NET do not support network path. You can use only local path with it. The problem is in storing locks, that are saved in extended attributes or NTFS Alternative Data Streams - they are not supported in case of a network path (at least on Windows).

To keep locks you will need some other storage, such as database, some extra files or any other storage. You will reprogram IFileAsync interface (implemented in DavFile.cs and ExtendedAttributes in file system samples).

We try to keep our sample code as simple as possible, that is why we do not support network path, this will make our sample code more complex. We continue to investigate how we can make a simple and viable implementation in our samples to provide such implementation in future updates.



来源:https://stackoverflow.com/questions/46831414/what-is-the-best-way-to-access-remote-filestore-in-ithit-webdav

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!