Avatar of Todd Stafford
Todd Stafford
Flag for United States of America asked on

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...
ASP.NET.NET Programming

Avatar of undefined
Last Comment
Ashok

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ashok

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Todd Stafford

ASKER
Perfect.  Thank you.
Ashok

Please accept my solution if it worked for you.

Thanks
Ashok
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23