From: Robert K. <rob...@gm...> - 2016-05-05 17:47:17
|
Thank you! After going back and fixing all the References, it's working well. -bob On Thu, May 5, 2016 at 3:08 AM, Rob Vesse <rv...@do...> wrote: > If you were building for ASP.Net then you should be using the full .Net Version of the library rather than the portable version > > > The portable version contains implementations of missing pieces of the core library that are not normally available on the portable platform and so will conflict with the official implementations if used in places where the normal core library is available. > > Rob > > On 04/05/2016 23:44, "Robert Kerr" <rob...@gm...> wrote: > >>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. >> >>------------------------------------------------------------------------------ >>Find and fix application performance issues faster with Applications Manager >>Applications Manager provides deep performance insights into multiple tiers of >>your business applications. It resolves application problems quickly and >>reduces your MTTR. Get your free trial! >>https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >>_______________________________________________ >>dotNetRDF-Support mailing list >>dot...@li... >>https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support > > > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support -- Meddle not in the affairs of dragons, for thou art crunchy, and taste good with ketchup. |