Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-02-14
5
Medium Priority
?
1,839 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

772 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