简体   繁体   中英

Could not upload file in mapped drive in VB.Net

I have tried several times to upload file remotely in network mapped drive but it raising exception

Could not find a part of the path 'X:\\test\\testing.wav'.

I walk over internet /blog/ microsoft help site. has changed some configuration for get the solution. Finally i am failed.

So, Actually any one around there, who could give me the exact solution??

Regards, Nazmul Hasan

我要说的是,您不能在文件名中使用“。”这可能是一个简单的错字,但您不能在文件名中使用“

Since this works on one machine and not another, you are facing one of two problems.

  1. Permissions on the production box are different than the development/staging box. Verify the user account that hosts your application has read/write access to the target path.
  2. Your production box cannot see the file on that path. This would most likely be an issue with drive mapping. Instead of pointing to "x" point to \\server\\share\\.

I have got the solution. Created a application pool and defined a user for pool which user has full control in shared folder and using UNC path

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM