Solved

ASPPDF Crash - Object reference not set to an instance of an object

Posted on 2011-02-14
5
1,811 Views
Last Modified: 2012-05-11
We are using 3rd Party ActiveX Control - ASPPDF - www.asppdf.com - to print to PDF from our ASP.Net web site.

Same server is running two different sites - both are using ASPPDF.
Our issue is that one site's print to PDF functionality is working perfectly.
But the second site's print to PDF functionality is crashing
Object reference not set to an instance of an object

Both sites are different projects. I tried reinstall ASPPDF setup, restarting IIS - Not solved this issue.

Could you please help - how could I solve this issue ?

Any help would be highly appreciated
Raj
0
Comment
Question by:Rajkumar Gs
  • 4
5 Comments
 
LVL 3

Expert Comment

by:chandra_darbha
ID: 34894265
Could you please post some code? The information you gave is too less to draw any conclusions.

Thanks,
Chandra
0
 
LVL 23

Author Comment

by:Rajkumar Gs
ID: 34894295
There is nothing wrong with coding, Chandra.

I will give more details
We have two Servers - Server1 and Server2  - In both servers we have hosted the two sites that is using ASPPDF ActiveX Control.

Fun is that Site1 is working in Server1, while NOT working in Server2
Site2 is NOT working in Server1, while working in Server2

So I a wondering, if it is registration issue of ActiveX control, why one of the site is working with ASPPDF in the same server, while second site is crashing with ASPPDF in the same server
0
 
LVL 23

Author Comment

by:Rajkumar Gs
ID: 34904310
I have solved this issue. I noticed that in Google Search Results this question has come on top!
The question that I posted newly is not listed over there.
I know that this question has the error message as title.

I feel, this would help anyother who is search for the same with the error message
0
 
LVL 23

Accepted Solution

by:
Rajkumar Gs earned 0 total points
ID: 34904314
This issue is SOLVED !!!!

Server 1 was installed with ASPPDF New Version, Server 2 was installed with ASPPDF Old Version
Site 1 was using Latest Version in it bin folder, while Site 2 was using Old Version in its bin folder

Now I think you got the issue - and how it got solved.

Solution:-
----------
1. Installed latest version of ASPPDF in Server 2.
2. In Server1 & Server2, copied the ASPPDF DLL (Interop.ASPPDF.dll) from Working Site1's bin folder to Crashing Site2's bin folder
3. Restarted IIS Admin Service in both Servers.

So now both Servers have latest Version of ASPPDF and both Sites are using latest DLL in their bin folders

So now this issue is SOLVED !!!!!
0
 
LVL 23

Author Closing Comment

by:Rajkumar Gs
ID: 34936643
I am sure, this will help someothers who is searching in Google OR Experts-Exchange with the error message.

So I am posting the solution that worked for me.

Raj
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question