error message Could not load file or assembly 'Select Case\, Case Else'. Exception from HRESULT: 0x80131047

hi all
I'm just starting with visual studio 2005. I've had no problems so far, except when I used 'Select Case'. when I hit f5 I get the following error:

-----
Error while trying to run project: Could not load file or assembly 'Select Case\, Case Else' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
-----

would someone tell me what could be the problem and how to fix it I'd really appreciate it

thanx!


Answer this question

error message Could not load file or assembly 'Select Case\, Case Else'. Exception from HRESULT: 0x80131047

  • Shadow Chaser

    You could have a syntax error somewhere else in your code. If you put the following code in a button in a new project, does the error occur

    Dim MyInt as Integer

    MyInt = -1

    Select Case 3
    Case 0 MyVar = true
    Case 1 MyInt = 1
    Case 2 MyInt = 2
    Case Else MyInt = 3
    End Select

    You could have a bad install. See the following link to do a clean uninstall of Visual Studio, http://msdn.microsoft.com/vstudio/support/readme/default.aspx#Tool.

    Also, this alias you have posted to is Geared towards, Visual Studio 2005 Team System. You my get better results if you post to Visual Basic Language, http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=64&SiteID=1.



  • error message Could not load file or assembly 'Select Case\, Case Else'. Exception from HRESULT: 0x80131047