I wonder. I have now done
Drivepath>csc /out:aspAuthoris er.dll /t:library /r:d:\inetpub\ww wroot\blahblah\ \cs\bin\Interop .ASPTypeLibrary .dll /r:System.Enterp riseServices.dl l
authenticator.c s
but I does it also need System.Runtime. Interopservices , either as a using directive in the class file or in the csc /out: /r:line? I am a bit confused as to when I need to add /r: references as some things which are in...
User Profile
Collapse
-
Thanx - I had to csc /out with /r: and the full path to the Interop.ASPType Library which I then put in the GAC as well, though it would not register with regasm
I now have the problem that this returns System.__ComObj ect
oRequest = (ASPTypeLibrary .Request)Contex tUtil.GetNamedP roperty("Reques t");
if(oRequest == null)
{
strRemoteAddr = "155.245.48 .3";
...Leave a comment:
-
I am a bit further on. I have added
using System.Enterpri seServices;
using System.Runtime. InteropServices ;
using ASPTypeLibrary;
and the code
Code:if(System.Web.HttpContext.Current != null) { strRemoteAddr = System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToString(); } else { ASPTypeLibrary.Request
Leave a comment:
-
System.Web.HttpContext.Current and dll used in asp 3.0
Take this code:
strRemoteAddr = System.Web.Http Context.Current .Request.Server Variables["REMOTE_ADD R"].toString();
The class this is in works in an aspx page (ASP.NET 1.1)
If I compile the class this is in with
csc /out:asphandler. dll /t:library scriptor.cs
I get a dll that I can't use in classic asp 3.0 because I get an exception on that line of code of "Object...
No activity results to display
Show More
Leave a comment: