I have created one asp.net website (project) with the help of Microsoft Visual Studio 2010. The database of the respective project is designed with the help of Microsoft SQL Server Management Studio 2008. Now I want to publish the website on the internet. Can somebody please guide me in this? Thanks in advance.
2 Answers
- You need a Windows hosting provider (a provider that uses windows servers) that supports all the technologies you used (MVC maybe?)
- Remove all debugging code (if any) from your application and modify the web.config as needed
- upload the whole project folder (without the .sln file) to the server and try to run the website
- if you run into an error, ask a good question on stackoverflow :-)
Please note: StackOverflow is not a tutorial site and is only for specific questions like "What and where are the stack and heap?" not "How to write a hello world application in C#". While I am answering this question, please avoid asking such broad questions in the future.
1 Comment
kkkristo
I dare to say, this is a great lack of this place in some cases, as it is really difficult to find a reccomended, documented path to deploy a web asp.net app besides of Azure. On the other hand, somehow developers do. Maybe we ask wrong questions? I also finished my asp.net CRM-like project. It works fine on local machine. But I got stucked on how to safely deploy it to hosting server other than Azure.
Consider trying azure.
You get more control over what you do and its really simple to publish
http://azure.microsoft.com/en-us/pricing/free-trial/
Azure hosts its own database so you just move your tables into it.. there are a ton of guides on how to start this
Web.Configfile. Generally this would be managed by theWeb.configtransform files, which are unique per build configuration.