Skip to content

System.MemberAccessException due to AssemblyCompany not set in AssemblyInfo.cs #56

@jaderfeijo

Description

@jaderfeijo

While trying to check whether or not a folder exists from a PCL library through a Unit Test target via SpecialFolder.Current.Cache.CheckExistsAsync("MyFolder") I get the following exception being thrown, which cases my unit test to fail:

System.MemberAccessException : There is a need to set a valid value to AssemblyCompany of AssemblyInfo.cs.

Stack trace:

  at PCLStorage.FolderPathImplementation.get_CompanyName () [0x00026] in <8863a90a3bb844dc851b55584719db5c>:0 
  at PCLStorage.FolderPathImplementation.GetPath (System.Environment+SpecialFolder specialFolder, System.String subFolder) [0x00011] in <8863a90a3bb844dc851b55584719db5c>:0 
  at PCLStorage.FolderPathImplementation.get_Cache () [0x00000] in <8863a90a3bb844dc851b55584719db5c>:0 
  at PCLStorage.SpecialFolderImplementation+<>c.<.ctor>b__28_4 () [0x00005] in <350c568532c8492b932e1f1f3b4a07fa>:0 
  at System.Lazy`1[T].CreateValue () [0x00075] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/Lazy.cs:437 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:357 
  at DrinkUpLondon.Services.Rest.Tests.FileCacheProviderTests+<TestCaching>c__async0.MoveNext () [0x000fa] in /Users/jaderfeijo/Dropbox (Personal)/Development/Xamarin/drinkuplondon/DrinkUpLondon.Tests/Sources/Tests/Services/Rest/FileCacheProviderTests.cs:25 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at NUnit.Framework.Internal.ExceptionHelper.Rethrow (System.Exception exception) [0x00006] in <a136915bdafc4f7db46d0b0a906d5367>:0 
  at NUnit.Framework.Internal.AsyncInvocationRegion+AsyncTaskInvocationRegion.WaitForPendingOperationsToComplete (System.Object invocationResult) [0x00030] in <a136915bdafc4f7db46d0b0a906d5367>:0 
  at NUnit.Framework.Internal.Commands.TestMethodCommand.RunAsyncTestMethod (NUnit.Framework.Internal.TestExecutionContext context) [0x00038] in <a136915bdafc4f7db46d0b0a906d5367>:0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions