Welcome to Typemock Answers. Here you can ask and receive answers from other community members. And if you liked or disliked an answer or thread: react with an up- or downvote Enjoy!

Auto Deploy Build Failing

0 votes

Hello,

I am trying to convert our TFS build process to use the Auto Deploy capability described in the documenation. I believe I have configured everything correctly. However when the build gets to registering and running typemock, I am getting some errors/warnings in the log and all of the tests fail becuase type mock is not running properly.  The autodeploy path seems to be resolving correctly, it just appears to be an issue with registry access. Here is the typemock relevant ouput from the log.

TypeMockRegister

Execute TypeMockRegister, Version=8.3.0.98

Source AutoDeploy location is '$/Blah.Retail/Dependencies/Typemock/AutoDeploy'

AutoDeploy translated to 'C:\Builds\62\Blah.Retail\Retail.API.Dev-Shared\Sources\Dependencies\Typemock\AutoDeploy'

TypeMockRegister, Company='Blah', License=’BlahLicense’, AutoDeploy=True, DeployRootDirectory=C:\Builds\62\Blah.Retail\Retail.API.Dev-Shared\Sources\Dependencies\Typemock\AutoDeploy




Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TypeMock' is denied.




at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj, RegistryOptions registryOptions) at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck) at Configuration.RegistryAccess.CreateSubKey(RegistryKey reg, String subkey) at Typemock.Common.Configuration.Core.RegistryManager.CreateTypemockKey(RegistryKey rootKey) at Typemock.Common.Configuration.Core.RegistryManager.CreateTypemockKey() at TypeMock.CLI.Common.TypeMockRegisterInfo.Execute() at TypeMock.TFS.TypeMockCodeActivityBase.Execute(CodeActivityContext context)



TypeMockStart

Execute TypeMockStart, Version=8.3.0.98

TypeMocktart: Target = , ProfilerLaunchedFirst = False, Link = , LogLevel = 0, LogPath = , DisableAutoLink = False






The registry\environment values of Typemock Isolator seemes to be corrupt, please try re-installing Isolator.




at TypeMock.Configuration.Core.GetInstallDir() at TypeMock.CLI.Common.TypeMockStartInfo.Execute() at TypeMock.TFS.TypeMockStart.ExecuteInternal() at TypeMock.TFS.TypeMockCodeActivityBase.Execute(CodeActivityContext context)

Any help in resolving this issue would be greatly appreciated. 

Thanks,

Jesse

asked Feb 19, 2016 by juice_johnson (1,580 points)
edited Feb 19, 2016 by juice_johnson

1 Answer

0 votes

Hi,

 

It seems that the build process is does not run with elevated privileges, which means that it doesn't have access to the registry to perform the register task needed for automatic deployment.

"Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TypeMock' is denied."

Running the build as administrator should fix this.

 

P,S

We released Isolator 8.3 on www.typemock.com

 

Alex Galin | Support Team

answered Feb 22, 2016 by alex (17,910 points)
...