Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

  1. #1
    Member
    Join Date
    2011-10
    Posts
    39
    Login to Give a bone
    0

    Default Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    Hi, I keep getting the above error when trying to run a custom form in my .Net custom code that uses the ManagedMapApi.dll. I'm upgrading from AutoCAD Map 3D 2011 to 2012. In 2011 everything works fine but in 2012 it gives this error.

    I've looked and there is a C:\Program Files\Autodesk\AutoCAD Map 3D 2012\ManagedMapApi.dll just like in the 2011 version. I've tried referencing the one in the 2011 folder as well as the 2012 folder. I've changed it from Copy Local -> False to Copy Local -> True and back again with no luck. I've also tried running all these changes on a computer with just AutoCAD Map 3D 2012 and no 2011 installed on it. I've tried it with No service pack upgrades, SP1 and SP2 and still no luck.

    Any help would be appreciated, thanks.
    Attached Images Attached Images

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,397
    Login to Give a bone
    0

    Default Re: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    If you had a reference to the dll in a previous version, VS doesn't make it easy to change the reference. Delete the reference to the 2011 version and add a new reference to the 2012 version. You don't want to have a reference to both of them in the same project.
    C:> ED WORKING....

  3. #3
    Member
    Join Date
    2011-10
    Posts
    39
    Login to Give a bone
    0

    Default Re: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    Thanks for the reply, I have done this multiple times to make sure it was referencing the correct version. It is currently referencing the ManagedMapAPI.dll in the Map 2012 install folder (which is the same location as the machine with only Map 2012). However, it doesn't work on my machine or the machine where only Map 2012 is installed. Could it be a problem with the fact that my machine has Map 2011 and Map 2012 installed, so for some reason it isn't properly referencing the correct version? Is ManagedMapApi.dll supposed to be registered on the machine, I tried registering it on the machine with only Map 2012 and it gave an error, however when I try to register the ManagedMapApi.dll in the 2011 folder on my machine it gives the same error so I don't think that's the problem.

    BTW even when I run the project in Debug mode on my machine in Map 3D 2012 I still get the error when I try to run a form that required the ManagedMapApi.dll
    Last edited by Pwned555402908; 2012-06-29 at 05:33 PM.

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,397
    Login to Give a bone
    0

    Default Re: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    At what point do you get the error?
    C:> ED WORKING....

  5. #5
    Member
    Join Date
    2011-10
    Posts
    39
    Login to Give a bone
    0

    Default Re: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    Whenever it tries to open a form that requires the ManagedMapApi.dll, for example in the picture on my first post the Command DS opens a form that requires ManagedMapApi.dll and when it's called the error is given.

  6. #6
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,397
    Login to Give a bone
    0

    Default Re: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    I think I would set a break point in the form's initialize event and make sure that you step into the InitializeComponent() method. Check that all the variables are initializing properly and that code executes as expected. Try to find out where its failing. Possibly this isn't the real issue.
    C:> ED WORKING....

  7. #7
    Member
    Join Date
    2011-10
    Posts
    39
    Login to Give a bone
    0

    Default Re: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    It runs InitializeComponent() and some more code without problems, it isn't until it gets to this line that it throws the error.

    Code:
    getCS = HostMapApplicationServices.Application.ActiveProject.Projection.ToString()

  8. #8
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,397
    Login to Give a bone
    0

    Default Re: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    Are you trying to netload your file from a network share?
    C:> ED WORKING....

  9. #9
    Member
    Join Date
    2011-10
    Posts
    39
    Login to Give a bone
    0

    Default Re: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    Sorry for the late reply I went out of town for the weekend. Yes I am trying to netload my file from a network share.

  10. #10
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,397
    Login to Give a bone
    0

    Default Re: Map 3D 2012 'Could not load file or assembly 'ManagedMapApi.dll' or one of it's dependencies. The specified module could

    You're going to run into network security issues when a dll in a intranet or internet zone wants access to a local zone. Copy the dll to each pc and run it from a folder in the acad search paths. Then it won't be denied access to one of acad's dll's.
    C:> ED WORKING....

Page 1 of 2 12 LastLast

Similar Threads

  1. 2015: ACAD 2015 Fatal Error module not found - ACAD wont load
    By robinhill833400 in forum AutoCAD General
    Replies: 1
    Last Post: 2014-09-09, 12:11 PM
  2. 2012: AutoCAD Error Unhandled exception...Could not load file or assembly
    By jodi_sherrell in forum AutoCAD General
    Replies: 2
    Last Post: 2013-05-03, 02:44 PM
  3. 2012: Scale Inventor 2012 assembly
    By mankie1926260 in forum Inventor - General
    Replies: 2
    Last Post: 2011-08-08, 06:58 PM
  4. Module Load Error - Print driver?
    By Mapmom in forum CAD Management - General
    Replies: 1
    Last Post: 2011-01-27, 09:29 PM
  5. Replies: 8
    Last Post: 2009-10-27, 12:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •