Http 404 error after publishing
I have published a web application in asp.net using Visual Studio 2012 using web deploy... The publish was succeeded and after that when I entered localhost/Sitename in the browser it shows 404 error... What are the steps to be done in IIS to prevent this error...
Have you verified that the files were actually published to the server? Sometimes files aren't published because the Build Action is set incorrectly.
If the files are there, then it could be the IIS configuration. What is your default page? If it's not Index or Default then IIS may need to be configured to load the site on the correct page