c# - nServiceBus "Requested registry access is not allowed" -
i using nservicebus version 4.0.0-unstable3223 (prerelease)
nsb configured follows:
private static readonly ibus bus = configure .with(typeof(ibasemessage).referencedassemblies()) .definingcommandsas(t => t.namespace != null && t.namespace.contains(".messages.")) .defaultbuilder() .xmlserializer() .usetransport<msmq>() .unicastbus() .sendonly(); when try access webapi method, getting error. when debug find out going on, exception get:
{"requested registry access not allowed."} stack trace: @ microsoft.win32.registrykey.opensubkey(string name, boolean writable) @ nservicebus.licensing.licensedescriptor.get_hkculicense() in c:\teamcity\buildagent\work\28bfdd0d351fb1d3\src\nservicebus.core\licensing\licensedescriptor.cs:line 30 note: working in environment 10+ developers on same code base. 1 experiencing issue @ time. have tried deleting local code, pulling fresh repository, , rebuilding no code changes.
any help/guidance appreciated.
nservicebus trying read license hkey_current_user\software\nservicebus\4.0 , looks user account running nservicebus under not have rights ready registry location.
can confirm user account has read access registry key?
it understanding nt accounts have rights read/write under hkey_current_user!
Comments
Post a Comment