How to creating Web Server Application that can be deployed on .net support server with Delphi .Net (Studio 7)...

Posted on 2003-11-26
Last Modified: 2010-04-05
         I'm familiar with Delphi programming, client-server, multi-tire application. But to me , web server application programming with delphi studio 7 seems to me impossible. I've seen one big problems creating it with delphi, which is, deployment strategy. Since web server application created with delphi is a .dll file. Which can if I own web server myself. But to deploy it on internet, .dll can not be run on ISP since execute permission is not allowed. In contrast with Asp, which I'm familiar with too, it can be deployed by uploading it to server without any server configuration process. All I've said may not be what it seems. So I'm curious to know the solutions to problems mentions above, now comes the questions and specification of solutions I need.
          Show me the full project, or post the code to any site that I can download and test it before I accept that as answer. The project must be capable of doing tasks shown below.
          1. Contain at least 1 database (Microsoft Access Database) which contains
                     1.1   Table name "Sample"  contain 2 Fields  "UserId", "Name" in any size but string type.
                     1.2   Table contain at least 5 record of users,   from userid = 1 to 5 with name = "user 1" to "user 5"
          2. Project must be written in Delphi for .Net style and can be compile to whatever form that ready-to-deploy to web server.
          3. This project must be web server application that doing tasks shown below in difference respond page.
                     3.1   Contain at least 3 page, 1. main page to provide the user choice to sub page, 2. Page that display all user data in table, 3. Search page and result (may be in difference page as you may suggest) that can perform these tasks.
                     3.2   Can retrieve all data in table "Sample" and show it on client browser requested through this project
                     3.3   Can perform search for input userid (for example, input userid = 3) and show the user information in corresponding record.
                     3.4   Can update field "Name" of record found in 3.2 to any name I wish
          4. Project can run on any server that has .Net Framework SDK 1.1 installed without asking server administrator to perform any special tasks to help project run correctly.
          5. Provide instruction as necessary in order to test proposed project before I accept that as answer to my questions.
          6. Code must be created in Borland Delphi Studio 7.0 or can be run correctly by Borland Delphi Studio 7.0 since I have no previous version of delphi.
          I can easily do all task shown above in asp, but that doesn't matter to me since I believe delphi the powerful programming language and I can write these in Websnap (ISAPI  as options before create web can be selected) but with explicit server configuration to has permission to execute custom dll which is imposible to ask ISP administrator to do so. So please do not propose the Websnap code that has to configure server before it can run. I really want to know if delphi can be tools that I always dream of to create web server application. Like Java, which I now start learning by Jbuilder.

          I need this real bad, that's why I make this questions very expensive.  You guys, experts out there, please do me a favor.
          P.S. I also know that Borland provide Delphi .Net Preview compiler to be complier in order to compile delphi script language. DCCIL is the tools to do so to compile delphi code to IL. Such compile part will then be run using Common Language Runtime (CLR) of server with .Net Framework runtime or SDK installed. But still I don't know how to do it. Explain to me in project as necessary (pretend as if I know nothing of it) please. (I've read article at,1410,28972,00.html that describe and show example doing a certain task with DCCIL, so please don't suggest me read such article, all I need is real project with a necessary document to have it work)
Question by:DOOM_DAEMON
LVL 17

Accepted Solution

Wim ten Brink earned 500 total points
ID: 9825606
I have to disappoint you. ASP is more powerful than Delphi in this case. If performance is an issue then ASP (or PHP) is a better option. Delphi ISAPI DLL's ape very usable for all kinds of heavy calculations but ASP is just better when used to exchange data with a database server. Especially if you use ADO with Access or SQL Server.
I know this because I once did a performance test between Delphi and ASP. Both would look at the same database and both would return the same recordset. Delphi was about 20 times slower, if not more... The reason for this is simple. When IIS calls an ASP page, the page is first compiled in-memory before the compiled code is executed. Since ASP pages don't change that often, the server can keep that page in-memory for as long as required. Delphi also generates binary code that stays in-memory after the first call but Delphi has to deal with the additional runtime library and just seems to spend too much time initializing all kinds of stuff before it finally gets to work.
Delphi will do a good job in situations where you can afford to use fast hardware for only a low amount of users. It's great for simple Intranet development too and a good alternative for COM+. But in general ASP is better if you just want reasonable simple tasks to be executed.

Delphi 8 (Octane) might have a better performance though. But I did not have a chance to test it yet.

Author Comment

ID: 9841189
Well, Thanks to your comments but still I want to know how to accomplish task mention above with delphi. I aware of performance but I just curious to know if it can do a .Net technology since I've heard that delphi can perform a .Net technology in BorCon2002, a conference held by borland. Any experts out there can demonstrate me, please..

Expert Comment

ID: 9906746
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.


Expert Comment

ID: 11352602
iv wrote my own web server not as good as apache but .. runjs all my dlls and answers to requests

Expert Comment

ID: 12875509
No points for me i didnt do anything :D thankyou
best regards

Expert Comment

ID: 12876234
thankyou very much

# merry xmas n have a great new year !dont drink n drive! :P #

best regards mark
LVL 10

Expert Comment

ID: 12876256
I 'll drink only! sure
LVL 17

Expert Comment

by:Wim ten Brink
ID: 12902582
Oh, oops. Should check my mail more often for EE updates. :-)

Thanks, and merry Christmas, although a bit late now. Oh, well... Best wishes for the next year then! :-)

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question