Why does the .NET option disappear from the Project Settings when I use DEPLOYTOOL in MATLAB 7.3 (R2006b)?

1 view (last 30 days)
I'm using MATLAB R2006b .NET builder through the DEPLOYTOOL utility. On the .NET page in the Project Settings dialog box, I selected "Shared Assembly Type" , but I did not specify the "Encryption Key File" location.
After saving, quitting, and reloading my project, the .NET option does not appear in the Project Settings. I have tried the same thing in R2007a with the same results. If I open an entirely new project, the .NET page will be back.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 Apr 2023
Edited: MathWorks Support Team on 24 Apr 2023
This bug has been fixed in MATLAB 7.6 (R2008a). For previous product releases, read below for any possible workarounds:
When creating a shared assembly, you must specify the full path to the encryption key file used to sign the assembly. An overview of setting up Shared Assembly Types can be viewed at the Related Solution listed at
If you did not give the full encryption key path when the PRJ-file is created, a workaround is to edit the .prj file by hand, as it is just an XML-file. When there is no Key Encryption File specified, the PRJ-file ends up with an empty [additionalProperty] element like:
<MCCProperties>
<wrapper>
<type>dotnet</type>
<component_name>cellcomp</component_name>
<default_class>cellcompclass</default_class>
<additionalProperty>0.0</additionalProperty>
<additionalProperty/>
</wrapper>
This can be fixed by amending the tag as:
<MCCProperties>
<wrapper>
<type>dotnet</type>
<component_name>cellcomp</component_name>
<default_class>cellcompclass</default_class>
<additionalProperty>0.0</additionalProperty>
<additionalProperty>private</additionalProperty>
</wrapper>
The .NET property should then reappear.

More Answers (0)

Products


Release

R2006b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!