Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Application Mappings

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  IIS: Strange behavior with clustered IIS server  
Author Message
Eric

External


Since: Dec 03, 2007
Posts: 2



(Msg. 1) Posted: Mon Dec 03, 2007 2:21 pm
Post subject: Application Mappings
Archived from groups: microsoft>public>inetserver>iis (more info?)

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

 >> Stay informed about: Application Mappings 
Back to top
Login to vote
David Wang

External


Since: Nov 14, 2007
Posts: 358



(Msg. 2) Posted: Tue Dec 04, 2007 3:13 am
Post subject: Re: Application Mappings [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Dec 3, 11:21 am, "Eric" <er... RemoveThis @nextivr.com> 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 <httpHandler> 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
//

 >> Stay informed about: Application Mappings 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 3) Posted: Tue Dec 04, 2007 1:01 pm
Post subject: Re: Application Mappings [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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):

<add path="*.test"
verb="*"
type="System.Web.UI.PageHandlerFactory"
/>

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


"Eric" <ericp.RemoveThis@nextivr.com> 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
>
 >> Stay informed about: Application Mappings 
Back to top
Login to vote
Eric

External


Since: Dec 03, 2007
Posts: 2



(Msg. 4) Posted: Tue Dec 04, 2007 2:29 pm
Post subject: Re: Application Mappings [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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" <w3.4you.RemoveThis@gmail.com> wrote in message
news:1d573f1d-fee8-4985-becf-0bda4545714b@i12g2000prf.googlegroups.com...
> On Dec 3, 11:21 am, "Eric" <er....RemoveThis@nextivr.com> 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 <httpHandler> 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
> //
 >> Stay informed about: Application Mappings 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]