WebMatrix Support
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
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
1 Posted by turnkey on 02 Feb, 2011 05:43 PM
Did you add these lines to your web.config? I had to get that to get the URL rewrite to work properly:
2 Posted by turnkey on 02 Feb, 2011 05:44 PM
Fixed format of snippet:
3 Posted by Graffen on 02 Feb, 2011 07:04 PM
Yes, they're there.
4 Posted by turnkey on 02 Feb, 2011 07:35 PM
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:
5 Posted by Graffen on 02 Feb, 2011 08:04 PM
Aha! The compilation flag seemed to solve the problem. Thanks! :-)
Support Staff 6 Posted by friism on 02 Feb, 2011 08:05 PM
Great, glad you worked it out -- and, James, thanks for helping out!
friism closed this discussion on 02 Feb, 2011 08:05 PM.