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.
You need to provide the correct permissions to the process that is running your asp.net code eg your app pool.
You can use impersonation in an Extranet environment so that the thread runs as the user connecting to the asp.net page.
You can temporarily elevate permissions on the thread that opens the file.
精彩评论