Things you will need for deploying your own website:-
So Lets Get started
First of all login to somee.com and create a website by giving the domain name. Copy the ftp,http addresses it will be useful.
Then goto the database section and click "create a new database". Give a name that shouldn't have any special characters ie; only plain text should be given as name. After creating a new database click the "restore the database" seen at the bottom of the window. Browse for the backup and Upload it.
Note down the username, password and connection string for future use. Open the website's webconfig file and configure it using the following steps:
1. For showing custom error pages
<system.webServer>
<httpErrors>
<error statusCode="404" path="/url to custom error page here with extension" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
<system.web>
<customErrors>
<error redirect="/url to custom error page here with extension" statusCode="404" />
</customErrors>
</system.web>
NOTE: the above code must be inside the <configuration> section ie; <configuration> here </configuration>
2. For setting the start up page
<system.webServer>
<defaultDocument>
<files>
<add value="start up page with its extension" />
</files>
</defaultDocument>
</system.webServer>
NOTE: the above code must be inside the <configuration> section ie; <configuration> here </configuration>
3. For setting up the connection string to database
<connectionStrings>
<add name ="any meaningful name" connectionString="copy and paste the connection string that you got"
providerName="System.Data.SqlClient" />
</connectionStrings>
After the above step(3), goto the code where the connection strings are used and change it as shown below:
string connectionstring = ConfigurationManager.ConnectionStrings["name you have given in step 3"].ConnectionString;
Sqlconnection con = new SqlConnection(connectionstring);
con.open();
NOTE: import the namespace System.Configuration.
The website is configured and ready to be deployed. For that login to somee.com and click the domain(under the websites) that you have created. Click the file manager in that click upload. For uploading all the folders(like javascript,images,App_code folders) in the websites, create a .zip file containing
all the folders in it and choose that file and click upload and unzip archives. To upload all the other files(like all the files in the root directory with .aspx,.htm,.css extensions) in the websites, create a zip file containing all those files and choose that file and click upload and unzip archives. That's it click the url of the website and the index page of the website should load if everything is done correctly.
- Backup of the database
- Website itself (build)
- A somee account.
So Lets Get started
First of all login to somee.com and create a website by giving the domain name. Copy the ftp,http addresses it will be useful.
Then goto the database section and click "create a new database". Give a name that shouldn't have any special characters ie; only plain text should be given as name. After creating a new database click the "restore the database" seen at the bottom of the window. Browse for the backup and Upload it.
Note down the username, password and connection string for future use. Open the website's webconfig file and configure it using the following steps:
1. For showing custom error pages
<system.webServer>
<httpErrors>
<error statusCode="404" path="/url to custom error page here with extension" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
<system.web>
<customErrors>
<error redirect="/url to custom error page here with extension" statusCode="404" />
</customErrors>
</system.web>
NOTE: the above code must be inside the <configuration> section ie; <configuration> here </configuration>
2. For setting the start up page
<system.webServer>
<defaultDocument>
<files>
<add value="start up page with its extension" />
</files>
</defaultDocument>
</system.webServer>
NOTE: the above code must be inside the <configuration> section ie; <configuration> here </configuration>
3. For setting up the connection string to database
<connectionStrings>
<add name ="any meaningful name" connectionString="copy and paste the connection string that you got"
providerName="System.Data.SqlClient" />
</connectionStrings>
After the above step(3), goto the code where the connection strings are used and change it as shown below:
string connectionstring = ConfigurationManager.ConnectionStrings["name you have given in step 3"].ConnectionString;
Sqlconnection con = new SqlConnection(connectionstring);
con.open();
NOTE: import the namespace System.Configuration.
The website is configured and ready to be deployed. For that login to somee.com and click the domain(under the websites) that you have created. Click the file manager in that click upload. For uploading all the folders(like javascript,images,App_code folders) in the websites, create a .zip file containing
all the folders in it and choose that file and click upload and unzip archives. To upload all the other files(like all the files in the root directory with .aspx,.htm,.css extensions) in the websites, create a zip file containing all those files and choose that file and click upload and unzip archives. That's it click the url of the website and the index page of the website should load if everything is done correctly.