Page 1 of 1

Winbox: could not create file

Posted: Tue Oct 21, 2014 10:51 am
by gnulab
Hi,

I tried logging into Mikrotik via Winbox v3.0b3. It gives me error message ERROR: Could not create file.

I've tried running it as Administrator and it still comes out with that error message.

I've tried googling for this problem, no answer comes up. What is missing?


Thank you
Henry

Re: Winbox: could not create file

Posted: Thu Apr 09, 2015 3:31 pm
by emil31
Hello,

I have the same error with winbox 3.0beta3 and 3.0rc6, the version of routeuros is 5.25.

Thank You.

Posted: Tue Apr 14, 2015 8:03 am
by jarda
Use winbox 2.x instead of the unstable v. 3

Re: Winbox: could not create file

Posted: Sun Aug 30, 2015 11:02 pm
by brainz
Since you try running as administrator and your OS still stops winbox from creating file then I guess you have install another OS

Re: Winbox: could not create file

Posted: Mon Aug 31, 2015 11:23 am
by normis
don't use BETA

use RC which is much better

This one http://download2.mikrotik.com/routeros/ ... winbox.exe

Re: Winbox: could not create file

Posted: Fri Jun 03, 2016 10:08 am
by mirbo
any body can solve this issue .???
i have this issue , please help me .

Re: Winbox: could not create file

Posted: Fri Jun 03, 2016 11:55 am
by normis
any body can solve this issue .???
i have this issue , please help me .
This topic is pretty old. What kind of issue do you have and what Winbox version are you using ?

Re: Winbox: could not create file

Posted: Fri Jun 03, 2016 3:02 pm
by mirbo
i resolve it
i have Kasper end point
and i stop this service and i can connect to router board

Re: Winbox: could not create file

Posted: Mon May 15, 2017 10:37 pm
by fbenavides
Every time happen this problem i have to reinstall all the SO of my windows OS
I check with all the version of winbox 3.X
ERROR: Could not create file.

can you tell me how can i resolve this..?

Re: Winbox: could not create file

Posted: Fri Dec 15, 2017 5:04 am
by amelec2
I could resolve the problem executing winbox.exe as administrator.
:D

Re: Winbox: could not create file

Posted: Tue Jan 23, 2018 8:58 pm
by WirtelPL
ERROR: Could not create file.

can you tell me how can i resolve this..?

Check your antivirus settings -> ransomware protection. Maybe it blocks access to folders when WinBox create files.
WinBox must have access to folder:
c:\users\USERNAME\appdata\roaming\mikrotik\winbox\6.41-3395350936

(WinBox: 3.11, ROS: 6.41 current)

Re: Winbox: could not create file

Posted: Fri Mar 16, 2018 10:27 am
by STEPHANVS
ERROR: Could not create file.

can you tell me how can i resolve this..?

Check your antivirus settings -> ransomware protection. Maybe it blocks access to folders when WinBox create files.
WinBox must have access to folder:
c:\users\USERNAME\appdata\roaming\mikrotik\winbox\6.41-3395350936

(WinBox: 3.11, ROS: 6.41 current)
Had this problem today. My windows profile was once corrupt, and was located to C:\Users\TEMP. Though I solved the issue back then, this setting was still present today in several registry entries.
Winbox tried to access c:\users\TEMP\appdata\roaming\mikrotik\winbox unsuccessfully. Once the registry entries were fixed, Winbox was able to save the current configuration to the proper profile folder without admin rights.

Re: Winbox: could not create file

Posted: Fri Jun 15, 2018 7:08 pm
by lindend
Had this problem today. My windows profile was once corrupt, and was located to C:\Users\TEMP. Though I solved the issue back then, this setting was still present today in several registry entries.
Winbox tried to access c:\users\TEMP\appdata\roaming\mikrotik\winbox unsuccessfully. Once the registry entries were fixed, Winbox was able to save the current configuration to the proper profile folder without admin rights.
Just ran into this problem. After an Win 10 update, I got some profile errors logging in. Rebooted and everything was restored to normal except Winbox complains that it can't create a file.

If I run as an administrator, the program works. I'd rather not have to run as an admin. Do you remember what registry keys needed to be updated? I searched the registry and couldn't find any appdata registry related errors.

Also, is there any way to complete reset Winbox so its settings are cleared?

Re: Winbox: could not create file

Posted: Sat Jul 14, 2018 11:28 am
by Stream
Just ran into this problem. After an Win 10 update, I got some profile errors logging in. Rebooted and everything was restored to normal except Winbox complains that it can't create a file.

If I run as an administrator, the program works. I'd rather not have to run as an admin. Do you remember what registry keys needed to be updated? I searched the registry and couldn't find any appdata registry related errors.

Also, is there any way to complete reset Winbox so its settings are cleared?
Hello. Winbox 3.16 create session files inside "C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Mikrotik\Winbox".
In my case, after happened user profile corruption, MS Windows removed "C:\Windows\System32\config\systemprofile\Desktop" directory.
I just created Desktop folder and setup full access permission for me and system user.

Re: Winbox: could not create file

Posted: Sat Nov 28, 2020 10:17 am
by xeonforcecz
When problem with sessions then do not detele anything.

Just open the folder %appdata%\Mikrotik\Winbox and there you can see file "sessionpath". Open that with text editor and edit the path to correct one.

Re: Winbox: could not create file

Posted: Thu Dec 31, 2020 12:17 am
by MarcusH
Just ran into that problem as well. This happened because I changed the my home directory on Windows. Apparently the Winbox app accesses the following registry entry to check for the location of the session folder:

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData

The AppData folder still had the old home directory stored. Worked without rebooting, just restart Winbox.

For the interested, I figured it out by using the Sysinternals Process Monitor from Microsoft.
https://docs.microsoft.com/en-us/sysint ... ds/procmon

I hope this helps someone.

Re: Winbox: could not create file

Posted: Sun May 16, 2021 4:00 am
by Helix751
Thank you! This actually solved my cAP ac issue and also a previous problem in my current Windows installation due to messed up paths in the Shell Folders keys in registry (after, too, changing User folders locations). Glad I came up with this thread.

Re: Winbox: could not create file

Posted: Thu Oct 14, 2021 1:30 am
by Montecri
Just ran into that problem as well. This happened because I changed the my home directory on Windows. Apparently the Winbox app accesses the following registry entry to check for the location of the session folder:

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData

The AppData folder still had the old home directory stored. Worked without rebooting, just restart Winbox.

For the interested, I figured it out by using the Sysinternals Process Monitor from Microsoft.
https://docs.microsoft.com/en-us/sysint ... ds/procmon

I hope this helps someone.
Thank you, man! Had the exact same issue here and your post solved it!!

Hope the Winbox developers notice that and fix the code to seek an alternate method of saving the config file in cases like this.

Regards,

- Cristiano