Here's what I get when I NETLOAD the resulting .dll:
Command: NETLOAD
Assembly file name: ~
Cannot load assembly. Error details: System.BadImageFormatException: The
format
of the file 'Lab1.dll' is invalid.
File name: "Lab1.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase,
Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound,
Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence
securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
at loadmgd()
=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\1work\kjh\development\DOTNET\Lab1\bin\Lab1.dll
LOG: Appbase = C:\Program Files\Autodesk Building Systems 2006\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/1work/kjh/development/DOTNET/Lab1/bin/Lab1.dll.
What's up with that?
>>Has anyone tried to use .Net in Vb 2005 Express? I've downloaded and
>>installed it, and trying the "Hello World" tutorial available from
>>Autodesk
>>http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1911627 and I
>>can't even get the references to come up in the Object Browser?