.vb file is blocked by the IIS request filter. This make sense because you don't want people to steal your code. The simpliest solution is to zip the source file. Bruce DiscountASP.NET www.DiscountASP.NET
Hello, I need help on the above error. I've organized a download area on my Win 2008/IIS 7.0 host. In the directory are present VB source files that I want to share. When visitors click on them, receives the above error with the following warning: --------------------------------------------------- The request filtering module is configured to deny the file extension. ---------------------------------------------------- I've tried to add the .vb extension in tge MIME Types table (.vb text/plain). This does not help. Any idea? Thanks cdm /emoticons/cry.gif
I'd recommend opening a support ticket. On IIS7 404.7is...FILE_EXTENSION_DENIED. If I'm not mistaken support can make a change to theallowUnlisted attribute. Salute, Mark
Dear Mark, below the answer I've got from the Technical Support ... -------------------------------------------------------------------------- Dear Customer, IIS blocks .vb extension from being download as a security measure. It will not work even when you create a MIME type. ... I'm afraid for this can seriously compromise security on our shared hosting environment. Frank ------------------------------------------------- So seems impossible organize a download area on www.discountasp.net! Claudio For Bruce ... Bruce I want to share some sources, this cannot be confused as a theft.
I think it is technically possible to allow download of .vb file by messing w/ request filter setting (you can change it in the web.config file) but it is rather messy. See http://learn.iis.net/page.aspx/143/how-to-use-request-filtering/ I would just zip the .vb file. Bruce DiscountASP.NET www.DiscountASP.NET