Accessing .NET DLL(s) from Classic ASP



Hi,

I have similar question that i saw yesterday (Calling .NET DLL from Classic
ASP), but we have achieved some good results and we can't go back but not
sure that approach is perfect or need more efforts or any better is
available?

here is some details:

We have production website running on Classic ASP (Windows Server 2003 E.Ed
+ IIS and SQL Server 2000 SP-4). we are tracking hits of students on their
courses and other stuff in database. This is done by COM wirtten in C# 2.0.
there is no error and run fine until there is much traffic on site. We faced
following error:

Server object error 'ASP 0177 : 80131509'
Server.CreateObject Failed

/includes/trk_SessionEndTime_Cookie.asp, line 32

I tried to find out any solution or details about this error on Microsoft
site but nothing found. the only solution is to re-start IIS. Our site is
providing credit to students and doing re-start is not solving our problem
and we lost online users credit for that period. The reason we wrote this
DLL was due to site performance issue with classic ASP code, so we used .NET
2.0 DLL. that produced better results in performance.

This is not at all, further we have to send some users/students information
to their respective colleges (they have provided us web services), calling
web service via ASP is done by creating another DLL written in 1.1, 2.0 and
3.5 version of .NET and all are tested on local system, that may update
users results online to their specific colleges/universities.

The is question is, is this a right way to do? (calling DLLs written in
different .NET version from classic ASP) is there any better solution
available? Right now we can't migration our whole classic ASP website to
..NET


Shamshad Ali.



.



Relevant Pages

  • Re: Error when importing DLL
    ... in asp you are calling your dll thru com, in asp.net you are trying to do ... calling com interfaces. ... I have received a dll with an encrypting function I have to use in a ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: can i load my own dlls into services.exe, if how
    ... ISAPI extensions and ISAPI filters can be useful. ... > DLL via JScript 'new ActiveXObject' or the VBscript equivalent in your ASP ...
    (microsoft.public.windowsce.app.development)
  • ASP / ASP.NET
    ... Ich habe folgendes Vorgehen mit ASP erfolgreich getestet: ... Eine Active-X DLL übernimmt die Abfrage der ... (hat nichts mit dem Request aus ASP zu tun). ... es ist effizient und recht schnell weil die Abfrage der Datenbank ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: Registering a .NET assembly for COM interop access from an ASP page
    ... If I put my DLL in ... problems with ASP pages calling a strongly named assembly, ... Pointer to a null-terminated string that specifies the full path to ... So the IIS process or dllhost will check the lpCurrentDirectory in their ...
    (microsoft.public.dotnet.framework.interop)
  • Re: returning multiple recordsets from VB to ASP
    ... stored procedure and into an intermediate VB DLL: ... more awkward to do in SQL than in VB and the stored procedure is getting ... The ASP page anways puts the data into arrays, ...
    (microsoft.public.data.ado)