Link to home
Start Free TrialLog in
Avatar of inthe
inthe

asked on

isapi with iis doing my nut in..

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


ASKER CERTIFIED SOLUTION
Avatar of geobul
geobul

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Epsylon
Epsylon

Hi Barry, on the 'Home Directory' tab of the IIS config, did you set the 'Execute Permissions' from 'Script only' to 'Scripts and executables'?
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
Avatar of Lukasz Zielinski
also helpful might be setting: "Cache ISAPI application"
ziolko.
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
Hint: don't give 'read' permission when "Execute(including script)" is selected
ziolko.
Thanx ziol, didn't really know that! :o)

Johan
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.
Precisely. :)

Johan
Precisely. :)

Johan
Oops. Double. :)
They should add the possibility to delete one's own comments! That'd be great.
I would like to be able to accept my own answers.  :o)
*lol* :)
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)
Avatar of inthe

ASKER

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
NicoLaan > my ISAPI works good even on IIS2 (no option pack!!)
ziolko.
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
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
Yeah weird I've never played with IIS3, just moved from IIS2 to IIS4, everything went smooth.
ziolko.