ASP .NET Troubleshooting

[Top]  [Chapter]  [Previous]  [Next]

1) The PDF creation will not run on a server if the debug mode was activated. The debugmode created EMF files during the creation of a PDF and will not work on a webserver due to write restrictions.

So please disable   wpdllint1.DebugPath = Server.MapPath(".");

 

2) If the webserver creates a message that a DLL could not be loaded, please check the 32 bit vs 64 bit mode. If your program was compiled for 32 bit, you need to create an "Application Pool", enable 32bit in its extended properties and assign that pool to your web application (which must be also added) in the IIS manager.

 

3) The license file cannot be loaded from C:\Windows. Please use a different path for the license file which is not in the www root, i.e.  wpdllint1.SetLicense("@FILE@" + password, "C:\\License\\rtflic.dat", 0);

Please make sure the the user IIS_IUSRS have read access to the directory, otherwise the license file cannot be read.

 

4) The program works locally, but not on the webserver. Please check

 a) read access of IIS_IUSRS to the license file (see 4.)

 b) 32 bit mode enabled for application pool

 c) web server uses same or higher .NET framework version.

 d) The asp DLLs must be in subfolder /bin

 e) the RTF2PDF or PDFControl DLLs were also copied

 

Visual Studio starts a special webserver for debuging.

This webserver takes it much easier with access rights. You can enable IIS usage in the debugging options.

 

 

 

 

 

 

 


[asp__net_troubleshooting.htm]    Copyright © 2007 by WPCubed GmbH