Results 1 to 2 of 2

Thread: converting from vs2003 to vs2005

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    Central NY
    Posts
    172

    converting from vs2003 to vs2005

    I just loaded visual studio 2005 on my new vista latop and after bringing over my asp.net projects, I tried to work with one of them and received numeruos errors. The one I can't figure out is the system.configuration.appsetting.get
    It is giving me and error and I don't know the correct command to use.
    Can anyone tell me what replaced this command?

    I also noticed that my web pages will not display because I now have errors inthe html that I did not have before.

    Anyhelp would be appreciated.

  2. #2
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: converting from vs2003 to vs2005

    There something, but not much, you can do about converting your 2003 projects to 2005. Make sure you create a backup copy of 2003 projects before opening them in 2005.

    MSDN - Step-By-Step Guide to Converting Web Projects from Visual Studio .NET 2002/2003 to Visual Studio 2005

    It should be System.Configuration.ConfigurationManager.AppSettings["name"];

    If your Web.config file looks like this:
    Code:
    <configuration>
      <appSettings>
        <add key="appset" value="Hello Appsettings"/>
      </appSettings>
      
      <system.web>
        ----
      </system.web>
    </configuration>
    Then you can access this value like:
    Code:
    myLabel.Text = System.Configuration.ConfigurationManager.AppSettings["appset"].ToString();
    Show Appreciation. Rate Posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width