IHttpHandlerFactory e mapping delle estensioni su IIS
BrightSoul
BrightSoul non è online. Ultima attività: 11/05/2009 10.54.44BrightSoul Top Poster
il 23 novembre 2007 alle 13.40
Contributi | 4.726 messaggi dal 09 febbraio 2002
Salve,
la mia applicazione Asp.Net 2.0 gira su un server Windows 2000 (IIS5) a cui ho accesso. L'applicazione sfrutta l'url rewriting mediante una classe che eredita da IHttpHandlerFactory e le vengono date in pasto tutte le richieste che terminano con aspx, html e htm. Per realizzare questo, nel web.config ho messo:

<httpHandlers>
<add verb="*" path="*.aspx" type="Mionamespace.Miaclasse" />
<add verb="*" path="*.htm" type="Mionamespace.Miaclasse" />
<add verb="*" path="*.html" type="Mionamespace.Miaclasse" />
</httpHandlers>

per l'estensione .aspx ha funzionato subito, mentre per le estensioni .htm e .html ho dovuto aggiungere due voci al "mapping applicazioni" nelle proprietà del sito, dalla console di IIS.

Fin qui tutto bene, ma ora vorrei che oltre ad aspx, html e htm venissero processate anche tutte le richieste a CARTELLE.

Esempio, la richiesta a:
http://www.miosito.it/pippo/
ovviamente fallisce (ottengo errore 404) perché la cartella non esiste e IIS non sa che deve rimappare tale richiesta sul filtro ISAPI di Asp.net.

Come risolvo?

Grazie, ciao.
Modificato da BrightSoul il 23 novembre 2007 13.43 -

- So what you're saying is, if we get in trouble, there's no one to help us out?
- I'm afraid not.
- Fantastic!
Re: IHttpHandlerFactory e mapping delle estensioni su IIS
BrightSoul
BrightSoul non è online. Ultima attività: 11/05/2009 10.54.44BrightSoul Top Poster
il 23 novembre 2007 alle 14.59
Contributi | 4.726 messaggi dal 09 febbraio 2002
ok, risolto come descritto qui
http://www.nerdymusings.com/LPMArticle.asp?ID=12

Ciao a tutti & buon weekend.

- So what you're saying is, if we get in trouble, there's no one to help us out?
- I'm afraid not.
- Fantastic!

Vai a:
Torna al forum |   Feed RSS

ASPItalia.com non è responsabile per il contenuto dei messaggi presenti su questo servizio, non avendo nessun controllo sui messaggi postati nei propri forum, che rappresentano l'espressione del pensiero degli autori.

COMMUNITY
ULTIMI MESSAGGI
MEDIA
IN EVIDENZA
MISC
Powered by .db Forums "Caesar Reborn" v. 2009.6.9