Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AddRootHandler doesn't work in IW 16.
#1
Hello,

Why in IW16 doesn't work any more AddRootHandler??? It just closes the application when reach to this point.


procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
var FormHandler: TContentForm;
begin
  Self.RewriteURL := '/';

  TIWMimeTypes.RegisterType('.html', MIME_HTML, True);

  RegisterContentType('application/json');

  FormHandler := TContentForm.Create(TIWMainform);
  FormHandler.CanStartSession := true;
  FormHandler.RequiresSessionStart := true;
  THandlers.AddRootHandler('', '/', FormHandler);

  FormHandler := TContentForm.Create(TIWCheckout);
  FormHandler.CanStartSession := false;
  FormHandler.RequiresSessionStart := false;
  THandlers.Add('', '/checkout', FormHandler);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)