We help IT Professionals succeed at work.
Get Started

ASP.NET Default Document is not published properly

Todd Stafford
on
125 Views
Last Modified: 2017-12-09
When I created a new ASP.Net project in VS 2055 (community), I decided to create a home page for the site called homepage_hq.aspx.
I right-clicked, and made it the default doc in VS 2015, and everything works properly when I compile and run locally.

I used the built-in "Publish" feature in VS to publish to a server running IIS 7.0.  After publishing, I am having to add the default document.  It shows as entry type "Local" after I enter it, unlike the other entries like default.htm which are "Inherited."  But, when I publish again, it gets wiped-out.

How can I get the site to keep the default document, or how can I make it part of the publish process?  I know I could just move the code to default.aspx and be done with it, but what's the fun in that...
Comment
Watch Question
Sr. Software Engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE