I've installed BlogEngine.NET under my website, turned off inheritance in the parent site's web.config file (that got the site up and running), and added the following to BlogEngine.NET's web.config file: Code: <security> <requestFiltering> <fileExtensions> <remove fileExtension=".cshtml" /> <add fileExtension=".cshtml" allowed="true" /> </fileExtensions> </requestFiltering> </security> The site will come up, but when I try to go to the Dashboard, I get the error message "This type of page is not served." Any suggestions? Thanks, Jay
http://www.iis.net/configreference/system.webserver/security/requestfiltering Check if it's in the right section (i.e. in between configuration -> system.WebServer) You could also try Unmarking/Marking the BlogEngine folder as a Web Application. Sometimes that affects inheritance/configuration issues.
When I added the security section, I made sure it was in the right place. I just double checked, and it is. I removed Web Application "status" from the blog and ran it. I got this: Server Error in '/traffic' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error: Line 8: </configSections> Line 9: <BlogEngine> Line 10: <blogProvider defaultProvider="XmlBlogProvider" fileStoreProvider="XmlBlogProvider"> Line 11: <providers> Line 12: <add description="Xml Blog Provider" name="XmlBlogProvider" type="BlogEngine.Core.Providers.XmlBlogProvider, BlogEngine.Core"/> Source File: E:\web\inrixcom000\htdocs\traffic\blog\web.config Line: 10 When I added it back, I got the original error.
Just to clarify, this is the layout of the site: â Classic ASP at the root â Directory under that with ASP.NET MVC. That folder is marked as a WebApplication and has its Web.config file set not to have children inherit. â BlogEngine.NET is in a folder under that and is also set to a WebApplication
Changing the App Pool Pipeline mode to Integrated didn't seem to make any difference. The Classic site (www.inrix.com) still works fine, the sub-site (MVCâhttp://inrix.com/traffic) still works fine, the blog (http://inrix.com/traffic/blog) still shows up fine, but when I click "Dashboard" (http://inrix.com/traffic/blog/admin/default.cshtml) I still get "This type of page is not served."
Fixed: Adding this to the web.config seemed to fix the problem: <add key="webpages:Enabled" value="true" /> I found it at: http://stackoverflow.com/questions/...d-error-when-trying-to-browse-on-cshtml-files Thanks for your help, Tasslehoff.
Yes, thank you, willamsjp. I was getting this error while attempting to run BlogEngine.NET in an app folder in IIS. My Googles brought me here.