Solved

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

Posted on 2011-02-14
5
1,784 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now