Blog | How to host MVC application in SmarterASP.NET web hosting

How to host MVC application in SmarterASP.NET web hosting

Posted on Wednesday, October 25, 2017

Following are the steps to host your web application  in online web hosting. Here, the application is hosted in SmarterASP.NET.

  1. In visual studio, right click Project in Solution Explorer and click Publish.
    1. In profile, click Custom and give a name. E.g. SmarterAsp
    2. In connection, select File System as a publish method and browse a folder in the target location. The target location is where the required files for deployment will be produced after published.
    3. In configuration, select Release as a Configuration and leave other File Publish Options as default.
    4. In preview, click Publish and check the Output Window in Visual studio for the success or error.
  2. In the target location, necessary files for deployment will be generated except database file.
  3. Now, make a zip file for this targeted folder.
  4. Go here to sign up for a trial account. After signup, verify your email.
  5. Login here
  6. In the dashboard, click Try Now to start a 30 Days Free Trial. Remember you can extend to 60 days trial if you share SmarterAsp hosting site. 
    SmaterASP.NET Dashboard
  7. Now, select the server location that you preferred, select ASP.NET in Website Type, tick Facebook Bot option. You can leave other options as default. Remember here, the Site1 is the folder where you need to upload the files. Click Next. 

  8. In the next section, click Submit and wait. After few seconds, you will be redirected in the dashboard again, click Control Panel.
  9. In the control panel, you see the following details. Here, is the domain name. 
    My websites page
  10. Now, click Files icon at the top and open site1 folder.
  11. Inside site1 directory, upload the targeted folder .zip file, unzip it and then you can delete the .zip file.
  12. Click Databases icon at the top. Then, click MSSQL database, fill up name, password and disk quota(space) for database and click Submit. 
    Database Manager
  13. Click Actions drop down button and select Attach MDF file to Database. Now, upload the database (.mdf) file.
  14. After successful database upload, expand Connection String Examples and copy the ASP.NET connection string and replace the connection strings in the web.config. 
    Connection Strings
  15. Now, your website is ready to access via the domain name from the step 9.