Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Script map to default web site

$
0
0
Re: Script map to default web site
Web Connection
Re: Script map to default web site
02/24/2012
06:15:32 PM
3FV134VZ3 Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None

Not sure, but you should check the web.config file in the folder of your app and make sure that the script map is actually there. Also make sure that the folder supports script execution and that you allow the Web Connection ISAPI extension in that folder (ISAPI restrictions if the DLL folder is different than the other app).

I've seen some situations where the registration in the IIS management console doesn't put things into the config file which means it's getting created at the wrong level somewhere.

If the app is tied to a single virtual you can also use the managed module which is easier to configure:

<system.webServer> <handlers> <validation validateIntegratedModeConfiguration="false" /> <add name="wc_wconnect" path="*.wc" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode" /> </handlers> <system.webServer>

The nice thing about the handler is that it doesn't have a path requirement - it picks up the module in the bin folder automatically. This means multiple scriptmaps can just be copied and added, then changing the path and name.


+++ Rick ---


This is on my development system running 64-bit Win 7. I have my app running in a virtual named WConnect with my .awp extension mapped to wc.dll I can make calls of the form localhost/wconnect/mymethod.awp and all works as expected.

I want to set the same mapping to the root folder so I can invoke methods without using the expanded path (i.e. localhost/mymethod.awp). I selected the Handler Mapping option under Default Web Site, added a script map for *.awp and pointed it to my dll. I made sure the "Invoke handler only if" box was clear and that all verbs were specified. But IIS does not seem to recognize the mapping. Any .awp call brings up a 404 error. The message indicates that the handler is "StaticFile"

We routinely configure our clients' systems so the app extension is mapped to the default directory, but for some reason I can't make it happen on my own machine. Any idea what I am missing?

--stein




Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii


Viewing all articles
Browse latest Browse all 10393

Trending Articles