Results 1 to 6 of 6

Thread: Tutorial Resources for Web Deployment/Publishing

  1. #1
    Join Date
    Sep 2003

    Tutorial Resources for Web Deployment/Publishing

    Hi! I've been doing development for nearly 10 years now but believe it or not, it has all been within corporate structures so I haven't had to do any 'heavy lifting'.

    I NEED to find a simple tutorial on how to simply deploy a web site to a server using a remote DB connection. Every tutorial I've found has you create a SQL Express DB in the App_Data section to learn how to put the site together.

    Well I want to be able to put this stuff on the Web and I can't for the life of me find something simple to show me how.

    I know I will likely get flames or noob comments or whatever, however I'd appreciate someone pointing me in the right direction on where to start. (I'm currently trying to put an MVC application up there and I keep getting errors from the Web.config regarding authentication).

    Thanks in advance.

  2. #2
    Join Date
    Dec 2009
    yes when you create asp.net website in visual studio, you will be creating data base in APP_DATA folder, this will work in your local system but when you try to host in the hosting environment, the hosting provider will give only one database(shared hosting)

    so what you have to do is

    in the web developer express go to database explorer (in visual studio go server explorer)

    right click on the prefered database and select publish to provider

    this will launch a wizard , follow the onscreen instructions. This will generate a complete sql script of your database.

    use this script to create database in your hosting provider. Get the connection string from hosting provider and use in web.config file

    the connection string may look like this in the web.config file

    <add name="ConnectionString" connectionString="Data Source=SERVERNAME;Database=DATABASENAME;user id=USERNAME;password=PASSWORD;" providerName="System.Data.SqlClient"/>

    now you can get a remote connection to your database,

    just ftp your files to the hosting space and run your site.

    you may have to modifiy your files according to the new connection string to.

    good luck

  3. #3
    Join Date
    Sep 2003

    Actually I am able to connect to the remote database while developing. It is when I move the PAGES to the server that I begin to have trouble.

    Here is the specific url: http://www.webfridge.info/LoL. As you can see, I have an error in the Web.config.

    I can't even find where to manage the login stuff for this. I am just practicing so I really do not are about people logging in for one thing, but I do not know how to disable it. I simply commented it out and then got an error for the next line.

    I will say that I did NOT create the DB in App_Data first, I just created tables remotely (and the DB seems to have the login tables there too. Apparently GoDaddy will autogen them for you if you want). Is that my mistake? Should I create it locally first?
    Last edited by Evie; 01-14-2010 at 08:22 AM.

  4. #4
    Join Date
    Nov 2009
    Check the following:

    In IIS, right click and go to the properties for the Virtual Directory. In the virtual directory tab, in the application settings box, click 'create' to add it as an application.

    FWIW I developed locally with an instance of sql express, and then deployed to a VPS. I had a few teething problems with the database, mainly with permissions and usernames, and a couple of errors with IIS, one of which I believe you are having.

    Hope this is of some help.

  5. #5
    Join Date
    Sep 2003
    Well I use GoDaddy as my server so I don't have access to it's IIS and stuff. I did add a directory called 'lol' (it wouldn't take the capital letters).

    I'm just at a loss. I'd really just like to have a tutorial that shows you what to do from beginning to end as far as deploying to a remote server.

  6. #6
    Join Date
    Dec 2009
    Quote Originally Posted by Evie View Post
    Well I use GoDaddy as my server so I don't have access to it's IIS and stuff. I did add a directory called 'lol' (it wouldn't take the capital letters).

    I'm just at a loss. I'd really just like to have a tutorial that shows you what to do from beginning to end as far as deploying to a remote server.

    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
    this is the error in the page...when you created this folder, in the godaddy control panel go to IIS settings and set that folder as application root.

    deploying to the webserver is easy... but to demonstrate from starting to end is difficult in a forum.

    and it is not the same in all the webhosting companies... in some companies the cp will be different.

    what you are trying to do is the same in all servers.

    just post your next error I will take care


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.13058 seconds
  • Memory Usage 2,893KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (6)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates