MATLAB: Does the .NET option disappear from the Project Settings when I use DEPLOYTOOL in MATLAB 7.3 (R2006b)

assemblydeploytoolencryptionkeyMATLAB Builder NEnetshared

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.

Best Answer

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.