“Invalid Filename” Error Message
The information in this article applies to:
Microsoft Windows NT 4.0 or Microsoft Windows 2000.
Symptoms
When running a purepage script from Windows NT or Windows 2000, you may
receive this error message or the GetLastPrintedJob function may return “none”. 
This error is more commonly seen when using purepage from Active Server Pages
(ASP) or Cold Fusion however it may happen from other scripting and/or
programming languages that you are using purepage from.
Cause
This problem is most commonly caused by file and folder security settings but
may also be caused by trial expiry or incorrectly setting the filename.
Solution
1) If you are using purepage version 2.8 or earlier you should upgrade to the
latest version.  There was a bug that prevented users from being warned when
the trial period had expired instead, purepage caused this error message to be
shown.
2) Check that the path and filename that you are passing to purepage’s PrintFiles
function is correct.  For example, you should always specify the full path to the
file e.g. PPServer.PrintFiles 0, “c:\webserver\uploaded\test.doc” & vbCrLf, 1
3) Make sure you have added the carriage return + line feed characters to the
end of the filename (see 2 above).
4) Make sure that the folder that you are trying to print the files from (using the
PrintFiles function) has the correct security settings to allow the user running the
script to open and print the file.  The easiest way to do this when using ASP or
Cold Fusion is to add the “Everyone” group to the folder users and give them “Full
Control”.  For security reasons, you should probably create a separate folder to
house the files you wish to print using purepage.
5) You usually need to make sure you have installed the software that is capable
of viewing and printing the file type you are trying to convert into HTML.  For
example, if you are trying to convert Microsoft Word files to HTML then you will
need to have the full version of Microsoft Word installed on the system – the
Word viewer will not work, however other third party viewing software may work.
6) If you are using ASP or Cold Fusion, the registry and file permissions need to
set up so that the web user can ask purepage to print files using the PrintFiles
function.  To do this, follow these steps:
1
- Make sure you are logged on as an Administrator.
2
- The web user will need full access to the registry branch that Purepage
uses:
 
Open Regedt32.exe.
Open (and select) the branch
HKEY_LOCAL_MACHINE\SOFTWARE\Inzone Software\ClickToConvert2\
From the Security
menu, select Permissions
In the permissions window that appears, add
Everyone to the list of
named users and give them Full Control.
Select the branch HKEY_LOCAL_MACHINE
\SOFTWARE
\Inzone
Software\
From the Security
menu, select Permissions
In the permissions window that appears, add
Everyone to the list of
named users and give them Full Control.
3
- Open Windows Explorer and navigate to the folder that PurePage is
installed in (usually C:\Program Files\PurePage\).
  For this folder and every
file and folder underneath it you need to make sure that the Everyone group
has
Full Control permissions.  To do this (for each folder or file):
Right click on the folder or file and select Properties from the pop up
menu.
In the Security tab, add Everyone to the list of named users and
give them Full Control.
In Windows 2000, make sure that
Allow inheritable permissions
from parent to propagate to this object is checked
this will stop
you from having to follow this procedure for every file and folder.
7) Reboot your server.  This step is required because some permissions do not
work until after Windows has been restarted.
http://www.purepage.com