Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
Sorry i was searching google about 1 hour but i cant get good result .

i create a very simple website by asp.net (visual basic.net) , its just "HELLO WORLD"
and then i publish website in my host , but when i start with browser i see 403 Error(Forbidden). whats wrong ?

Thanks.
Posted
Comments
S@53K^S 4-Oct-12 9:13am    
Did you enable basic authentication on your host? and ensure that account under which your is running is allowed to access the disk location where your pages are published.
synctor 4-Oct-12 9:16am    
im new in web , and my host is one free host , i dont know whats basic authentication , can u explain please?

1 solution

There could be a few different reasons for this problem. Here are the common ones:

First, you published your site to your host, but is your host set up to look for your start page? For instance, normally hosts look for index.htm, index.php, index.asp, index.aspx, etc. If they find one of those, they will use it as the default page. If they don't find it, you might get this error (usually 404 but it really depends on the host - you might get 403 if the fallback is directory browsing and you aren't allowed to do that). If this is the issue, you will need to add your start page to the list of pages to look for. A way to test this would be to add your page to the end of your URL. For example, if you are trying to go to www.foo.com and your start page is helloworld.aspx, you could try going to www.foo.com/helloworld.aspx and seeing if that worked. If it does, your problem is a configuration problem on the server. Add your helloworld.aspx page in the startup page section and you will be good to go.

It could also be that you created a website using one of the templates in Visual Studio. If so, you might have selected a template that adds security to your page. By default, anonymous viewing isn't allowed in some templates. This would be a setting in your config file that would need to be changed. To figure out if this is the case, you could either read up on config settings for security or you could start over with a blank template and try publishing that.

This also might be a setting on your web server. You will need to go through the settings and check to see if there are any folders that are locked down, etc. I can't help you with the specifics on this one but your web host provider can.

Finally, you might be trying to run an ASP.NET page on a server that doesn't have ASP.NET. Only servers that are equipped to handle ASP.NET pages can run them. I don't remember what error this throws, but it potentially could throw a 403.

As with any troubleshooting session, try cutting out as many variables as possible. Make sure it runs locally, try just uploading a simple index.htm page to your hosting provider, etc. See if you can narrow down where the problem is.
 
Share this answer
 
Comments
synctor 4-Oct-12 10:27am    
thanks , my host not supporting asp.net , do u know any free host supporting asp.net ?
Tim Corey 4-Oct-12 10:30am    
You can use Windows Azure for hosting of up to ten sites for free (www.windowsazure.com) or you could use GoDaddy hosting (if you have a domain their already you usually get ASP.NET hosting for free - I have it).

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