Solved

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

777 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