App not serving vbhtml files.

Discussion in 'General troubleshooting' started by MobyusMark, Nov 29, 2012.

  1. Having a difficult time resolving an issue with an app I have that has some Razor syntax in it. The app is in http://mobyus.com/pbm.

    It works when I run it locally (in Visual Studio or IIS) but on the server I simply get a directory listing of the folder. If I try to load a page (Default.vbhtml), I get the message:

    "This type of page is not served.

    Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.vbhtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

    Requested URL: /pbm/Default.vbhtml"

    I've tried a number of things, including checking the Handler Mappings (which appear to be ok) and adding a security element to the web config based on an old thread I found here. Neither of these worked.

    Any help would be grealy appreciated. Thanks.
     
  2. Resolved.

    Used VS Manage NuGet Packages to install the Web Helpers and the Razor 2.0. Should have been obvious, but unclear why no warnings or errors within VS and that it worked fine in debug/local IIS.

    In any case, this is resolved.
     
  3. Elshadriel

    Elshadriel Winhost Staff

    Thanks for the update! I'm sure this will help someone out. :)
     

Share This Page