View Full Version : HTTP handler for non ASPNET files
vvsharma
01-05-2008, 03:29 AM
I see that you are using the 'DefaultHttpHandler' type for your '.mht' extension .You will need a wild card mapping rather than just that extension mapping for this to work.Issue a support ticket for this.
Vikram
DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)
chikwk
01-05-2008, 12:57 PM
Hi, I have some special files (with extension .mht) located under a folder and allow authenicated user only.Have also requestedthis hosting site to map the extension in IIS for ASP.NET ISAPI extensiondll. have added the following to webconfig too.
- (ftp://ctlinvestco:happy22@ftp.ctlinvest.com/ctlinvestco/feedback/Web.config#) <location path="UploadDec08" allowOverride="false">
- (ftp://ctlinvestco:happy22@ftp.ctlinvest.com/ctlinvestco/feedback/Web.config#) <system.web>
- (ftp://ctlinvestco:happy22@ftp.ctlinvest.com/ctlinvestco/feedback/Web.config#) <authorization>
<deny users="?" />
<allow roles="User,Manager,Administrator" />
</authorization>
</system.web>
</location>
<httpHandlers>
<< add verb="*" path="*.mht" type="System.Web.DefaultHttpHandler" validate="true" />
</httpHandlers>
However, after login, users click to access the mht files,IE displays "The page cannot be displayed" error. However, in my testing environment everything works smoothly, displayed accordingly. Appreciate any advice on this. thanks.
Regards
cwk
chikwk
01-06-2008, 04:43 AM
Hi, have resolved this issue by adding custom own handler.Thanks.
vBulletin® ©Jelsoft Enterprises Ltd.