ToastyMallows Posted September 7, 2018 Posted September 7, 2018 (edited) From the File > Open menu, Paint.NET cannot see my mapped network drives in the My Computer list. When I try to right click on a file in this mapped network drive (U:\ drive), I get an error (see PaintNETError.png screenshot). I've also included a picture of how my normal Windows Explorer My Computer looks like, as a comparison. To get around this I have to copy files to any other drive, edit it, save it, and move it back to my network share. Running Paint.NET as Administrator does not fix this problem. EDIT: I should also note that this is not new since upgrading to Paint.NET 4.1, this has occurred since (at least) 4.0.14. Edited September 7, 2018 by ToastyMallows Quote
Rick Brewster Posted September 7, 2018 Posted September 7, 2018 Are other applications able to open the files? Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
ToastyMallows Posted September 8, 2018 Author Posted September 8, 2018 @Rick Brewster yes. This happens with no other programs that I have installed. Quote
Rick Brewster Posted September 8, 2018 Posted September 8, 2018 I'm reaching a bit here, because the path listed in the error screenshot is pretty short, but maybe enabling long paths support will help. My hypothesis being that mapped network drives sometimes are mapped to UNC paths that are actually much longer and... and maybe something deeper in the stack is stumbling over that. See here, but skip to the part where I say "However, good news:" and give instructions on enabling a group policy setting: Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
pmarion Posted September 12, 2018 Posted September 12, 2018 Interesting. I just checked on my Windows 10 workstation with version 4.1.1 (4.101.6828.39058) and it sees my mapped network drives fine. Quote
Rick Brewster Posted September 12, 2018 Posted September 12, 2018 Also, are you using the Classic version or the Windows Store version? If the latter, I'm curious if there's a bug in the sandboxing (done by the OS) Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
ToastyMallows Posted January 21, 2019 Author Posted January 21, 2019 (edited) @Rick Brewster Sorry for the huge delay, completely forgot about posting this! I'm using the Classic version. I tried enabling Win32 long paths, then restarted Paint.NET and my computer, but the problem still persists. I'm now using paint.net 4.1.5 (Final 4.105.6913.325). Edited January 21, 2019 by ToastyMallows forgot version info Quote
Rick Brewster Posted January 22, 2019 Posted January 22, 2019 What about a file that's at the very root of the mapped drive? U:\picture.png for instance? If this works, then the folders may have characters that .NET's FileStream is incapable of dealing with. I'm not sure why that would happen, but logically it seems possible. Other than that, I have no idea. Paint.NET is just using a System.IO.FileStream to open files; if PDN has problems, I'd expect other .NET-based apps to also have trouble. Maybe try using LINQPad to save/load a script on a mapped drive and see what happens. Or you could write a quick C# program or PowerShell script to explore it. The code in Paint.NET is just: Stream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read); (yes, there's a Dispose() call later on of course) My mapped network drives work fine, although they don't reconnect at startup -- I always have to manually double click them in Explorer to get them started. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
ToastyMallows Posted January 22, 2019 Author Posted January 22, 2019 (edited) Yes it's very strange I've never had this issue before in any other program! The problem is that the drive doesn't even show up in the list of available drives from the File > Open menu, so it doesn't matter where the picture is on the mapped drive. (See pictures) This drive is also mapped for me, since this is on a work computer, so I'm not 100% sure exactly how it works. Windows Explorer drive list: Paint.NET drive list from File > Open menu: Edited January 22, 2019 by ToastyMallows picture captions Quote
Rick Brewster Posted January 22, 2019 Posted January 22, 2019 I did a google search for "can't use mapped network drive in app" and ran across https://community.spiceworks.com/topic/2010485-software-does-not-see-mapped-drives The underlying problem may be that Paint.NET is running as a different user than whatever has mapped the driver letter. Or with different permissions. Or something like that. (Also, sometimes "a different user" might not mean what you think ... by user I mean "whatever concept or security primitive that Windows is tripping over when it comes to this problem", not necessarily you or your user account) Some things to try out would be... * can you access the files directly via UNC? e.g. \\server\share\path\file.png * in that link, they show examples of "net use ..." commands. Try those? Unfortunately those mappings seem to go away at logout, but it may help steer you in the right direction This link may be useful too, https://stackoverflow.com/questions/35445241/application-cannot-access-mapped-drive . THey mention a "EnableLinkedConnections" setting. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.