
Quote from impactband4u on January 2, 2022, 6:22 pmHi guys, I replace my old harddrive with a new one. The project that I build on the old harddrive was working fine, but with the new harddrive it shows an error "Cannot create fileC\Users\???????????\filename.txt" Access is denied when i want to write a file to [PubDir]. Does anyone has this problem before?
Any suggestions please.
Greetings
Hi guys, I replace my old harddrive with a new one. The project that I build on the old harddrive was working fine, but with the new harddrive it shows an error "Cannot create fileC\Users\???????????\filename.txt" Access is denied when i want to write a file to [PubDir]. Does anyone has this problem before?
Any suggestions please.
Greetings

Quote from Ivanes82 on January 2, 2022, 11:52 pm@impactband4u
You can try to run neobook if you are in developer mode or your application as administrator to see if it continues to give that failure.
Luck.
You can try to run neobook if you are in developer mode or your application as administrator to see if it continues to give that failure.
Luck.

Quote from fkapnist on January 3, 2022, 4:17 amI would open the Pub file in notepad. Search and replace all instances of :"C\Users\???????????\" with "C:\[PubDir]\" or whatever the correct full path is for your new hard drive. (It happen to me often when switching USB drives)
I would open the Pub file in notepad. Search and replace all instances of :"C\Users\???????????\" with "C:\[PubDir]\" or whatever the correct full path is for your new hard drive. (It happen to me often when switching USB drives)

Quote from fkapnist on January 3, 2022, 4:29 amDid you re-install Windows with the same Username on the new drive?
the Pub seems not to be able to find [UserName]
Did you re-install Windows with the same Username on the new drive?
the Pub seems not to be able to find [UserName]

Quote from impactband4u on January 3, 2022, 7:12 amHi guys, thank you for your reply.
@Ivanes82: Yes i did run as administrator, but with no luck.
@fkapnist:
I would open the Pub file in notepad. Search and replace all instances of :"C\Users\???????????\" with "C:\[PubDir]\" or whatever the correct full path is for your new hard drive. (It happen to me often when switching USB drives)
I did replace the path with {PubDir] but it still gives me the error. I even rename my computer to the old name, but still nothing!
However, when I put my Pub Folder that was on the Desktop when I created the pub, on C: (C Drive), everything is working fine. It looks like it don't want to write to the desktop for some reason, but when it writes to C Drive direct, it works fine.
I'll still try to figure out why it won't write to desktop
Greetings
Hi guys, thank you for your reply.
@Ivanes82: Yes i did run as administrator, but with no luck.
@fkapnist:
I would open the Pub file in notepad. Search and replace all instances of :"C\Users\???????????\" with "C:\[PubDir]\" or whatever the correct full path is for your new hard drive. (It happen to me often when switching USB drives)
I did replace the path with {PubDir] but it still gives me the error. I even rename my computer to the old name, but still nothing!
However, when I put my Pub Folder that was on the Desktop when I created the pub, on C: (C Drive), everything is working fine. It looks like it don't want to write to the desktop for some reason, but when it writes to C Drive direct, it works fine.
I'll still try to figure out why it won't write to desktop
Greetings

Quote from Ivanes82 on January 3, 2022, 4:58 pmYou can also try by putting the path of the file to put the symbol at the beginning:!!C\Users\???????????\
!


Quote from impactband4u on January 5, 2022, 9:12 amPost a demonstration file of the problem so that we can reproduce it.
Hi Vadim...
Even if I did send a demonstration file it will probably work on your side. I see that when you save a project it save the .pub file with complete path to the files.
Example: If my computer name is "PC1" and i rename my computer to "PC2", i somehow have to rename PC1 to PC2 in my .pub file or else the pictures, script, etc are all missing from the pub. I don't know if i explained it right but for now i moved my project to my C: (C Drive) and it works fine now for now. I will post any other errors if i find it later. Thanks for helping
Greetings
Post a demonstration file of the problem so that we can reproduce it.
Hi Vadim...
Even if I did send a demonstration file it will probably work on your side. I see that when you save a project it save the .pub file with complete path to the files.
Example: If my computer name is "PC1" and i rename my computer to "PC2", i somehow have to rename PC1 to PC2 in my .pub file or else the pictures, script, etc are all missing from the pub. I don't know if i explained it right but for now i moved my project to my C: (C Drive) and it works fine now for now. I will post any other errors if i find it later. Thanks for helping
Greetings

Quote from Vadim on January 5, 2022, 1:47 pm@impactband4u
In order to save a project file (.pub) with relative rather than absolute paths, you can use the command from the App\Archive(Backup).
For VisualNEO Win to be able to write files into the system folders, it must be run with administrator rights.
But if the program can't create a file on the desktop even as an administrator, it is probably because of the settings of Windows itself or an anti-virus program (exclude VisualNEO Win if you use anti-virus).
If you are using Embedded files and the address to them has changed, you must reposition them in the Embedded files.
In order to save a project file (.pub) with relative rather than absolute paths, you can use the command from the App\Archive(Backup).
For VisualNEO Win to be able to write files into the system folders, it must be run with administrator rights.
But if the program can't create a file on the desktop even as an administrator, it is probably because of the settings of Windows itself or an anti-virus program (exclude VisualNEO Win if you use anti-virus).
If you are using Embedded files and the address to them has changed, you must reposition them in the Embedded files.

Quote from impactband4u on January 5, 2022, 8:27 pmBut if the program can't create a file on the desktop even as an administrator, it is probably because of the settings of Windows itself or an anti-virus program (exclude VisualNEO Win if you use anti-virus).
Problem solved!
It was my Avast Antivirus! I disabled it and everything works fine now. This is one to remember
Thanks Vadim : )
But if the program can't create a file on the desktop even as an administrator, it is probably because of the settings of Windows itself or an anti-virus program (exclude VisualNEO Win if you use anti-virus).
Problem solved!
It was my Avast Antivirus! I disabled it and everything works fine now. This is one to remember
Thanks Vadim : )