Skip to content

Access is denied error when debug C# module on Mac #30

@w12379564

Description

@w12379564
Exception has occurred: CLR/System.AggregateException
An unhandled exception of type 'System.AggregateException' occurred in System.Private.CoreLib.dll: 'One or more errors occurred.'
 Inner exceptions found, see $exception in variables window for more details.
 Innermost exception 	 System.Security.Cryptography.CryptographicException : Access is denied.
   at Internal.Cryptography.Pal.StorePal.AppleTrustStore.OpenStore(StoreName storeName, StoreLocation location, OpenFlags openFlags)
   at Internal.Cryptography.Pal.StorePal.FromSystemStore(String storeName, StoreLocation storeLocation, OpenFlags openFlags)
   at System.Security.Cryptography.X509Certificates.X509Store.Open(OpenFlags flags)
   at Microsoft.Azure.Devices.Client.Edge.InstalledCertificateValidator.SetupCertificateValidation()
   at Microsoft.Azure.Devices.Client.Edge.EdgeModuleClientFactory.GetCertificateValidator(IList`1 certs)
   at Microsoft.Azure.Devices.Client.Edge.EdgeModuleClientFactory.<CreateInternalClientFromEnvironmentAsync>d__16.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at SampleModule.Program.<Init>d__3.MoveNext() in /Users/yuxianggan/Documents/test/EdgeSolution/modules/SampleModule/Program.cs:line 51

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions