what changes I need to do when migrate a website from windows XP to windows server 2003?

Last post 07-21-2009 5:28 AM by suanleba. 4 replies.

Sort Posts:

  • what changes I need to do when migrate a website from windows XP to windows server 2003?

    07-03-2009, 5:07 AM
    • Member
      4 point Member
    • suanleba
    • Member since 01-16-2009, 2:43 AM
    • Posts 38

     Hi,

    we have a website which is developed in VWD 2008(SQL server 2008 express used) in a windows XP based PC, now we are deploying the website by setting up a web server with windows server 2003 & SQL Server 2008 standard installed, I have a few questions:

    1)what's the set up or configuration changes in windows server 2003,SQL server 2008 standard, IIS and anything else?

    2)we have data request and user login informations saved in a SQL database, when migrate from XP to server 2003 and SQL server 2008, what's the setting changes in sourcecode? such as connectionstrings changes in web.config? we use Gridview control and banding to SQL database,connectionstrings for sqldatasource related needed to be changed in web.config as well,right?

    I found usually there were valuable links regarding to certain topics were given out in some threads in this forum. I hope I can get tutorail or valuable links for my questions as well.

    Pls help!thanks.

  • Re: what changes I need to do when migrate a website from windows XP to windows server 2003?

    07-03-2009, 6:33 AM
    Answer
    • Member
      274 point Member
    • scngan
    • Member since 04-21-2006, 3:55 AM
    • Posts 62

     hi suanleba,

    well, for the IIS in W2k3 and XP are the same, setting up for sql server 2008 will be the same as well except the mssql server name. others than that, mostly are the same.

    for the 2nd question. you will need to make sure your exisitng connectionstring works with your deploy server. perhaps maybe the server name will change and is depends on your mssql server again.

    another thing that you might 1 to take notice will be the common System.Web.Extension.dll file.
    You will need to upload into your BIN folder of your project.
    http://blog.scnetstudio.com/?tag=/system.web.extensions+error

    Hope it help you

    *** Please remember to click "Mark as Answer" on this post if it helped you ***

    http://blog.scnetstudio.com
  • Re: what changes I need to do when migrate a website from windows XP to windows server 2003?

    07-04-2009, 3:28 AM
    Answer

    Hello,

    Take in mind that if you set security permissions in Windows XP the application is running by ASP.NET machine user, but in Windows server 2003 by the Network machine user.

    Regards

  • Re: what changes I need to do when migrate a website from windows XP to windows server 2003?

    07-13-2009, 5:38 AM
    • Member
      4 point Member
    • suanleba
    • Member since 01-16-2009, 2:43 AM
    • Posts 38

     Thanks. I map to the web server from my local XP PC, then copy all my web site files to the web server, IIS virtual directory is created in server, then in VWD, loading the website from mapped server, change all connectionstrings by configure datasource of all controls which banding to database. click F5 to run, login page appears, in login page when login with username/password I created before in XP based PC, error shows:

    SQL error 5110,... the file Z:\...\ASPNETDB_TMP.MDF is on a network path is not supportee for database files. create DATABASE failed.

    when I open web administrator tool in VWD, then click security button on it, it shows same error message as above.

    when I run my website in IE, http://servername/applicationname, it shows viewing details error are prevented remotely, I need add <customErrors mode="off"/> in web.config, when I added, still the same error.

    do you know why, how can I troubleshoot and solve the above problems??

    thanks 

  • Re: what changes I need to do when migrate a website from windows XP to windows server 2003?

    07-21-2009, 5:28 AM
    • Member
      4 point Member
    • suanleba
    • Member since 01-16-2009, 2:43 AM
    • Posts 38

    more infor for my errors, when run the website from http://webservername/applicationname/login.aspx the login page appears, but when try login, error appears as below:

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    SQLExpress database file auto-creation error:

    The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:

    1. If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
    2. If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
    3. Sql Server Express must be installed on the machine.
    4. The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.

    Background :

    when I copy th full website files from XP pc to the web server, IT guys help me to add my databse files from APP_DATA to SQL server already, so no database files available in web server APP_DATA folder, but from the error we can see it's still SQLExpress database related error.

    anybody knows what's wrong with this? thanks

Page 1 of 1 (5 items)