开发者

How to use XDocument.load / save methods on a password protected network drive?

开发者 https://www.devze.com 2022-12-25 17:06 出处:网络
I\'m wondering what the best way is to use the XDocument.load and save methods on files located on a password protected netshare. I\'m building an asp.net mvc applicat开发者_如何学Cion.

I'm wondering what the best way is to use the XDocument.load and save methods on files located on a password protected netshare. I'm building an asp.net mvc applicat开发者_如何学Cion.


  1. You need to provide the correct permissions to the process that is running your asp.net code eg your app pool.

  2. You can use impersonation in an Extranet environment so that the thread runs as the user connecting to the asp.net page.

  3. You can temporarily elevate permissions on the thread that opens the file.

0

精彩评论

暂无评论...
验证码 换一张
取 消