johnnie
johnnie

Reputation: 2047

How to set default page of ASP.NET website

I need some help, I have purchased a domain and I am using visual studio to publish the website via FTP. It publishes successfully but when I go into the website I get the Directory Listing Denied error, and I am assuming that this is due to the fact that there is no home page because when I go the address and append /Page.aspx to the address it works fine.

Is there any way that I could set the default page for the website I am publishing to point to the default page?

Please help.

Thanks in advance.

Upvotes: 1

Views: 3736

Answers (3)

Internet Engineer
Internet Engineer

Reputation: 2534

You should have access to a ISP control panel where you can specify the default page.

They are usually the same pages in most ISPs:

  • Default.aspx
  • Index.aspx

Upvotes: 0

jrummell
jrummell

Reputation: 43067

Easy answer: rename your default page to Default.aspx.

Or, if you have access to IIS configuration settings, you can specify the default documents.

enter image description here

Upvotes: 4

COLD TOLD
COLD TOLD

Reputation: 13569

YOU need to spesify what page you want to use as your default based on the iis Default Document

Upvotes: 0

Related Questions