I have a self - hosted Owin application that needs to access Azure blob storage, however, I get a security exception when trying to access the storage. I'm able to access the blob storage from a console application. I suspect the issue has to do with the process identity when I'm executing the code from Owin. With IIS sites, I can set the user account under which the application pool is running. How do i set the process Identity for an Owin/Katana ASP.NET Web Api application?
Edit: The inner exception is ... 'An attempt was made to access a socket in a way forbidden by its access permissions'
Edit: I get the same error message from an ASP.NET Web API application not hosted with Katana