These are chat archives for JaCraig/Craig-s-Utility-Library

30th
Nov 2016
Jeff Walker
@Jeff-Walker
Nov 30 2016 17:05
I'm having trouble getting started with the Encryption part of the library in my ASP.NET Web API 2 project. I'm using the latest from nuget. When executing Utilities.IO.EncryptionExtensions.Encrypt() I get the following exception.
    <InnerException>
        <Message>An error has occurred.</Message>
        <ExceptionMessage>Could not load file or assembly 'AppHostNavigators.dll' or one of its dependencies. The module was expected to contain an assembly manifest.</ExceptionMessage>
        <ExceptionType>System.BadImageFormatException</ExceptionType>
        <StackTrace>   at System.Reflection.AssemblyName.nGetFileInformation(String s)
   at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Utilities.IoC.Manager.LoadAssemblies() in C:\dev\Craig-s-Utility-Library\Utilities.IoC\IoC\Manager.cs:line 167
   at Utilities.IoC.Manager..ctor() in C:\dev\Craig-s-Utility-Library\Utilities.IoC\IoC\Manager.cs:line 44
   at Utilities.IoC.Manager..cctor() in C:\dev\Craig-s-Utility-Library\Utilities.IoC\IoC\Manager.cs:line 90</StackTrace>
        <InnerException>
            <Message>An error has occurred.</Message>
            <ExceptionMessage>Could not load file or assembly 'AppHostNavigators.dll' or one of its dependencies. The module was expected to contain an assembly manifest.</ExceptionMessage>
            <ExceptionType>System.BadImageFormatException</ExceptionType>
            <StackTrace />
        </InnerException>
    </InnerException>