I have changed extension aspx ...

A

Alexander

then set up application mappings in IIS,
..ext = c:\windows\microsoft.net\framework\v1.1.4322\aspnet_isapi.dll
and now scripts <%= DateTime.Now %> doesnt work,
how can i fix this?
 
J

Juan T. Llibre

You also need to add an httphandler entry for ".ext" in web.config:

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

btw, the method used to do this has changed in ASP.NET 2.0.

In ASP.NET 2.0, you also need to configure the <buildProviders> section
of web.config, besides configuring the httphandler section and, of course,
setting up the .ext application mapping so "ext" pages are processed by
aspnet_isapi.dll, which you have already done:

<compilation>
<buildProviders>
<add extension=".ext"
type="System.Web.Compilation.PageBuildProvider"
/>
</buildProviders>
</compilation>

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




Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top