?
Solved

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

Posted on 2011-02-15
7
Medium Priority
?
1,328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

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…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 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