How To Upload Asp.net Website On Godaddy Server
Introduction
In this article, I volition explicate to you how to host your website to GoDaddy Server. I volition also explain how y'all can create a database server on GoDaddy. But the process nosotros would follow will non be only for GoDaddy, information technology tin can be followed for all other hosting services.
To host your ASP.Cyberspace MVC website on GoDaddy, you must have Windows plan.
Permit's start step past step.
Pace 1
Go to GoDaddy and login with your account credentials.
Step 2
Now, your Account page volition open where you volition get WEB HOSTING. Click on Manage button.
Step 3
After that, yous will go your hosting server folio. From at that place you can add new domain for a new website or you tin likewise add together new sub domain for a new website.
Pace four
Now either Add New Domain or Add together Sub Domain. I am going to add new sub domain. When you lot will add new sub domain you lot volition go the following page.
Step 5
After adding sub domain, your website will be live and that will look similar as follows,
Stride vi
After giving the proper noun of the website and folder name click on OK push. And so information technology volition create a folder for your website which is given in Document Root textbox. Your binder volition be like as follows.
Step 7Now create an FTP user for your account past clicking on FTP Access.
Stride 8Now click on Add FTP Account.
Step 9Now, make full the following course subsequently clicking "Add New FTP Account" button.
Step tenAfterward completing this procedure, get back to your Server abode page and create database on the server if you have in your projection.
Pace 11Now, click on Add together New Database Push.
Step 12Fill the following form to create the database on the Server.
Step 13
After completing this process, let's flip to Visual Studio and open up the web application which y'all want to host. In this article I am hosting my old article "jTable CRUD Performance using MVC". To host your spider web awarding, first of all right click on the project and click on the Publish.
Step 14Afterwards clicking on publish button, ane dialog box volition open for spider web publishing. Outset of all, y'all have to create new profile.
Give any name for your profile and click on Next button.
Step 15Now, brand the connection with your FTP server, provide user proper name countersign for your FTP server and Validate Connexion.
Step sixteenAfter validation, click on Next push button and employ the following settings.
Step 17Now, click on Publish push button and expect for publishing.
Step 18
Later on publishing the website, flip to GoDaddy server page once again and click on ASP.NET Settings.
Step 19Write Connectedness Cord for your server side database.
Step 20
Open Visual Studio again and update database from package manager, once again writing same connection string in web.config of your project in Visual Studio. Open package manager paneland blazon the following command,
- pm>update-database
Pace 21
At present, quickly open your website by my website URL that is "http://c-sharpcorner.sourabhsomani.com/" . When you volition run website y'all will get the following error,
Note
This is the normal error which will come every fourth dimension when you will host your website. To fix this error y'all have to modify your spider web.config on server side.
Step 22To fix to a higher place mistake open your website directory on server. To open that click on File Manager.
Step 23Click on Web.Config,
Step 24Now click on Edit in Text Editor button which will be bottom of the Text Surface area.
Step 25Now add together 2 lines in web.config. That is as follows:
Stride 26Now finally, run your website with your domain. I am surfing by the following URL.
Output
Conclusion
In this commodity, we have learned the following.
- Hosting our ASP.Cyberspace and ASP.Net MVC website.
- Creating FTP Client on the Server.
- Creating database on the Server.
- Fixing Errors when publishing our website.
- Updating database which is located on server side using Package Manager Console.
Important Link
Source: https://www.c-sharpcorner.com/article/how-to-host-your-Asp-Net-mvc-website-on-godaddy-server/
Posted by: andraderessivoisin1962.blogspot.com
0 Response to "How To Upload Asp.net Website On Godaddy Server"
Post a Comment