Solved

Perl ASPX conflict with .Net 1.1 and .Net 2.0

Posted on 2007-03-21
3
302 Views
Last Modified: 2008-01-09
Hello,
I am a systems administrator who can do basic Perl and PHP without much of a problem. I have a website I have to support which interfaces with a third party. This third party only writes in Perl CGI which I am fine with but I didn't build the site I have to support which is in .Net 1.1.

To interface with the 3rd party they were using Perl ASPX from ActiveState to retrieve the cookie and unencrypt the Perl encrypted session information. The same encryption type wasn't decrypting properly in .Net so to get it unencrypted properly they incorporated this Perl ASPX code. This was working just great until .Net 2.0 was installed on the server.  

Now we get this error and the whole site is taken down:

c:\windows\system32\inetsrv> "C:\Perl\bin\plcx.exe"  --asp.net /noconfig @"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\a4256d24\1c72415f\eapcle8l.cmdline"


PerlNET 1.1.0 build 110
Copyright (C) 2001-2003 ActiveState Corp. All rights reserved.
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll: error CS1703: An assembly with the same identity 'mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has already been imported. Try removing one of the duplicate references.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll: (Location of symbol related to previous error)
Stopped with exit code 1
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.


Do to another client requiring .Net 2.0 we cannot uninstall it from the server so that is just not an option. The exact errors messages, and situation can be best found by reading this thread.

http://aspn.activestate.com/ASPN/Mail/Message/perl.net/2861761

At the end of the day the need is to only get the session information from the cookie into .Net so their session can stay intact. the Cypt::Tea encryption just doesn't work the same between .Net and Perl. It looks like the Perl ASPX system uses the GAC (Global Assembly Cache) to read in the libraries it needs and completely ignores the bin directory. (I tried to put the correct version in the bin folder to no avail) So when both versions are on the server and have the same named files in the GAC it wiggs out as shown in the error above.

The server is Window 2003 Standard running IIS 6.0 with the site in it's own application pool away from everything else. If I remove this cookie retrieving code in the footer then whole site works PERFECT so I am very sure this is the problem.

Perl ASPX is not supported or being developed anymore so I am pretty much stuck at this point. I have been working on this for about a week and gotten no where so I am appealing for help. Pleae forgive me if I am overlooking or omitting part of the issue.

I love this site and use it a ton for answers but I have found nothing on this. I am a pretty good admin overall and every question I have posted has stumped everyone so I don't ask unless I have axhausted all my resources (I have bugged everyone I know that might be able to help). Thanks for anything you might be able to suggest.
0
Comment
Question by:2drews
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
tovvenki earned 500 total points
ID: 18763392
Hi,
I don't know how Perl ASPX works but I just tried googling and found the following
http://aspn.activestate.com/ASPN/Mail/Message/perl.net/2898158
http://bugs.activestate.com/show_bug.cgi?id=37390&printable=1&pre=0

I hope that this helps you

Regards
Venki
0
 

Author Comment

by:2drews
ID: 18763647
oh man that second link looks very promising. I put that config file in the following location and the bahavior is still the same. :(

c:\perl\bin
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

In the doc root of the site too.

They don't say where to put it so I am out of ideas on that.
0
 

Author Comment

by:2drews
ID: 18763745
I am so unbelieveably happy right now!

the new executable name is plcx.exe so I just had to rename the config file and it worked! Thanks so much for your googling. I never found the result you did. Thanks again.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now