Access to the path “/etc/mono/registry” is denied

Turns out simply creating the folder using mkdir sudo mkdir /etc/mono/registry and setting the right permissions using chmod sudo chmod uog+rw /etc/mono/registry does the trick. However I still don’t understand where such a folder is hidden in Ubuntu and why it doesn’t need to be created there, as well as why it isn’t created automatically … Read more

“NotSupportedException” when WebRequest is unable to find a creator for that prefix

Try this hacky workaround on this issue: private static HttpWebRequest CreateWebRequest(Uri uri) { var type = Type.GetType(“System.Net.HttpRequestCreator, System, Version=4.0.0.0,Culture=neutral, PublicKeyToken=b77a5c561934e089”); var creator = Activator.CreateInstance(type,nonPublic:true) as IWebRequestCreate; return creator.Create(uri) as HttpWebRequest; }