To deploy an ASP.NET Framework app to Windows hosting, build it in Release configuration, use a web.config transform to swap in the production connection string and turn off debug, create the SQL Server database and login in your control panel, upload the files by FTP or a publish profile without overwriting live data, and then test every page that touches the database. HostingGuru's Windows plans run IIS, ASP.NET 4.0 and SQL Server 2019 with the SolidCP control panel, so this guide targets .NET Framework applications such as Web Forms and MVC 5.
A word on scope: the plan page says ASP.NET 4.0, so this is a .NET Framework route. If you have a modern .NET app that is not built on the Framework, the VPS plans give you root access and a free hand, though the page notes a Windows licence is not included, so ask sales about Windows Server.
What the Windows plans give you
The Windows hosting page lists three plans, all with IIS, ASP.NET 4.0, SQL Server 2019, the SolidCP control panel, a file manager, DNS management, SSL support, and unlimited FTP and bandwidth. Starter at ₹1,999 per year allows 1 site, 1 GB and one 100 MB MS SQL database. Business at ₹2,999 allows 5 sites, 5 GB and five 500 MB databases. Premium at ₹4,999 allows 10 sites, 10 GB and ten 1 GB databases.
Check your database size first. If your development database is larger than the plan's limit, you will need to trim it or choose a bigger plan before you move.
Step 1: build in Release and use transforms
Microsoft's guide to web.config transformations explains that Visual Studio creates Web.Debug.config and Web.Release.config for each build configuration, and that you can add transforms for custom configurations such as a staging build. The transform files hold only the differences, and they are applied when you publish.
Two transforms matter most for production. First, the compilation element should have its debug attribute removed using xdt:Transform="RemoveAttributes(debug)". Second, the connection string should be replaced, using xdt:Transform="SetAttributes" with xdt:Locator="Match(name)", so the entry whose name matches is updated. Microsoft's example changes a data source and catalog for the Release build. You can also use a transform with Match(key) to set an appSettings value such as an environment label.
Keep your real production password out of source control. Many teams keep a transform file with placeholders and fill the real values in on the server.
Step 2: get the connection string right
Microsoft's page on ADO.NET connection strings points out that keywords must be exact: Integrated Security=true is valid, while IntegratedSecurity=true throws an error. It also warns that building connection strings by hand from unvalidated input risks string-injection attacks, and recommends the strongly typed connection string builders.
On a hosted SQL Server you normally connect with a SQL login, not Windows authentication, so the Integrated Security=True value in Microsoft's examples will not apply. Create the database and its user in SolidCP, then copy the server name, database name, user and password into the connection string exactly as the panel shows them. Treat the panel as the source of truth, not an old string from your laptop.
Put the string in the connectionStrings section of web.config and refer to it by name in your code, so the transform in step 1 can change it for production without code changes.
Step 3: move the database
Create the schema on the hosted database with scripts generated from your development database, and load only the data you need. Keep a copy of the scripts. Backups are the customer's responsibility on HostingGuru, and the backup policy says no backups are taken unless a managed backup service is in your order, so take your own database backup before and after the move and store it off the server.
Step 4: upload without overwriting live data
Plans include unlimited FTP and a file manager, so the simplest route is to publish to a folder on your PC and upload that folder's contents to the site root. If you use a Visual Studio publish profile, Microsoft's deploying to IIS tutorial describes publishing the Release configuration, verifying the connection, and the option to exclude files from the App_Data folder so a deployment does not replace live data. Ask support whether Web Deploy is enabled for your plan before you depend on it.
Step 5: test and fix the usual failures
- A generic error page: temporarily set
customErrorsto show the details for your own IP, find the cause, then put it back. Do not leave detailed errors on for visitors. - Login failed for user: the connection string user or password does not match the one in SolidCP, or the user has no rights on the database.
- File access errors: the app writes to a folder it has no right to, such as an upload directory. Use the panel's file manager to check permissions.
- Missing assemblies: a library was in your local GAC but not in the
binfolder. Set it to copy locally and republish. - Wrong framework version: the app targets a Framework version newer than the plan supports. Check the target in project properties against ASP.NET 4.0 on the plan page.
Then walk through every page that reads or writes the database, including the login and the forms that email you.
Choosing Windows or cPanel
If your site is PHP, MySQL or WordPress, cPanel hosting is the right platform. If it is ASP.NET and MS SQL, use Windows hosting. Do not try to mix the two. The FAQ page says the same: pick Windows for ASP.NET applications and MS SQL databases.