Results 1 to 6 of 6
  1. #1
    New Lounger
    Join Date
    Mar 2006
    Location
    Whittier, California, USA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Updating Visual Studio Reference Version

    Hello All,

    I'm learning how to write ASP applications using Visual Studio 2005. My computer was originally set up with NET Framework 1.1, which was later upgraded to version 2.0. I am trying to put a WebPartManager into a web form but Visual Studio won't recognize it. I think it's because under References, System.Web.dll is listed as version 1.0. I tried deleting this, and then clicking Add Reference, Browse to my NET 2.0 Folder, and clicking this dll. However, I get the following error message:

    A reference to 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.W eb.dll' could not be added. This is not a valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that tthe file is accessible, and that it is a valid assembly or COM component.

    Under IIS, Default Web Site my ASP.NET settings version is 2.0.

    Does anybody know how I can fix this?

    Thanks,

    Kevin

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Updating Visual Studio Reference Version

    Might make sense to slide this over to the .Net board. Even though that board isn't limited to ASP.Net, what you're asking appears to be rather .Net-centric. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  3. #3
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Minneapolis, Minnesota, USA
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Updating Visual Studio Reference Version

    Just a thought (after overhearing a consultant the other day), are you sure that version1.1 was uninstalled and then 2.0 was installed? Otherwise, 1.1 and 2.0 apparently can reside on the same machine and they don't play nice with each other. This then, could be the cause of the error message you're getting and the odd reference.

    Your safe bet is to look to see if you have both versions by doing an Add/Remove Programs and see if you have two versions of Microsoft Net Framework. If you're okay here, then maybe someone else can help figure this out?
    Carpy Diem, it&#39;s .

  4. #4
    New Lounger
    Join Date
    Mar 2006
    Location
    Whittier, California, USA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Updating Visual Studio Reference Version

    Yes, I had both versions of ASP.NET installed. I removed version 1.1 using Add/Remove Programs. Now I cannot get Visual Studio to open any of my previous projects or start a new one. The program just crashes when I try (We're sorry, this program has encountered a problem and must close ...).

    How do I tell Visual Studio to use ASP.NET version 2.0 instead of 1.1?

    Kevin

  5. #5
    4 Star Lounger
    Join Date
    Feb 2004
    Location
    Saint Charles, Missouri, USA
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Updating Visual Studio Reference Version

    If you had both versions on originally - THEN removed 1.1, you still may have the conflict Peggy mentioned.

    At this point, you need to un-install both. I would also remove any "remnent" subdirectories and perform a registy clean (there are some free registry cleaners). Then install the newer version of ASP.NET.

    NOTE:Backup and save all the data files to be safe. You can add them back in after ASP.NET has been re-installed and verified working.
    Scott

  6. #6
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Minneapolis, Minnesota, USA
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Updating Visual Studio Reference Version

    Kevin,

    Sorry you're having more problems than you had before. I didn't mean to imply that you should uninstall 1.1, it's just the only way I know to verify that you had both versions. Now that you have uninstalled it, supposedly, if you try to open a project that was written in 1.1 and now you have 2.0, VB.NET should allow you to "convert" to the new version, but it appears that something else is going on instead. This doesn't address the issue of not being able to start a new project.

    Trying Scott's suggestion will probably help.
    Carpy Diem, it&#39;s .

Posting Permissions

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