There are a lot of developers out there that create and test web applications on their local computers. For the most part things are done correctly and everything on their end seems to be correct. But when they upload or publish it to their hosting service, they get errors and all sorts of different problems. This can leave a developer confused and scratching their heads. They go back to their computer, check the code, and everything looks correct. Then they run their web application on their computer and it pulls up nicely. No errors and no hint of anything are wrong with the application. Yet when they publish the files to the web server, it doesn’t work.
Why?
When you use these tools, the IDE engine that will render the site automatically plugs in all the required assemblies and components, thus giving you a false perception that the application is fully functional. But when you upload it to a hosting web server, the assemblies and components needed to run the application are not attached with the deployment unless you manually set them to be.
If you really want to test your web application before you deploy it to a production server, install IIS Server on your computer. For Windows 7 and Windows Vista, it already comes with IIS, you merely have to enable it. The application can be enabled in Control Panel/Programs/Turn Windows Features On/Off. Scroll down and install all of the IIS components. IIS stands for Internet Information Services, and it is the application that Microsoft uses to publish a web site. The root will be created under C:/Inetpub/wwwroot. Copy your test site into that folder and in your browser type; http://localhost. IIS will automatically serve it to you just as a production web server would.
You will be surprised to see that it may generate an error, while the View in Browser mode in your IDE it is displayed without any problem. This is a tell-tale sign that something is missing, and if your IIS web service cannot render the page correctly on your local computer, you can be fairly sure it will not be rendered correctly on a web hosting production server.