I am following this page to encrypt the blob using azure key vault using C#
But getting an error in this code block
StorageCredentials creds = new StorageCredentials( CloudConfigurationManager.GetSetting("accountName"), CloudConfigurationManager.GetSetting("accountKey") );
Unhandled exception. System.Runtime.InteropServices.MarshalDirectiveException: Cannot marshal 'parameter #1': Invalid managed/unmanaged type combination (Marshaling to and from COM interface pointers isn't supported).
app.config
<appSettings><add key="accountName" value="myaccount"/><add key="accountKey" value="theaccountkey"/><add key="clientId" value="theclientid"/><add key="clientSecret" value="theclientsecret"/><add key="container" value="stuff"/></appSettings>
I tried the solutions given in link below, but those didn't work either
System.argumentnullexception is null using microsoft azure storage