win32 error 5

support
win32 error 5 Karin Wolters  2016-09-02 06:30
 
Hi Brendan,

we just installed Skyline on one of our PC's, but when our student tried to follow the steps in the tutorials (trying to load the rat-proteome raw-files) she repeatedly got the error-message ('win32 error 5" -> see attached screenshot).

I also tried to open a shared Skyline-file (with measurements loaded into it) that is running fine on another PC, but got the same error-message while loading it on this PC.

Not sure what we can do about this, hope you can help us out

Karin Wolters
 
 
Brendan MacLean responded:  2016-09-02 08:57
Hi Karin,
Never heard of this one before, but "win32 error 5" appears to be "access denied". It is happening inside GetTempFilename() which should be attempting to create a temporary file in the same folder as the file it is attempting to write. So, I guess this means that the user running the file import does not have access to write files into the folder containing the Skyline document.

This is a terrible way to report this error, of course, and we will look into whether we can produce the same results here by trying to import to a file where we have read access but not write access. Can you tell us what version of Windows Skyline is running on?

Can you also look into this access error? For instance, is the user able to create a new text file using Notepad in the folder containing the Skyline document?

Thanks for your clear report of this issue.

--Brendan
 
Karin Wolters responded:  2016-09-02 09:41
Hi Brendan,

again, thanks for the very quick response!
I am glad I asked, because that would not have been the first place I started looking, but indeed you are right. I cannot save a text-file on the C-drive. So instead I moved the Skyline-files to a different drive on that PC and now it is working without any errors,

Problem quickly resolved and again a happy user, thanks a lot!
Karin Wolters
 
Brendan MacLean responded:  2016-09-02 09:44
Okay. We will definitely look are improving that error message! Glad to hear the problem is resolved for you.
 
Ryan Hill responded:  2016-11-10 12:52
Hi Brendan,

  I see this has come up before, but oddly this same access error started popping up after the update. It doesn't matter if I load to our server (which I used to always do my work on, and have no trouble saving any other files to) or the C drive on the local computer. It pops up between every individual run being loaded into skyline, when you are saving, or when you are opening a file. Oddly, it still loads just fine, and we can eventually still work. We just have to click "OK" twice between every individual sample imported. At this point, it's just an annoyance, but I thought I would bring it to your attention in case you see this issue elsewhere.

 Cheers,

Ryan
 
Brendan MacLean responded:  2016-11-10 15:20
Hi Ryan,
Can you click the More Info button in the message window and then copy and past the detail text into a response on this thread? Just in case it is not exactly the same as the text in the original message.

The original message was definitely related to some kind of permission issue in writing temporary files.

One thing you might try is uninstalling and switching to the Skyline administrator installation and seeing if that changes anything.

https://skyline.ms/skyline-admin64.url

Thanks for taking the time to report this and work through a possible resolution. We appreciate the opportunity to get to understand this issue better, and hopefully solve it.

--Brendan
 
Ryan Hill responded:  2016-11-10 15:50
Hi Brendan,

  Of course reading the error a little bit helps to find the issue :)....

  It appears the template was just still trying to find the library that we don't have on the computer we run the MS from. We always received a message in the past, however, it was always a single message telling you the library is unavailable. After the update, this now appears as this "Win32 Error: 5" message and pops up 3x between every individual sample import, and 2x while saving.

  Not a big deal as I just had to take deselect the library to fix. Well, hopefully this will still be helpful to someone! Thanks for your time!

System.IO.IOException: Win32 Error: 5
   at pwiz.Skyline.Util.FileStreamManager.GetTempFileName(String basePath, String prefix, UInt32 unique) in c:\proj\skyline_3_6_x64\pwiz_tools\Skyline\Util\UtilIO.cs:line 777
   at pwiz.Skyline.Util.FileSaver..ctor(String fileName, IStreamManager streamManager, Boolean createStream) in c:\proj\skyline_3_6_x64\pwiz_tools\Skyline\Util\UtilIO.cs:line 1075
   at pwiz.Skyline.Model.Lib.NistLibraryBase.CreateCache(ILoadMonitor loader, IProgressStatus status, Int32 percent) in c:\proj\skyline_3_6_x64\pwiz_tools\Skyline\Model\Lib\NistLibSpec.cs:line 777
   at pwiz.Skyline.Model.Lib.NistLibraryBase.Load(ILoadMonitor loader, IProgressStatus status, Boolean cached) in c:\proj\skyline_3_6_x64\pwiz_tools\Skyline\Model\Lib\NistLibSpec.cs:line 631
 
Brendan MacLean responded:  2016-11-10 16:03
Thanks, Ryan. That is pretty strange. I will try to have a look if I can reproduce the issue.

Thanks for the extra information.
 
hctseng responded:  2018-01-30 09:40
I got the same error message recently. Not sure how to resolve it.

System.IO.IOException: Win32 Error: 5
   at pwiz.Skyline.Util.FileStreamManager.GetTempFileName(String basePath, String prefix, UInt32 unique) in c:\proj\skyline_4_1_x64\pwiz_tools\Skyline\Util\UtilIO.cs:line 776
   at pwiz.Skyline.Model.Lib.XHunterLibrary.CreateCache(ILoadMonitor loader, IProgressStatus status, Int32 percent) in c:\proj\skyline_4_1_x64\pwiz_tools\Skyline\Model\Lib\XHunterSpec.cs:line 388
   at pwiz.Skyline.Model.Lib.XHunterLibrary.Load(ILoadMonitor loader, IProgressStatus status, Boolean cached) in c:\proj\skyline_4_1_x64\pwiz_tools\Skyline\Model\Lib\XHunterSpec.cs:line 555
 
Brendan MacLean responded:  2018-01-30 11:19
Maybe try what Ryan suggested? Look for an X! Hunter (i.e. GPM) library that no longer exists or is no longer accessible, like on a disconnected network drive? You can check your library availability by clicking Edit List next to the list of libraries, and then editing each library individually. Anything that is no longer available should get red colored text in the Edit Library form.

Sorry, the error message is still so unhelpful. We will try to improve it!

--Brendan