-1

Sir, I have designed a website using Visual Studio using asp.net, it is successfully getting executed on localhost I want to make the website live on my own server. After uploading the project files on server and then checking on the link www.abc.com/project it gives the following error: Forbidden

You don't have permission to access /project/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at abc.com Port 80

Note: the host is linux based server, and the website project is not having a database

ASHAY
  • 43
  • 1
  • 3
  • 8

1 Answers1

1

Edit:

You added to your question that the host is a Linux server running Apache. You cannot run an ASP.NET application on Linux/Apache.

Prev: I'm leaving the information below for other people who might search for this problem when running IIS.

Locate the folder's physical location on the hard drive and pull up the Security settings. Depending on what operating system you are using, make sure the following have read/execute privileges (write as well depending on the functions of the site):

  • IIS_IUSRS
  • IUSR_MACHNAME
  • NETWORK
  • NETWORK SERVICE

If you still have problems, open the Web.config (or machine.config) and add

<identity impersonate="true" />

in the System.Web node.

Lawrence Johnson
  • 3,924
  • 2
  • 17
  • 30
  • Note: those are Windows users, and the OP is deploying to Linux/Apache! – Hans Kesting Nov 09 '12 at 09:39
  • The original post said nothing about linux/apache, which I'm not sure how anybody who has ever used Microsoft .NET would assume that the .NET framework would magically work on Linux. – Lawrence Johnson Nov 09 '12 at 09:54