>>using System; >>using System.Collections.Generic; >>using System.Linq; >>using System.Text; >> >>namespace AccessTest >>{ >> public class Test1 >> { >> public string GetHello() >> { >> return "Hello"; >> } >> } >>} >>>>
>>Unhandled Exception: System.TypeInitializationException: The type initializer fo >>r 'RegAsm.RegAsm' threw an exception. ---> System.IO.FileNotFoundException: Coul >>d not load file or assembly 'Regcode, Version=1.0.3300.0, Culture=neutral, Publi >>cKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find t >>he file specified. >>File name: 'Regcode, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7 >>f11d50a3a' >> at RegAsm.RegAsm..cctor() >> >>WRN: Assembly binding logging is turned OFF. >>To enable assembly bind failure logging, set the registry value [HKLM\Software\M >>icrosoft\Fusion!EnableLog] (DWORD) to 1. >>Note: There is some performance penalty associated with assembly bind failure lo >>gging. >>To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus >>ion!EnableLog]. >> >> --- End of inner exception stack trace --- >> at RegAsm.RegAsm.Main(String[] aArgs) >>>>
RegAsm C:\Projects\Test\AccessTest\bin\Debug\AccessTest.dll /tlb:AccessTest.tlb