Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

WebMatrix Support

Graffen's Avatar

Graffen

02 Feb, 2011 02:15 PM

Hi!

I finally got the time to try and deploy a simple WebMatrix site. Right now it's just a web.config, a couple of CSS files and a Default.cshtml file. However when I try to access the app URL I get a 403 Forbidden error. If I add /Default.cshtml to the base URL it gives me a 404. The CSS files are there, I can access /styles/reset.css with no trouble. Is there anything I need to do to my site to make it work?

Thanks,
/Jesper

  1. 1 Posted by turnkey on 02 Feb, 2011 05:43 PM

    turnkey's Avatar

    Did you add these lines to your web.config? I had to get that to get the URL rewrite to work properly:

       <system.webServer>
            <modules runAllManagedModulesForAllRequests="true"/>
       </system.webServer>
    
  2. 2 Posted by turnkey on 02 Feb, 2011 05:44 PM

    turnkey's Avatar

    Fixed format of snippet:

       <system.webServer>
            <modules runAllManagedModulesForAllRequests="true"/>
       </system.webServer>
    
  3. 3 Posted by Graffen on 02 Feb, 2011 07:04 PM

    Graffen's Avatar

    Yes, they're there.

  4. 4 Posted by turnkey on 02 Feb, 2011 07:35 PM

    turnkey's Avatar

    I just pushed a very simple one to AppHarbor with just 2 cshtml files and a Web.Config:

    http://testwebmatrix.apphb.com/

    I did use Index.cshmtl rather than Default.cshtml but I don't think that should matter.

    All the web.config had was this content:

      <system.web>
          <compilation debug="false" targetFramework="4.0" />
      </system.web>
    
      <system.webServer>
          <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>
    
  5. 5 Posted by Graffen on 02 Feb, 2011 08:04 PM

    Graffen's Avatar

    Aha! The compilation flag seemed to solve the problem. Thanks! :-)

  6. Support Staff 6 Posted by friism on 02 Feb, 2011 08:05 PM

    friism's Avatar

    Great, glad you worked it out -- and, James, thanks for helping out!

  7. friism closed this discussion on 02 Feb, 2011 08:05 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac