Nuget import-module throws exceptions here on my machine

Topics: General
Feb 10, 2013 at 4:14 AM
    at System.Management.Automation.ExternalScriptInfo.ReadScriptContents()
   at System.Management.Automation.Runspaces.TypeTable.GetModuleContents(String moduleName, String fileToLoad, Collection`1 errors, AuthorizationManager authorizationManager, PSHost host, Boolean& isFullyTrusted, Boolean& failToLoadFile)
   at System.Management.Automation.Runspaces.TypeTable.Update(String moduleName, String filePath, Collection`1 errors, Boolean clearTable, AuthorizationManager authorizationManager, PSHost host, Boolean preValidated, Boolean& failToLoadFile)
   at System.Management.Automation.Runspaces.InitialSessionState.UpdateTypes(ExecutionContext context, Boolean updateOnly, Boolean preValidated)
   at System.Management.Automation.Runspaces.InitialSessionState.RemoveTypesAndFormats(ExecutionContext context, IEnumerable`1 formatFilesToRemove, IEnumerable`1 typeFilesToRemove)
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.RemoveTypesAndFormatting(IEnumerable`1 formatFilesToRemove, IEnumerable`1 typeFilesToRemove)
  at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleManifest(String moduleManifestPath, ExternalScriptInfo scriptInfo, Hashtable data, Hashtable localizedData, ManifestProcessingFlags manifestProcessingFlags, Version version, Version requiredVersion, ImportModuleOptions& options, Boolean& containedErrors)
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleManifest(ExternalScriptInfo scriptInfo, ManifestProcessingFlags manifestProcessingFlags, Version version, Version requiredVersion, ImportModuleOptions& options)
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModule(PSModuleInfo parentModule, String fileName, String moduleBase, String prefix, SessionState ss, Object privateData, ImportModuleOptions& options, ManifestProcessingFlags manifestProcessingFlags, Boolean& found, Boolean& moduleFileFound)
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModule(String fileName, String moduleBase, String prefix, SessionState ss, ImportModuleOptions& options, ManifestProcessingFlags manifestProcessingFlags, Boolean& found)
   at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions importModuleOptions, String name)
   at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord()
   at System.Management.Automation.Cmdlet.DoProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()
Feb 10, 2013 at 4:15 AM
Can someone help? This happens whenever I tried to install some package that runs a .ps1 on install (like Entity Framework).
Feb 15, 2013 at 12:44 PM
what is the exception message?