Connecting Tech Pros Worldwide Help | Site Map

How to upload my asp website with database on domain name

Newbie
 
Join Date: Jan 2009
Posts: 6
#1: Jan 6 '09
Hi
I have created my web pages in asp.net
I have a registered domain name and space
please tell me how to upload my website
i my website database is not attached so tell me how first ready my website to
upload ie how do i upload my database whch is in sql server with my website
and how do i my link my database with my website on remote server on which i have to upload my website.
can anyboby can help me please

contact me:<snipped>
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#2: Jan 6 '09

re: How to upload my asp website with database on domain name


Posting your email address or anyone else's email address is against the ruels outlined in the Posting Guidelines. Please take the time to familiarize yourself with the rules, especially the section on Things That are Unacceptable. I have removed your email address from your thread.

Anyways, you're asking how to deploy a web application.

First of all you need to make sure that your web server can support ASP.NET applications and that it is configured to use the .NET Framework that you developed your application for.

Once you're sure that the server can support ASP.NET, you need to make sure that your web server has SQL Server installed on it.

After you're sure that the server can support your application, you need to generate a script that sets up your database...you'll run this script on the web server and create the database that your web application uses.

After you've done this (and tested the database) you need to make sure that your web application is configured to access the database on the web server....

Then you need to upload the website to the web server and test it.

-Frinny
Newbie
 
Join Date: Jan 2009
Posts: 6
#3: Jan 7 '09

re: How to upload my asp website with database on domain name


hi
Thanks for reply
I am new to asp.net i have created a website in asp.net and my database is in sql server 2005 which is stored on my computer. Now please tell me how i upload my website and database on server.
On my pages i have used buttons. On click event of those buttons i have inserted values of text box into database. The connection string i used stores the data on my system database. This website is properlly executing on my local computer. on uploading this website on webserver i got following error:

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

Please help me
if you want please sent me some source through which i can send my website file to you so that you can check it
if you want you have my email id
please contact me personnally
please reply me
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#4: Jan 7 '09

re: How to upload my asp website with database on domain name


For now, change your Web.Config file so that Display Custom Errors is Off so that you can see what the error message is and make the appropriate changes to fix the application.
Familiar Sight
 
Join Date: Dec 2008
Posts: 202
#5: Jan 7 '09

re: How to upload my asp website with database on domain name


Hello Rajatagl

First you've to make sure that the connection string to your database isn't the absolute location on your machine, it should be relative to your site.
Second in Visual Studio from Build Menu select publish web site then type the target location http://www.bytes.com for example.
Newbie
 
Join Date: Jan 2009
Posts: 6
#6: Apr 11 '09

re: How to upload my asp website with database on domain name


for my new asp.net application i used Mysql as database.
I have made connection with database successfully

now i want to upload my application to server

how can i add my database file to my application's app_data folder because my database file is at some other location.

I want to know that how can i attach mysql database file with my asp.net application.

plz reply me....
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#7: Apr 13 '09

re: How to upload my asp website with database on domain name


You need to install MySQL onto the server. You can't just move database files there and expect it to work.

If you can't install MySQL onto the server, then install it on another sever and modify your code to connect to the new server.
Newbie
 
Join Date: Jan 2009
Posts: 6
#8: Apr 14 '09

re: How to upload my asp website with database on domain name


i have installed Mysql on server that is not the problem
The problem is that App_Data folder of my asp.net application is empty and my database file is in another D: drive so how do i add that database file to my application.

Plz reply...
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#9: Apr 14 '09

re: How to upload my asp website with database on domain name


When you publish your web application be sure to check the "Include files from the App_Data folder" check box.
Newbie
 
Join Date: Jan 2009
Posts: 6
#10: Apr 16 '09

re: How to upload my asp website with database on domain name


Thanks for replying

But my App_Data folder is empty. How do i include mysql database file in that folder. My data base file is on my Desktop.

Plz reply...
Newbie
 
Join Date: Jan 2009
Posts: 6
#11: May 6 '09

re: How to upload my asp website with database on domain name


Hi,

I want to export one of mysql table data to CSV file using PHP. how can it be done plz tell me.
Reply