Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

could not load file or assembly 'CliProjectTemplate.dll' or one of its dependencies. The specified module could not be found


Recommended Posts

Hi i have tried to open my mastercam add on it works is debug mode but not in release node can somebody help me for this?

for my cliprojecttemplate output directory is x64\$(Configuration)\

platform toolset Visual Studio 2022 (v143)

use of mfc Use MFC in a Shared DLL

optimization was Maximum Optimization (Favor Speed) (/O2) i have changed it to Disabled (/Od

Whole Program optimization was Yes (/GL) i have changed it to no

preprocessor definitions WIN64;_WINDOWS;NDEBUG;_AFXEXT;%(PreprocessorDefinitions)

Runtime library Multi-threaded DLL (/MD)

Debuggable assembly Yes (/ASSEMBLYDEBUG)

Linker optimization Ref = Yes (/OPT:REF)

Link to comment
Share on other sites
1 hour ago, BarisGuzel said:

Hi i have tried to open my mastercam add on it works is debug mode but not in release node can somebody help me for this?

 

If you go into your project property page. At the top left what is "Configuration" set to? Dropbox Picture Link

Have you added include directories or additional library dependencies?

If the configuration is set to "Debug" and you've made changes, then those same changes must be made to "Release" as well. You can set the configuration to "All Configurations" and it will apply changes to both debug and release.

Link to comment
Share on other sites
17 hours ago, Jake L said:

If you go into your project property page. At the top left what is "Configuration" set to? Dropbox Picture Link

Have you added include directories or additional library dependencies?

If the configuration is set to "Debug" and you've made changes, then those same changes must be made to "Release" as well. You can set the configuration to "All Configurations" and it will apply changes to both debug and release.

Hi, thank you for responding to this topic.

I’ve already checked the include directories and additional library dependencies.


image.png.401dec88cb2fc6724432a96f0576fc54.png

 

I’ve also tried running the project in Release mode. Here’s what I’ve done so far:

  1. I ran the project in Debug mode using the Visual Studio debugger, and it worked. It successfully called Mastercam from sdk/x64/debug/mastercam.
  2. I tried opening Mastercam from the SDK folder manually, but it didn't work and gave the following errors related to missing DLLs:
    • The code execution cannot proceed because psbodyshop.dll was not found. Reinstalling the program may fix this problem.
    • The code execution cannot proceed because PSKERNEL.dll was not found. Reinstalling the program may fix this problem.
    • The code execution cannot proceed because mcexcell.dll was not found. Reinstalling the program may fix this problem.
    • Repeated: The code execution cannot proceed because mcexcell.dll was not found. Reinstalling the program may fix this problem.
  3. I built the project in Release mode, then opened Mastercam from the Mastercam folder (not the SDK folder). While Mastercam opened, it gave an error: cliprojecttemplate.dll or one of its dependencies was not found.
  4. I’ve tried all configurations, but nothing has worked so far.

 

Link to comment
Share on other sites
20 hours ago, Jake L said:

The only time I've seen the debug build execute correctly but the release build not, it was the issue above. If all the files in your debug and release configurations match, then I'm not sure what would cause this. Hopefully someone else can help out here.

I have send the required DLLs to my colleague's computer and then it worked so probably the problem is related with my computer environment.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...