Symptoms
-
Adding a subdomain or accessing virtual directories on Plesk for Windows fails with one of the following errors:
# C:Inetpubvhostsexample.comsubdomainsconhttpdocs: contains reserved device names that cannot be used as the name of a file
filemng failed: The filename, directory name, or volume label syntax is incorrect. (Error code 123) at C:Inetpubvhostsexample.comhttpdocsCOM7.file: contains reserved device names that cannot be used as the name of a file.
Cause
The path to be created or accessed contains reserved Windows OS names such as CON
or NUL
.
Resolution
-
Connect to the server using RDP.
-
Find the folder/file from the error message and rename it from
con
ornul
to something likesub_con
. e.g:-
Before:
C:Inetpubvhostsexample.comsubdomainsconhttpdocs
-
After:
C:Inetpubvhostsexample.comsubdomainssub_conhttpdocs
-