Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

IIS 5.1 and Delphi 7 - "The specified module could not be found."

Posted on 2006-04-15
12
Medium Priority
?
472 Views
Last Modified: 2010-05-18
I am using default folders for everything.

I created a script in Delphi 7 and placed the resulting DLL in:
C:\Inetpub\Scripts

Also, any tips on how to load and unload the modules so I don't have to restart my computer would be helpful once I get this working...


This is the HTML code I used...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
  <HEAD>
    <TITLE> Project Test 1 </TITLE>
  </HEAD>
  <BODY>

  <FORM METHOD="post" ACTION="http://localhost:81/scripts/Project1.dll">
    Name:
      <input type="text" name="NAME_FIELD"><br>
    SurName:
      <input type="text" name="SURNAME_FIELD"><br>

    <input type="submit" name="Submit" value="Submit"><br> <input type="reset" name="reset" value="Reset"> </FORM>

  </BODY>
</HTML>


unit test1;

interface

uses
  SysUtils, Classes, HTTPApp;

type
  TWebModule1 = class(TWebModule)
    procedure WebModule1WebActionItem1Action(Sender: TObject;
      Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  WebModule1: TWebModule1;

implementation

{$R *.dfm}

procedure TWebModule1.WebModule1WebActionItem1Action(Sender: TObject;
  Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
  Response.Content := 'Hello';
end;

end.
0
Comment
Question by:werehamster-
11 Comments
 
LVL 5

Expert Comment

by:ewilde
ID: 16462867
it might be a prmissions problem. go to IIS Directory Security and change the account used for anonymous access to the guest account.

Goodluck,
ewilde.
0
 
LVL 17

Expert Comment

by:geobul
ID: 16463609
Hi,

Prhaps you have to enable executables to be launched by IIS also. As far as I remember the default was 'scripts only'. Open your IIS administrative console, select the web site's properties, go to 'Home Directory' tab and change 'Execute Permissions' to 'Scripts and Executables'.

Regards, Geo
0
 
LVL 3

Expert Comment

by:dygj
ID: 16464310
Unloading your module:
rigth click on the scripts folder in IS5 and select properties. Click the unload button.

Permission execute (and scripts),
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:werehamster-
ID: 16466734
ewilde: I do not have a guest account on this computer.  It is set to my main account, IUSR_WEREHAMSTER, which has full administrative rights.  I've tried it with guest and administrator with no luck.  Administrator did give a different error because it did not have a password.

geobul: I have it already set to "Scripts and Executables".

I've basically already tried all the basics I could think of.  Need to think out of the box for this one.  :)
0
 
LVL 6

Expert Comment

by:Imthiyaz_ph
ID: 16468916
Plz check whether the default property of that action "WebActionItem1" is set to true, since you havnt specified any additional path after the dll name (in POST method).
0
 

Author Comment

by:werehamster-
ID: 16474145
Imthiyaz_ph: I've tried it both ways; with a path and using a default.  Still no good.

I've recently used DEPENDS.EXE to see if it was missing any dependencies.  Really didn't help much.  I guess my next step is to see if I can find some other DLL to try to see if it's IIS or delphi.
0
 
LVL 6

Expert Comment

by:Imthiyaz_ph
ID: 16475320
i think you have put the dll in the wrong folder. What i used to do was create a "scripts" folder under "wwwroot" folder, assign the necessary permissions and put the dll inside that folder.

Even in your case, the path in the post method is referring to a folder inside the wwwroot.

regards
Imthiyaz
0
 
LVL 6

Expert Comment

by:Imthiyaz_ph
ID: 16475434
Also check the following answer, its says to unregister and register the system dlls:

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21462035.html
0
 
LVL 6

Expert Comment

by:Imthiyaz_ph
ID: 16475488
i m sorry, i think i hv made a mistake regarding the scripts folder. I used to work with multiple sites, so i had to create script folder for each site. And also by default, iis creates a virtual directory for the scripts folder.
0
 

Author Comment

by:werehamster-
ID: 16475650
I figured it out.  Scripting services was not installed.  4 days of headaches by a simple windows component install that apparently wasn't installed by default.
0
 

Accepted Solution

by:
GranMod earned 0 total points
ID: 16977987
PAQed with points refunded (500)

GranMod
Community Support Moderator
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

810 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