?
Solved

ASPPDF works in one site, not in other site hosted in same server

Posted on 2011-02-15
7
Medium Priority
?
1,352 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.  We have two different web sites that are using this ActiveX Control. These two web sites are running in Client Production Server for past 5 years.

Client have two mirrored IIS production Servers, both have hosted these two sites.

When we recently updated one of the website in Client Production, a strange isssue happened!
The site that I updated in Production (say Site1) is working with ASPPDF perfectly. But the other site (say Site2) which is hosted on the same server that is using ASPPDF, crashes on Print to ASPPDF.

Site 1 is working in Server 1, but crashes in Server 2
Site 1 is crashes in Server 1, but working in Server 2
Both have the same version of source codes.

Error Message:-  Object reference not set to an instance of an object

Previously whenever this crash occurs the reinstallation of ASPPDF will fix this crash - which means this crash is due to something wrong happens with the registration of this ActiveX Control.

I tried re-install ASPPDF - Not helped this time!

I hope this is clear.
Could you please give me some idea, how to fix it ;(  - Please Urgent

Any help would be highly appreciated
Raj
0
Comment
Question by:Rajkumar Gs
  • 5
  • 2
7 Comments
 
LVL 14

Expert Comment

by:Dhanasekaran Sengodan
ID: 34894901
Try this,

Create two different application pool and map your website 1 and 2  
0
 
LVL 23

Author Comment

by:Rajkumar Gs
ID: 34895192
Thanks for your suggestion, Mani.
Site 1 and Site 2 are already using two different Application Pools.
0
 
LVL 23

Author Comment

by:Rajkumar Gs
ID: 34895572
When I checked in C:\Program Files (x86)\Persists Software folder, there are two ASPPDF versions installed in both servers
Server 1 - v2.0.0.1 & v1.6.0.10
Server2 - v1.3.0.2 & v1.6.0.10

In bin folder of Site1, Interop.ASPPDFLib.dll is there
In bin folder of Site2, Interop.ASPPDFLib.dll and ASPPDF.dll v1.6.0.5 are present.

But I still not understand why the same site works in one server, while not in other server.

Any thoughts ?
Raj
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 14

Assisted Solution

by:Dhanasekaran Sengodan
Dhanasekaran Sengodan earned 1000 total points
ID: 34896406
upgrade Server2 - v1.3.0.2(newer version v2.0.0.1) & v1.6.0.10
0
 
LVL 23

Author Comment

by:Rajkumar Gs
ID: 34898033
Thanks

Finally my assumption is that Server 1 & Server 2 is registered for different versions of ASPPDF.

Site1 which is working in Server1 may be using the version of ASPPDF that is registered on that server.

Need to check on this

Raj
0
 
LVL 23

Accepted Solution

by:
Rajkumar Gs earned 0 total points
ID: 34904054
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: 34936641
I have mentioned the steps how I fixed this issue in my previous comment. - which includes two steps.

Mani's comment have a clue on one of the steps - So giving you some points.

Thanks
Raj
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

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…
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…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month16 days, 2 hours left to enroll

850 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