1
Vote

Error trying to exec 'import-module sqlise'

description

Hi. My PS ISE is opened with admin privileges and I'm trying to exec 'import-module sqlise'. Below is the outcome. Is there anything I could make the error(s) go away?

Exception calling "GetUserStoreForAssembly" with "0" argument(s): "Unable to determine granted permission for assembly."
At D:\<path to my docs>\WindowsPowerShell\Modules\sqlise\Library-UserStore.ps1:6 char:5
  • $userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreFo ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : IsolatedStorageException
You cannot call a method on a null-valued expression.
At D:\<path to my docs>\WindowsPowerShell\Modules\sqlise\Library-UserStore.ps1:8 char:9
  • if ($userStore.GetDirectoryNames($dirName))
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "GetUserStoreForAssembly" with "0" argument(s): "Unable to determine granted permission for assembly."
At D:\<path to my docs>\WindowsPowerShell\Modules\sqlise\Library-UserStore.ps1:38 char:5
  • $userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreFo ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : IsolatedStorageException
You cannot call a method on a null-valued expression.
At D:\<path to my docs>\WindowsPowerShell\Modules\sqlise\Library-UserStore.ps1:40 char:9
  • if (-not $userStore.GetDirectoryNames($dirName))
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At D:\<path to my docs>\WindowsPowerShell\Modules\sqlise\Library-UserStore.ps1:65 char:9
  • $file.Close()
  • ~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At D:\<path to my docs>\WindowsPowerShell\Modules\sqlise\Library-UserStore.ps1:66 char:9
  • $userStore.Close()
  • ~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "GetUserStoreForAssembly" with "0" argument(s): "Unable to determine granted permission for assembly."
At D:\<path to my docs>\WindowsPowerShell\Modules\sqlise\Library-UserStore.ps1:6 char:5
  • $userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreFo ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : IsolatedStorageException
Exception calling "GetUserStoreForAssembly" with "0" argument(s): "Unable to determine granted permission for assembly."
At D:\<path to my docs>\WindowsPowerShell\Modules\sqlise\Library-UserStore.ps1:77 char:5
  • $userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreFo ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : IsolatedStorageException
Read-UserStore : Cannot open file SQLIse\options.txt
At D:\<path to my docs>\WindowsPowerShell\Modules\sqlise\sqlise.psm1:43 char:12
  • $options = Read-UserStore -fileName "options.txt" -dirName "SQLIse" -typeName "H ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Read-UserStore

comments