Created
July 20, 2017 15:24
-
-
Save pldmgg/1499fa9aaef19d004e5f449dbe9f9bac to your computer and use it in GitHub Desktop.
AddTypeErrors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type : (0) : Warning as Error: Assuming assembly reference 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' matches | |
'System.Runtime, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', you may need to supply runtime policy | |
(1) : using System; | |
At V:\powershell\PowerShellDrafts\LocalOnly\Get-RelationshipQualityC.ps1:500 char:5 | |
+ Add-Type -ReferencedAssemblies $Assem -TypeDefinition $Source -La ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception | |
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand | |
Add-Type : c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(23) : The type or namespace name 'dynamic' could not be found (are you missing a using | |
directive or an assembly reference?) | |
c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(22) : string json = r.ReadToEnd(); | |
c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(23) : >>> var items = JsonConvert.DeserializeObject<dynamic>(json); | |
c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(24) : | |
At V:\powershell\PowerShellDrafts\LocalOnly\Get-RelationshipQualityC.ps1:500 char:5 | |
+ Add-Type -ReferencedAssemblies $Assem -TypeDefinition $Source -La ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception | |
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand | |
Add-Type : c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(25) : The type or namespace name 'dynamic' could not be found (are you missing a using | |
directive or an assembly reference?) | |
c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(24) : | |
c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(25) : >>> dynamic array = JsonConvert.DeserializeObject(json); | |
c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(26) : w.WriteLine("["); | |
At V:\powershell\PowerShellDrafts\LocalOnly\Get-RelationshipQualityC.ps1:500 char:5 | |
+ Add-Type -ReferencedAssemblies $Assem -TypeDefinition $Source -La ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception | |
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand | |
Add-Type : (0) : Assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' uses 'System.Dynamic.Runtime, | |
Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Dynamic.Runtime, | |
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' | |
(1) : using System; | |
At V:\powershell\PowerShellDrafts\LocalOnly\Get-RelationshipQualityC.ps1:500 char:5 | |
+ Add-Type -ReferencedAssemblies $Assem -TypeDefinition $Source -La ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception | |
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand | |
Add-Type : (0) : Assembly 'System.Dynamic.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' uses 'System.Core, Version=4.0.0.0, | |
Culture=neutral, PublicKeyToken=b77a5c561934e089' which has a higher version than referenced assembly 'System.Core, Version=3.5.0.0, Culture=neutral, | |
PublicKeyToken=b77a5c561934e089' | |
(1) : using System; | |
At V:\powershell\PowerShellDrafts\LocalOnly\Get-RelationshipQualityC.ps1:500 char:5 | |
+ Add-Type -ReferencedAssemblies $Assem -TypeDefinition $Source -La ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception | |
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand | |
Add-Type : c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(33) : The type 'System.Dynamic.IDynamicMetaObjectProvider' is defined in an assembly that is | |
not referenced. You must add a reference to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. | |
c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(32) : { | |
c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(33) : >>> JObject first = items[i]; | |
c:\Users\testadmin\AppData\Local\Temp\2\gdkpzhzg.0.cs(34) : JObject second = items[j]; | |
At V:\powershell\PowerShellDrafts\LocalOnly\Get-RelationshipQualityC.ps1:500 char:5 | |
+ Add-Type -ReferencedAssemblies $Assem -TypeDefinition $Source -La ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception | |
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand | |
Add-Type : (0) : Assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' uses 'System.ObjectModel, Version=4.0.10.0, | |
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.ObjectModel, Version=4.0.0.0, Culture=neutral, | |
PublicKeyToken=b03f5f7f11d50a3a' | |
(1) : using System; | |
At V:\powershell\PowerShellDrafts\LocalOnly\Get-RelationshipQualityC.ps1:500 char:5 | |
+ Add-Type -ReferencedAssemblies $Assem -TypeDefinition $Source -La ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception | |
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand | |
Add-Type : Cannot add type. Compilation errors occurred. | |
At V:\powershell\PowerShellDrafts\LocalOnly\Get-RelationshipQualityC.ps1:500 char:5 | |
+ Add-Type -ReferencedAssemblies $Assem -TypeDefinition $Source -La ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException | |
+ FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand | |
Unable to find type [Parse.Json.Group]. | |
At V:\powershell\PowerShellDrafts\LocalOnly\Get-RelationshipQualityC.ps1:502 char:5 | |
+ [Parse.Json.Group]::Main() | |
+ ~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : InvalidOperation: (Parse.Json.Group:TypeName) [], RuntimeException | |
+ FullyQualifiedErrorId : TypeNotFound |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment