none
Error messages when you attempt to build a Class Library project in Visual Basic .NET RRS feed

  • Question

  • Hello,

    I am using Visual Studio 2005, the information is listed as below.

    Microsoft Visual Studio 2005
    Version 8.0.50727.762  (SP.050727-7600)
    Microsoft .NET Framework
    Version 2.0.50727 SP2


    When I rebuild the project, an error occuried.

    Error	3	The assembly 'Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
    PublicKeyToken=b03f5f7f11d50a3a' is not registered for COM Interop.
    Please register it with regasm.exe /tlb.
    So I followed the http://support.microsoft.com/kb/316163 to register microsoft.visualbasic.dll, and the types registered successfully.

    However when I switch back to Visual Studio .NET or Visual Studio 2005, and then rebuild the project. The error is still coming to me.

    Help will be appreciated.
    • Edited by ardmore Monday, February 22, 2010 6:43 PM To simpify text
    Monday, February 22, 2010 4:40 PM

Answers

  • Hi Ardmore,

    Thank you for your reply.

    After some research on your issue, I can reproduce this issue with the steps that I mentioned in my last reply on several machine. This scenario seems to happen even on Visual Studio 2008 and Visual Studio 2010.
    Thus, I have to admit that the behavior is less desirable.

    If it doesn't disturb you a lot, you can try providing me more information on your concern. I'm willing to help you to submit this issue on our Connect portal site:

        https://connect.microsoft.com/VisualStudio/ 

    Every feedback submitted will be evaluated carefully by our engineers. If our engineer can reproduce the scenario, they will let us know their comments further through that portal. This would be helpful to improve Visual Studio products.

    Thank you for your help.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by ardmore Thursday, February 25, 2010 4:17 PM
    Wednesday, February 24, 2010 7:25 AM

All replies

  • Hi Ardmore,

    Some clarification with you:
    What's your OS?

    For your concern, could you please help me to check the following points to eliminate the possible cause of your issue?

    - Run .NET Framework Verification Tool to verify .NET Framework 2.0 with SP2 on your machine.
      Please check the verification result from "Current Status".
    - If .NET Framework 2.0 SP2 can be verified on your machine, could you please try the following steps:
       1. Close Visual Studio 2005 instance
       2. Delete the files in the path: ....bin\Debug
       3. Re-open Visual Studio 2005
       4. Re-open your project
       5. Build your project again

    Hope this helps! Let me know if it works.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, February 23, 2010 8:00 AM
  • Hi Ardmore,

    I did some research on this issue further. It seems that I can reproduce the scenario that you came across on my machine.

    I created a Class Library project and followed the steps mentioned in the KB to reproduce. After I registered Microsoft.VisualBasic.dll manually, I got the same error message when I rebuilt the project. However, the DLL of my project (ClassLibrary1.DLL) was still generated in the path: ....bin\Debug. I also could manually register ClassLibrary1.DLL by using regasm command. Could you please help me to check these steps on your machine?

    Look forward to your reply.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, February 23, 2010 10:14 AM
  • I am not sure that I fully follow up you. But my OS is Win Sp 2. The log from Framework verification tool is too long.
    Here is some results.
    [02/23/10,09:46:30] Detected operating system: Windows XP (x86)
    [02/23/10,09:46:30] Install state for .NET Framework 1.0: not installed.
    [02/23/10,09:46:30] Install state for .NET Framework 1.1: installed with service pack 1.
    [02/23/10,09:46:30] Install state for .NET Framework 2.0: installed with service pack 2.
    [02/23/10,09:46:30] Install state for .NET Framework 3.0: installed with service pack 2.
    [02/23/10,09:46:30] Install state for .NET Framework 3.5: installed with service pack 1.
    [02/23/10,09:46:30] Install state for .NET Framework 4 Client: not installed.
    [02/23/10,09:46:30] Install state for .NET Framework 4 Full: not installed.
    [02/23/10,09:46:30] Not adding product '.NET Framework 1.0' because it is not currently installed
    [02/23/10,09:46:30] Not adding product '.NET Framework 1.1' because it is not currently installed
    [02/23/10,09:46:30] Not adding product '.NET Framework 2.0' because it is not currently installed
    [02/23/10,09:46:30] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
    [02/23/10,09:46:30] Not adding product '.NET Framework 3.0' because it is not currently installed
    [02/23/10,09:46:30] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
    [02/23/10,09:46:30] Not adding product '.NET Framework 3.5' because it is not currently installed
    [02/23/10,09:46:40] Starting verification for product .NET Framework 1.1 SP1
    [02/23/10,09:46:40] Section [Files - .NET Framework 1.1] - start parsing entries
    [02/23/10,09:46:40] File C:\WINDOWS\system32\mscoree.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\system32\mscorier.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\system32\mscories.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\system32\MUI\0409\mscoreer.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\Accessibility\1.0.5000.0__b03f5f7f11d50a3a\Accessibility.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\cscompmgd\7.0.5000.0__b03f5f7f11d50a3a\cscompmgd.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\CustomMarshalers\1.0.5000.0__b03f5f7f11d50a3a\CustomMarshalers.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\IEExecRemote\1.0.5000.0__b03f5f7f11d50a3a\IEExecRemote.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\IEHost\1.0.5000.0__b03f5f7f11d50a3a\IEHost.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\IIEHost\1.0.5000.0__b03f5f7f11d50a3a\IIEHost.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\ISymWrapper\1.0.5000.0__b03f5f7f11d50a3a\ISymWrapper.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\Microsoft.JScript\7.0.5000.0__b03f5f7f11d50a3a\Microsoft.JScript.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\Microsoft.VisualBasic.Vsa\7.0.5000.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.Vsa.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\Microsoft.VisualBasic\7.0.5000.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\Microsoft.VisualC\7.0.5000.0__b03f5f7f11d50a3a\Microsoft.VisualC.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\Microsoft.Vsa.Vb.CodeDOMProcessor\7.0.5000.0__b03f5f7f11d50a3a\Microsoft.Vsa.Vb.CodeDOMProcessor.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\Microsoft.Vsa\7.0.5000.0__b03f5f7f11d50a3a\Microsoft.Vsa.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\Microsoft_VsaVb\7.0.5000.0__b03f5f7f11d50a3a\Microsoft_VsaVb.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\mscorcfg\1.0.5000.0__b03f5f7f11d50a3a\mscorcfg.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\Regcode\1.0.5000.0__b03f5f7f11d50a3a\RegCode.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Configuration.Install\1.0.5000.0__b03f5f7f11d50a3a\System.Configuration.Install.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Data.OracleClient\1.0.5000.0__b77a5c561934e089\System.Data.OracleClient.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Data\1.0.5000.0__b77a5c561934e089\System.Data.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Design\1.0.5000.0__b03f5f7f11d50a3a\System.Design.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.DirectoryServices\1.0.5000.0__b03f5f7f11d50a3a\System.DirectoryServices.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Drawing.Design\1.0.5000.0__b03f5f7f11d50a3a\System.Drawing.Design.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Drawing\1.0.5000.0__b03f5f7f11d50a3a\System.Drawing.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.EnterpriseServices\1.0.5000.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.EnterpriseServices\1.0.5000.0__b03f5f7f11d50a3a\System.EnterpriseServices.Thunk.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Management\1.0.5000.0__b03f5f7f11d50a3a\System.Management.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Messaging\1.0.5000.0__b03f5f7f11d50a3a\System.Messaging.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Runtime.Remoting\1.0.5000.0__b77a5c561934e089\System.Runtime.Remoting.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Runtime.Serialization.Formatters.Soap\1.0.5000.0__b03f5f7f11d50a3a\System.Runtime.Serialization.Formatters.Soap.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Security\1.0.5000.0__b03f5f7f11d50a3a\System.Security.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.ServiceProcess\1.0.5000.0__b03f5f7f11d50a3a\System.ServiceProcess.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Web.Mobile\1.0.5000.0__b03f5f7f11d50a3a\System.Web.Mobile.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Web.RegularExpressions\1.0.5000.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Web.Services\1.0.5000.0__b03f5f7f11d50a3a\System.Web.Services.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Web\1.0.5000.0__b03f5f7f11d50a3a\System.Web.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Windows.Forms\1.0.5000.0__b77a5c561934e089\System.Windows.Forms.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System.Xml\1.0.5000.0__b77a5c561934e089\System.Xml.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Assembly\GAC\System\1.0.5000.0__b77a5c561934e089\System.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\NETFXSBS10.exe is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\NETFXSBS10.hkf is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_diasymreader.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_iehost.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_microsoft.jscript.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_microsoft.vsa.vb.codedomprocessor.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_mscordbi.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_mscorrc.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_mscorsec.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_system.configuration.install.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_system.data.dll is installed on the system
    [02/23/10,09:46:40] File C:\WINDOWS\Microsoft.NET\Framework\sbs_system.enterpriseservices.dll is in
    .......
    .......
    .......
    
    When I create a new project, it rebuild succeeded.
    Tuesday, February 23, 2010 2:55 PM
  • Hi Ardmore,

    Thank you for your reply.

    After some research on your issue, I can reproduce this issue with the steps that I mentioned in my last reply on several machine. This scenario seems to happen even on Visual Studio 2008 and Visual Studio 2010.
    Thus, I have to admit that the behavior is less desirable.

    If it doesn't disturb you a lot, you can try providing me more information on your concern. I'm willing to help you to submit this issue on our Connect portal site:

        https://connect.microsoft.com/VisualStudio/ 

    Every feedback submitted will be evaluated carefully by our engineers. If our engineer can reproduce the scenario, they will let us know their comments further through that portal. This would be helpful to improve Visual Studio products.

    Thank you for your help.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by ardmore Thursday, February 25, 2010 4:17 PM
    Wednesday, February 24, 2010 7:25 AM