SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Error Loading Reference: Autodesk ManagedMapApi.dll

Last post 02-09-2007 7:14 PM by DanielGrunwald. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-09-2007 7:05 PM

    Error Loading Reference: Autodesk ManagedMapApi.dll

    I'm getting the error below when referencing an Autodesk assembly.  Is there a version issue with the mscorlib.dll file?  The SharpDevelop 2.0 "Add Reference GAC" dialog shows the version as 2.0.0.0, instead of 2.0.50727.42.  Is there a version conflict?  If so, how do I resolve it?

    Any information would be appreciated.

    .NET Version        : 2.0.50727.42
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 2
    Current culture      : English (United States) (en-US)
    Working Set Memory   : 105376kb
    SharpDevelop Version : 2.0.0.1710

    Error loading code-completion information for ManagedMapApi from C:\Map ObjectARX SDK\Map Samples\DotNet\DisplayManagerVB\..\..\..\..\Program Files\Autodesk Civil 3D 2007\ManagedMapApi.dll
    Exception thrown:
    System.TypeLoadException: Could not load type 'System.IntPtr&' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
       at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
       at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
       at System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
       at System.Reflection.RuntimeMethodInfo.get_Signature()
       at System.Reflection.RuntimeMethodInfo.get_ReturnType()
       at ICSharpCode.SharpDevelop.Dom.ReflectionMethod..ctor(MethodBase methodBase, IClass declaringType)
       at ICSharpCode.SharpDevelop.Dom.ReflectionClass.InitMembers(Type type)
       at ICSharpCode.SharpDevelop.Dom.ReflectionClass..ctor(ICompilationUnit compilationUnit, Type type, String fullName, IClass declaringType)
       at ICSharpCode.SharpDevelop.Dom.ReflectionProjectContent..ctor(Assembly assembly, String assemblyLocation)
       at ICSharpCode.SharpDevelop.Dom.ReflectionLoader.LoadProjectContent(String fileName, String include)
       at ICSharpCode.SharpDevelop.Dom.ReflectionLoader.LoadAndCreateDatabase(String fileName, String include)
       at ICSharpCode.SharpDevelop.Dom.ReflectionLoader.LoadAndCreateDatabase(String fileName, String include)
       at ICSharpCode.Core.ProjectContentRegistry.LoadProjectContent(String filename, String include)

  • 02-09-2007 7:14 PM In reply to

    Re: Error Loading Reference: Autodesk ManagedMapApi.dll

    2.0.50727.42 is the .NET runtime version, the .NET assemblies use 2.0.0.0 as version number.

    I don't know what the problem is, but you might try SharpDevelop 2.1 - it uses Mono.Cecil instead of System.Reflection to load code-completion information from assemblies. System.Reflection is known to crash on some assemblies (e.g. obfuscated assemblies).
     

    Daniel Grunwald
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.