Help - Access denied on new HDD - Forum

Forum Navigation
You need to log in to create posts and topics.

Help - Access denied on new HDD

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

@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.

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)

Did you re-install Windows with the same Username on the new drive?

the Pub seems not to be able to find [UserName]

 

 

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

 

 

You can also try by putting the path of the file to put the symbol at the beginning:
! 

!C\Users\???????????\

@impactband4u

Post a demonstration file of the problem so that we can reproduce it.

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

@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.

impactband4u and rcohen have reacted to this post.
impactband4urcohen

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 : )

luishp and Vadim have reacted to this post.
luishpVadim