Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:
I have used MS WebMatrix to create an ASP.NET page.

This page works perfectly well when I run it on my local machine, (either through WebMatrix or stand alone).

I used FileZilla to upload this to a new host (this is an ASP.NET host, so I know that part works).

The main Default page is Default.cshtml and this is held in a subdirectory of the ones provided (HTTPDocs).

When I attempt to navigate there (www.greystarling.co.uk) it says "Forbidden
You do not have permission to access this document."

Any ideas?
Posted
Comments
R. Giskard Reventlov 20-Mar-12 14:41pm    
Hmm: sounds like permissions to me. Have you tried www.greystarling.co.uk/Default.cshtml? It appears that it can't find the file: it should be in the root of the web site. Does the site know what to do with .cshtml? Have you set up the site correctly? Is there s bin folder with your assembly in it? Just some guesses.
Dalek Dave 20-Mar-12 14:42pm    
Thanks Mark, good input, I shall have a poke around.

I also had an idea that the pointer isn't set to the httpdocs directory, so it is lookng for the default file in the top level of the tree.
R. Giskard Reventlov 20-Mar-12 14:47pm    
Put it in the root.
Dalek Dave 20-Mar-12 14:41pm    
Thanks, nice to have a perfectly reasonable question downvoted without explanation.
R. Giskard Reventlov 20-Mar-12 14:47pm    
Have some balance: sick to the back teeth of the focking cowardly wankers and the seeming reticence of the management to do anything about it.

1 solution

Configured MIME type for cshtml? Clickety[^]

Also check this Razor ASP.NET web pages and CSHTML Forbidden errors[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900