When trying to compile StarTeam SDK code on .Net Framework version 4.0 the following error is encountered: "Unable to load DLL 'vjsnativ': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
To fix this issue please do the following:
Take a copy of the vjsnativ.dll file from the .Net 2.0 directory - C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Copy fhe file to the .Net 4.0 directory - C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
Re-compile the code in your IDE
Please note that StarTeam does support the .Net 4.0 framework but please ensure that your StarTeam SDK is the most up to date version available for download.