[CONNECT C#] Cannot load dll on Windows 10

Hi all,

I have some custom tools that are developed with C#. With appropriate compiler switches and configuartion I made the code running on both: 32bit Microstation v8i SS3 and 64bit Microstation CONNECT / AECOsim.

It works perfectly on my own developer machine and on my coworkers machines (they dont have Visual Studio or stuff installed) all with WIndows 7 and all with both versions of Microstation / AECOsim.

Now we got some new PCs with Windows 10. Somehow it is not possible to load the dlls into Microstation on that Windows 10 PC. I tried both: Keyin "mdl load ..." and browsing for dll via Mdl-Dialog.
As the workspace is the same, the configuartion is the same and, well, everything else is the same except Windows version I really have no idea what kind of error that could be. Microstation is not helping very much: it just gives me the usual "... could not be loaded".

Maybe someone has an idea where to search for errors? Or even HOW to search? I have no idea. I mean as it is running on the other systems it should not be useful to install Visual Studio on that Win10 machine to try to debug with Windows 10. Or maybe that would be useful indeed?

Regards
Stephan

Parents
  • Stephan,

    In addition to Jan's questions can you also provide the following?

    1. What is the exact error number and/or message displayed?
    2. Do you experience problems on clients attempting to load a Release build?
    3. What are your current Project values for:
      1. Solution Configuration. e.g. Debug or Release?
      2. Solution Platform. e.g. ANY CPU, x64, x86, other?
      3. Application Target (.NET) Framework. e.g. v8i: v3.5/v4.0, CONNECT: v4.6.1
    4. If possible zip and attach the output from the MicroStation Developer Shell, type: set > c:\temp\%COMPUTERNAME%-SDKCFG.txt

    Thank you,
    Bob



  • There is no error number. It just says "MDL Loader: unable to load application".

    I have no problems on clients running Windows 7. They can run 32bit version with "old" Microstation and 64bit version with CONNECT. On clients running Windows 10 I try to load Release builds.

    I could zip an csproj file so that you could see all the settings I made. Would you like me to do that?

    Ups, I haven't used the Developer shell. I just compile out of my Visual Studio. Maybe this causes problems on Windows 10 clients?

  • Hi Stephan,

    could you please give us the exact version numbers of the MicroStation CONNECT Edition and .NET Framework installed.
    The use of the correct .NET Framework version is critical with building the dll for use as Addin in MicroStation.
    In the Visual Studio project Properties > Application > target Framework, which target version do you have set?

    E.g. with the recent MicroStation CONNECT Edition Update 7 the target Framework version needs to be set to 4.6.1.

    Thanks
    Artur

Reply
  • Hi Stephan,

    could you please give us the exact version numbers of the MicroStation CONNECT Edition and .NET Framework installed.
    The use of the correct .NET Framework version is critical with building the dll for use as Addin in MicroStation.
    In the Visual Studio project Properties > Application > target Framework, which target version do you have set?

    E.g. with the recent MicroStation CONNECT Edition Update 7 the target Framework version needs to be set to 4.6.1.

    Thanks
    Artur

Children