Free Support Forum - aspose.com

Page won't stop loading

When trying to view our deployed application the page that is calling the license won’t stop loading. Since is not giving me any error from our development environment I can not point to the source of the problem. The application works great when I run it from the localhost of our deployment Server.

If I comment out the code below then the application works fine but I get the Aspose water marks in the document.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Aspose.Word.License license = new Aspose.Word.License();

license.SetLicense(ServerPath+ConfigurationSettings.AppSettings["Aspose.Word.LicenseFile"]);

Aspose.Pdf.License pLicense = new Aspose.Pdf.License();

pLicense.SetLicense(ServerPath+ConfigurationSettings.AppSettings["Aspose.Word.LicenseFile"]);

Thank you for your help.

Mauricio

Hard to say what’s wrong straight away.

Make sure you let exceptions propagate and error messages displayed fully to the user just to see maybe the call to SetLicense throws an exception but you don’t see it. If there is an exception and we get the error message it might be easier to pinpoint the problem.

Double check your paths to the license files, check your aspnet account has enough permissions to open them.