Click here to Skip to main content
15,867,765 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
i have re-written url with .aspx extension now i have changed them to .html, it is working fine for .aspx but not for html. on local both are working but on website it is not working.

What I have tried:

I have added a function in Application_BeginRequest which is writing incoming url requests to a file. Every time when a .aspx page visited on website it is writing  it's url to that file but not writing it when a .html page is being called or entered. So basically .html page not hitting Application_BeginRequest<pre>
, Please help
Posted
Updated 27-Nov-18 5:29am
v3
Comments
MadMyche 27-Nov-18 7:18am    
You forgot to add that function to your question, so.... I can't tell what's wrong with it

1 solution

At a guess, you're missing the runAllManagedModulesForAllRequests setting:
XML
<system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
</system.webServer>

iis - Get .net to handle all requests in IIS7 - Stack Overflow[^]
Caveats with the runAllManagedModulesForAllRequests in IIS 7/8 - Rick Strahl's Web Log[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900