|
From: Robert K. <rob...@gm...> - 2016-05-04 22:44:23
|
Hi, I'm trying to implement a function to return a HashAlgorithm in my ASP.NET application. I'm using Visual Studio 2013 with dotNetRDF 1.0.9.3683. The function looks like: private HashAlgorithm GetHash() { string keystring = string.Format("{0}&{1}","consumer_secret", "token_secret"); var hmacsha1 = new HMACSHA1 { Key = System.Text.Encoding.ASCII.GetBytes(keystring) }; return hmacsha1; } But I'm getting a compiler error: The type 'System.Security.Cryptography.HashAlgorithm' exists in both 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll' and 'D:\Dev\MyProject\packages\dotNetRDF.1.0.9.3683\lib\portable-net4+sl5+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\dotNetRDF.dll' I've spent most of the afternoon trying to figure out what could be wrong. I've ensured I have no disparate versions of dotNetRDF.dll on my machine, and everything seems to be pointing to the right place. Help? thanks -bob -- Meddle not in the affairs of dragons, for thou art crunchy, and taste good with ketchup. |