Uploading ASP.NET Website to Free Hosting

Sep 4, 2024

Uploading ASP.NET Website to Free ASP Hosting

Overview

  • Tutorial on uploading an ASP.NET website to free ASP hosting.
  • Demo website allows for CRUD operations (Create, Read, Update, Delete).

Steps to Upload Website

1. Sign Up for Free ASP Hosting

  • Visit freeasp.net hosting site.
  • Scroll to login section, but focus on signing up.
  • Signup process involves:
    • Provide an email address.
    • Choose a unique username.
    • Set a password (less than 15 characters).
    • Copy the verification code.
  • Click on the "Sign Up" button.

2. Create a Database

  • Upon signing up, you will be redirected to the dashboard.
  • Click on "Manage Databases" then "Add Database."
    • Database name should match the username.
    • Set a password for the database.
    • Click "OK" to create the database.

3. Import Database

  • Import requirements:
    • File size must be large enough.
    • Database file must be in SQL 2016 format.
  • Instructions provided on converting SQL 2019 backup to 2016.
  • Steps to Import:
    • Go to "My Files" and click on "Upload."
    • Upload the 2016 version of the database backup.
    • Go back to "Manage Databases" and import the backup file.

4. Connect Database to Local Website

  • Edit web.config file for connection string:
    • Find and modify the connection string:
      • Replace data source and set the server name.
      • Change initial catalog to your database name (which matches your username).
      • Remove integrated security and set user ID and password accordingly.
  • Run the project to ensure it connects to the online server.

5. Publish the Application

  • Zip the published files before uploading.
  • Publish Steps:
    • Click on "Publish" and add a profile.
    • Choose a folder (e.g., create a folder named "publish" on Desktop).
    • Click "Publish" to generate the output.
  • Navigate to the "publish" folder and zip the contents.

6. Upload the Zip File to Free ASP Hosting

  • Go to "My Files" on the hosting dashboard.
  • Click on "Upload" and select the zipped project folder.

7. Verify Website Functionality

  • Navigate to your domain to see if the website is loaded correctly.
  • Test CRUD operations (e.g., creating a user, deleting a record).

Conclusion

  • The tutorial effectively demonstrates how to upload and manage an ASP.NET website on freeASP hosting.
  • Call to action: like the video if helpful, consider subscribing for more content.