Solved

isapi with iis doing my nut in..

Posted on 2001-07-18
20
280 Views
Last Modified: 2010-04-06
hi,
i am changing from sambar to iis to cut down on how many web servers im using,and iis isnt playing the game.

my isapi dlls working fine under sambar but wont work at all under iis.

i made a new simple dll with only one action and set to default with event of:

response.content := 'test worked';

that works fine under my other web servers but not iis.

i put it in the scripts dir and checked under iis web manager -advanced that the scripts for is set to execute (which it is).

am i missing something?

my link in index.htm in wwwroot is set to
<a href="../Scripts/Project1.dll">project1</a>

if i enable directory browsing and link to ../scripts dir i can see the dll so why wont it execute?

Regards Barry

note ,
i tried giving the dll also a pathinfo of /test and added that to the end of the hyperlink but that didnt work either


0
Comment
Question by:inthe
  • 8
  • 5
  • 2
  • +3
20 Comments
 
LVL 17

Accepted Solution

by:
geobul earned 100 total points
ID: 6297078
Hi Barry,
As you describe the things you have done, I think that the problem is in the IIS settings because your example works fine on my IIS (NT4). What is your server OS?

Regards, Geo
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6297104
Hi Barry, on the 'Home Directory' tab of the IIS config, did you set the 'Execute Permissions' from 'Script only' to 'Scripts and executables'?
0
 
LVL 1

Expert Comment

by:sageryd
ID: 6297362
I found that when using DLL's, you also need to "Create an Application", function can be accessed from the "Home Directory" tab in the config.

Cheers
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6297440
also helpful might be setting: "Cache ISAPI application"
ziolko.
0
 
LVL 1

Expert Comment

by:sageryd
ID: 6297496
Hint:

The "Cache ISAPI Application" checkbox should be unchecked until you have finished developing, otherwise you will need to restart to be able to replace the DLL because it then stays in memory.


Johan
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6297534
Hint: don't give 'read' permission when "Execute(including script)" is selected
ziolko.
0
 
LVL 1

Expert Comment

by:sageryd
ID: 6297539
Thanx ziol, didn't really know that! :o)

Johan
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6297579
When both Execut(including script) and read are selected in some circumstances WebBrowser might start to download DLL, and We don't want that :-))
ziolko.
0
 
LVL 1

Expert Comment

by:sageryd
ID: 6297587
Precisely. :)

Johan
0
 
LVL 1

Expert Comment

by:sageryd
ID: 6297593
Precisely. :)

Johan
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 1

Expert Comment

by:sageryd
ID: 6297594
Oops. Double. :)
0
 
LVL 1

Expert Comment

by:sageryd
ID: 6297598
They should add the possibility to delete one's own comments! That'd be great.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6297621
I would like to be able to accept my own answers.  :o)
0
 
LVL 1

Expert Comment

by:sageryd
ID: 6297625
*lol* :)
0
 
LVL 4

Expert Comment

by:NicoLaan
ID: 6298035
My first ISAP dll didn't work because I used IIS older then optionpack 4.
You didn't make the same mistake did you?

Please tell us exactly what (serverstuff) you're using.
(NT 4 server, optionpack 4, SP6a? If so that shouldn't be the problem)
0
 
LVL 17

Author Comment

by:inthe
ID: 6300075
ok i played a bit with it after work & its working now after i had to do a reinstall of iis.
i hadnt done the obvious and checked about .asp pages and they werent working either.the whole thing was a mess with 2 frontpage webs mixed together.(and i dont use frontpage so heaven knows how musta been some coping files that went wrong somewhere),anyways it was set for 'Scripts and executables' etc and i had tried the read both on and off so i dont know what was problem but now its working good that all that matters.
i give geobul the p's for being first cause o dont like deleting
(well it was the settings i suppose which i sorta knew already but hey ;-)
oh and it was win2k[sp1] with iis5..so now i have apache working for php/mysql and iis for asp/isapi.
Regards Barry
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6300969
NicoLaan > my ISAPI works good even on IIS2 (no option pack!!)
ziolko.
0
 
LVL 17

Expert Comment

by:geobul
ID: 6301026
Thanks inthe, but I didn't help you much. At my work, when I get such a MS software problem, almost always reinstalling is the fastest and stable solution.

Regards, Geo
0
 
LVL 4

Expert Comment

by:NicoLaan
ID: 6318000
ziolko> Weird. On IIS 3, I couldn't get any ISAPI dll to work. ASP went fine. Then I installed Optionpack 4 and all was fine, so I thought that was it. But if you got it to work on iis 2, I'm really confused! It's no problem for me anymore, but thanks anyway.

Nico
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6333612
Yeah weird I've never played with IIS3, just moved from IIS2 to IIS4, everything went smooth.
ziolko.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now