Application Mappings

Application Mappings

am 03.12.2007 20:21:46 von Eric

Hello,

I'd like to have my files with the extension ".test" be processed like files
with the extension ".aspx"

I'm using ASP.NET 1.1.4322.

I've added the Application Mapping in the IIS configuration. However, the
page is still passed through as a static page.

I know this will work because there is another server in my domain that is
already doing this. Exporting the configuration settings didn't shed any
light.

What am I missing?

Thanks,

Eric

Re: Application Mappings

am 04.12.2007 12:13:42 von David Wang

On Dec 3, 11:21 am, "Eric" wrote:
> Hello,
>
> I'd like to have my files with the extension ".test" be processed like files
> with the extension ".aspx"
>
> I'm using ASP.NET 1.1.4322.
>
> I've added the Application Mapping in the IIS configuration. However, the
> page is still passed through as a static page.
>
> I know this will work because there is another server in my domain that is
> already doing this. Exporting the configuration settings didn't shed any
> light.
>
> What am I missing?
>
> Thanks,
>
> Eric


You only told IIS to route .test to ASPNET_ISAPI.DLL. You failed to
tell ASPNET_ISAPI.DLL to process .test like .aspx. Thus, .test did not
process like .aspx.

Look at ASP.Net's machine.config and copy the for .aspx
to .test.

This duplicate pipeline configuration goes away in IIS7 Integrated
Mode, which is incompatible and superior to all existing ASPNET_ISAPI
configuration.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: Application Mappings

am 04.12.2007 17:31:50 von Kristofer Gafvert

Hi Eric,

You need to first map the extension to the ASP.NET ISAPI dll. This will tell
IIS that you want .test extension to be sent to the ASP.NET ISAPI. But you
also need to tell ASP.NET that it should process .test extension as regular
ASP.NET. This means that you must also map the extension to a HTTP Handler.
In your case, you want to add something like this in the httpHandlers
section of web.config (or machine.config if you want to apply this to the
whole server):

verb="*"
type="System.Web.UI.PageHandlerFactory"
/>

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


"Eric" skrev i meddelandet
news:eW3PAHeNIHA.4752@TK2MSFTNGP05.phx.gbl...
> Hello,
>
> I'd like to have my files with the extension ".test" be processed like
> files with the extension ".aspx"
>
> I'm using ASP.NET 1.1.4322.
>
> I've added the Application Mapping in the IIS configuration. However, the
> page is still passed through as a static page.
>
> I know this will work because there is another server in my domain that is
> already doing this. Exporting the configuration settings didn't shed any
> light.
>
> What am I missing?
>
> Thanks,
>
> Eric
>

Re: Application Mappings

am 04.12.2007 20:29:19 von Eric

I'm glad to hear that about IIS7. I've encountered this once before.

Now that you mention the machine.config, it's all coming back to me.

Thanks, to you and Kristofer!

"David Wang" wrote in message
news:1d573f1d-fee8-4985-becf-0bda4545714b@i12g2000prf.google groups.com...
> On Dec 3, 11:21 am, "Eric" wrote:
>> Hello,
>>
>> I'd like to have my files with the extension ".test" be processed like
>> files
>> with the extension ".aspx"
>>
>> I'm using ASP.NET 1.1.4322.
>>
>> I've added the Application Mapping in the IIS configuration. However,
>> the
>> page is still passed through as a static page.
>>
>> I know this will work because there is another server in my domain that
>> is
>> already doing this. Exporting the configuration settings didn't shed any
>> light.
>>
>> What am I missing?
>>
>> Thanks,
>>
>> Eric
>
>
> You only told IIS to route .test to ASPNET_ISAPI.DLL. You failed to
> tell ASPNET_ISAPI.DLL to process .test like .aspx. Thus, .test did not
> process like .aspx.
>
> Look at ASP.Net's machine.config and copy the for .aspx
> to .test.
>
> This duplicate pipeline configuration goes away in IIS7 Integrated
> Mode, which is incompatible and superior to all existing ASPNET_ISAPI
> configuration.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //