#1 2014-06-06 21:53:36

Junior/RO
Member
Registered: 2011-05-13
Posts: 207

IIS DLL project example?

I have some unique requirements for this project. The rest server needs to be a dll to run in IIS.

There are special issues that I must know or I just have to compile the .dpr as a library?

Thank you.

Last edited by Junior/RO (2014-06-06 22:43:54)

Offline

#2 2014-06-07 07:52:59

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: IIS DLL project example?

Why use IIS for hosting?

Mormot server is based on the same http.sys core.
So you can share the URL and port.
And you will have better performance and stability to bypass IIS.

Hosting in IIS as DLL is not supported nor worth it.

You should better not install IIS at all and serve all content via mormot, including static files.

Offline

#3 2014-06-07 13:01:20

Junior/RO
Member
Registered: 2011-05-13
Posts: 207

Re: IIS DLL project example?

It's a hosted enviroment in the internet provider of my client. I can't do anything about this. Must be IIS.

mORMOt will not run in this cenario? Will have less then 100 connections / day, performance is not high priority.

Offline

#4 2014-06-07 13:17:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: IIS DLL project example?

There is no IIS DLL wrapper available for mORMot yet....

Just tell your client that it is safer to have the mORMot server hosted as a service instead of within IIS. And it is perfectly compatible with IIS since both rely on the same http.sys kernel mode server.

If you are really forced to use a IIS DLL, so you can use a Delphi standard webbroker component, and call a mORMot's TSQLRestServer instance directly. It would work perfectly.

Offline

#5 2014-06-10 16:12:10

Junior/RO
Member
Registered: 2011-05-13
Posts: 207

Re: IIS DLL project example?

How can I call TSQLRestServer inside of a web broker's event? Please show me some pseudo-code.

Last edited by Junior/RO (2014-06-10 19:23:35)

Offline

#6 2014-06-10 21:49:56

Junior/RO
Member
Registered: 2011-05-13
Posts: 207

Re: IIS DLL project example?

Well, the internet provider helped and will let a .EXE run in their CGI-BIN directory. Let's the tests begin.

Offline

Board footer

Powered by FluxBB