I am using aspose.words to insert text into bookmarks in a word document and everything works great on development side, but once i deploy to an iis server, I receive Class not registered error when the aspose.word event starts.
Now I do not get the exception, the page just freezes once it is published to iis. It works flawlessly in visual studio when debugging from either my local machine or if I load it in visual studio from the web server.
Thank you for additional information. I am not sure that this problem is related to Aspose.Words. Could you please remove all code related to Aspose.Words and publish your application.
Also there is no any difference from where you add reference to Aspose.Words dll.
It is definitely related to aspose.words, this web app has been running without it, using office automation. Commented out aspose.words part and it runs fine. Does aspose have to be installed on development pc and also and web server?
You do no need to have Aspose.Words installed on the server. All that you need is reference to Aspose.Words dll. Could you please check Bin folder of your application, there should be Aspose.Words dll.
Could you please provide some more information.
What OS is installed on the server, What version of IIS is used. And please copy here the entire error “Class not registered” from the event log. We try to give you advice on this problem.
Hi,
Rebuilt server and published asp.net page with same result. Just loads and loads and doesn’t print the document. No errors, just load forever. It does another process before which inserts a record in a database for each record processed which works on the first record. This happens before the aspose call so at the aspose call it is freezing.
Unfortunately, I still can not reproduce the problem on my side. But I have a suspicion that the problem with the printer by default.
Could you create a test console application and run this code.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("Test printing");
doc.Print();
If the document does not print, then please check the your printer, which is configured on the server by default.
Thank you for additional information. If problem occurs only upon printing, then I think it is not a problem in Aspose.Words. Probably the problem is more general.
Please make sure that you can print in server environment. You can try using the following code for testing. This code does not use Aspose.Words at all. So if it will not work, the problem is somewhere on your side.
PrintDocument doc = new PrintDocument();
doc.PrinterSettings.PrinterName = @"\\192.168.0.2\hp LaserJet 1010 Series Driver";
doc.PrintPage += Doc\_PrintPage;
doc.Print();
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.