On trying to write a httphandler with the delphi prism command line it get the following error:
C:\Projecten\Oxygene\MyHandler.pas(8,35) : Error : (PE66) Interface property g
etter not implemented for "System.Web.IHttpHandler.IsReusable"
This is the source:
[pascal]
unit MyHandler;
interface
uses System.Web;
type
HelloWorldHandler = public class(System.Object,IHttpHandler)
public
public function GetIsReuseable: boolean;
procedure ProcessRequest(context: HttpContext);
property IsReuseable: boolean read GetIsReuseable;
end;
implementation
function GetIsReuseable: boolean;
begin
Result := false;
end;
procedure HelloWorldHandler.ProcessRequest(context: HttpContext);
begin
context.response.Write('Hello World');
end;
end.
[/pascal]
And this is how i compile:
I also tried using get_IsReuseable instead of GetIsReuseable but that only leads to more errors ...Code:Oxygene MyHandler.pas /assemblyname:MyHandler /type:library /frameworkfolder:C:\WINDOWS\Microsoft.NET\FrameWork\v2.0.50727 /ref:$(Framework)\System.Web.dll /ref:$(Framework)\System.dll
Thanks in advance for your help.
Bookmarks