Solved

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

Posted on 2011-02-15
7
1,317 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 14

Assisted Solution

by:Dhanasekaran Sengodan
Dhanasekaran Sengodan earned 250 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

There is a huge demand for CodeIgniter among the PHP web developers due to its dynamic features and benefits these days. It is one of most popular and agile open source PHP framework for creating robust web applications in PHP web development field.…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

726 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