Community discussions

MikroTik App
 
User avatar
gnulab
newbie
Topic Author
Posts: 27
Joined: Sun Aug 31, 2014 10:27 pm
Location: Jakarta, Indonesia

Winbox: could not create file

Tue Oct 21, 2014 10:51 am

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
 
emil31
just joined
Posts: 2
Joined: Thu Apr 09, 2015 3:26 pm

Re: Winbox: could not create file

Thu Apr 09, 2015 3:31 pm

Hello,

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

Thank You.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Tue Apr 14, 2015 8:03 am

Use winbox 2.x instead of the unstable v. 3
 
brainz
just joined
Posts: 4
Joined: Wed Jul 08, 2015 2:46 pm

Re: Winbox: could not create file

Sun Aug 30, 2015 11:02 pm

Since you try running as administrator and your OS still stops winbox from creating file then I guess you have install another OS
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26318
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Winbox: could not create file

Mon Aug 31, 2015 11:23 am

don't use BETA

use RC which is much better

This one http://download2.mikrotik.com/routeros/ ... winbox.exe
 
mirbo
just joined
Posts: 7
Joined: Thu Jun 02, 2016 12:53 pm

Re: Winbox: could not create file

Fri Jun 03, 2016 10:08 am

any body can solve this issue .???
i have this issue , please help me .
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26318
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Winbox: could not create file

Fri Jun 03, 2016 11:55 am

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 ?
 
mirbo
just joined
Posts: 7
Joined: Thu Jun 02, 2016 12:53 pm

Re: Winbox: could not create file

Fri Jun 03, 2016 3:02 pm

i resolve it
i have Kasper end point
and i stop this service and i can connect to router board
 
fbenavides
just joined
Posts: 5
Joined: Mon May 15, 2017 10:34 pm

Re: Winbox: could not create file

Mon May 15, 2017 10:37 pm

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..?
 
amelec2
just joined
Posts: 1
Joined: Fri Dec 15, 2017 4:58 am

Re: Winbox: could not create file

Fri Dec 15, 2017 5:04 am

I could resolve the problem executing winbox.exe as administrator.
:D
 
User avatar
WirtelPL
newbie
Posts: 34
Joined: Sat Nov 11, 2017 11:22 am
Location: Poland

Re: Winbox: could not create file

Tue Jan 23, 2018 8:58 pm

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)
 
STEPHANVS
just joined
Posts: 8
Joined: Wed Mar 29, 2017 12:16 pm

Re: Winbox: could not create file

Fri Mar 16, 2018 10:27 am

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.
 
lindend
just joined
Posts: 19
Joined: Thu Jan 08, 2015 4:24 am

Re: Winbox: could not create file

Fri Jun 15, 2018 7:08 pm

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?
 
Stream
just joined
Posts: 5
Joined: Tue May 03, 2016 1:53 am

Re: Winbox: could not create file

Sat Jul 14, 2018 11:28 am

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.
 
xeonforcecz
just joined
Posts: 4
Joined: Tue Jul 16, 2019 1:16 pm

Re: Winbox: could not create file

Sat Nov 28, 2020 10:17 am

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.
 
MarcusH
just joined
Posts: 16
Joined: Thu Aug 02, 2012 11:06 am

Re: Winbox: could not create file

Thu Dec 31, 2020 12:17 am

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.
 
Helix751
just joined
Posts: 4
Joined: Sun May 16, 2021 3:56 am

Re: Winbox: could not create file

Sun May 16, 2021 4:00 am

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.
 
Montecri
just joined
Posts: 2
Joined: Mon Jun 14, 2021 3:47 am

Re: Winbox: could not create file

Thu Oct 14, 2021 1:30 am

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

Who is online

Users browsing this forum: 4l4R1, mogiretony and 94 guests