ASP.NET Default Document is not published properly

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...
Todd StaffordAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AshokSr. Software EngineerCommented:
In the web.config file

<system.webServer>
  <defaultDocument>
    <files>
      <clear />
      <add value="Pages/homepage_hq.aspx" />
    </files>
  </defaultDocument>
</system.webServer>

HTH
Ashok

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Todd StaffordAuthor Commented:
Perfect.  Thank you.
AshokSr. Software EngineerCommented:
Please accept my solution if it worked for you.

Thanks
Ashok
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.