How to upload my asp website with database on domain name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajatagl
    New Member
    • Jan 2009
    • 6

    How to upload my asp website with database on domain name

    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>
    Last edited by Frinavale; Jan 6 '09, 07:28 PM. Reason: email address removed
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    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
    Last edited by Frinavale; Apr 25 '12, 02:28 PM. Reason: Removed moderation message from post.

    Comment

    • rajatagl
      New Member
      • Jan 2009
      • 6

      #3
      how to upload my site

      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 -->

      <configuratio n>
      <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 "defaultRedirec t" attribute of the application's <customErrors > configuration tag to point to a custom error page URL.

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

      <configuratio n>
      <system.web>
      <customErrors mode="RemoteOnl y" 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

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        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.

        Comment

        • Bassem
          Contributor
          • Dec 2008
          • 344

          #5
          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.

          Comment

          • rajatagl
            New Member
            • Jan 2009
            • 6

            #6
            deploying my asp.net application with mysql database

            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....

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              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.

              Comment

              • rajatagl
                New Member
                • Jan 2009
                • 6

                #8
                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...

                Comment

                • Frinavale
                  Recognized Expert Expert
                  • Oct 2006
                  • 9749

                  #9
                  When you publish your web application be sure to check the "Include files from the App_Data folder" check box.

                  Comment

                  • rajatagl
                    New Member
                    • Jan 2009
                    • 6

                    #10
                    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...

                    Comment

                    • itBasheer
                      New Member
                      • Apr 2012
                      • 2

                      #11
                      Itbasheer

                      Originally posted by rajatagl
                      Hi,

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

                      This is good question. I also have same question in my mind. My idea is, Before Uploading to your domain, Something you have to add the SQL Database file to your ASp.Net project. I think, This is the way. Generate Database and SQl tables wthin your Asp.Net Project and then RUN and check whether it is running successfully. After that you can upload your project to your domain. Hope this will work. Thanks.

                      Comment

                      • itBasheer
                        New Member
                        • Apr 2012
                        • 2

                        #12
                        I mean include your SQL database into your ASp.Net project and then upload it to your domain. Thanks.

                        Comment

                        Working...