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

Posted on 2003-11-26
Medium Priority
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 http://bdn.borland.com/article/0,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 2000 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
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.


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

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
If you are looking for an automated solution for backup single or multiple Office 365 user mailboxes to Outlook data file, then you can use Kernel Office 365 Backup & Restore tool. Go through the video to check out the steps to backup single or mult…
Suggested Courses

589 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