Install Mono on Centos 5.5 using YUM

I figured it out. Create a new repository configuration file cd /etc/yum.repos.d vi mono.repo Add the following lines to the file [Mono] name=Mono Stack (RHEL_5) type=rpm-md baseurl=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/ gpgcheck=1 gpgkey=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/repodata/repomd.xml.key enabled=1 Update the YUM cache to be on the safe side yum clean all Install the Mono server stack yum install monotools-addon-server The installed binaries will … 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; }