Link to home
Create AccountLog in
Avatar of Rajkumar Gs
Rajkumar GsFlag for India

asked on

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

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
Avatar of Dhanasekaran Sengodan
Dhanasekaran Sengodan
Flag of India image

Try this,

Create two different application pool and map your website 1 and 2  
Avatar of Rajkumar Gs

ASKER

Thanks for your suggestion, Mani.
Site 1 and Site 2 are already using two different Application Pools.
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
SOLUTION
Avatar of Dhanasekaran Sengodan
Dhanasekaran Sengodan
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
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
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
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