Quantcast
Channel: Office / SharePoint 2013 Continuous Integration with TFS 2012
Viewing all articles
Browse latest Browse all 20

Commented Unassigned: TypeLoadException for Import-Module in Create-SharePointClientContext [11597]

$
0
0
Hi there,
i'm getting the a TypeLoadException for Type 'Microsoft.SharePoint.Administration.SiteHealth.SiteHealthStatusType' from assembly 'Microsoft.SharePoint.Client, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
and i don't know how to fix this.

I'm using the current PS-Version:
Major Minor Build Revision
3 0 -1 -1

SharePoint is running whitout any further Problems (wihtout domain) as on premisis.
Direct App Deployment via VS2012 is working. Does anyone know how to fix this?

Here the Complete Call (maybe this is helpful):
PS C:\TFS_WS\ShaPoiTP1\DeployScripts> C:\TFS_WS\ShaPoiTP1\DeployScripts\SharePointApp\SharePointAppDeploy.ps1
cmdlet SharePointAppDeploy.ps1 at command pipeline position 1
Supply values for the following parameters:
dropLocation: C:\Builds\drops\B5_OfficeTemplate3CodeplexInstructionsShPoHosted\B5_OfficeTemplate3CodeplexInstructionsShPoHosted_20140219.4
Connecting to http://win-n3kb5gvfiat/sites/DevelopmentSite1/...
Write-Error : A positional parameter cannot be found that accepts argument 'System.TypeLoadException: Could not load type
'Microsoft.SharePoint.Administration.SiteHealth.SiteHealthStatusType' from assembly 'Microsoft.SharePoint.Client,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at System.Management.Automation.Runspaces.PSSnapInHelpers.GetAssemblyTypes(Assembly assembly, String name)
at System.Management.Automation.Runspaces.PSSnapInHelpers.AnalyzePSSnapInAssembly(Assembly assembly, String name,
PSSnapInInfo psSnapInInfo, PSModuleInfo moduleInfo, Boolean isModuleLoad, Dictionary`2& cmdlets, Dictionary`2& providers,
String& helpFile)
at System.Management.Automation.Runspaces.InitialSessionState.ImportCmdletsFromAssembly(Assembly assembly, PSModuleInfo
module)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadBinaryModule(PSModuleInfo parentModule, Boolean trySnapInName, String
moduleName, String fileName, Assembly assemblyToLoad, String moduleBase, SessionState ss, ImportModuleOptions options,
ManifestProcessingFlags manifestProcessingFlags, String prefix, Boolean loadTypes, Boolean loadFormats, Boolean& found, String
shortModuleName, Boolean disableFormatUpdates)
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.LoadModuleNamedInManifest(PSModuleInfo parentModule, ModuleSpecification
moduleSpecification, String moduleBase, Boolean searchModulePath, String prefix, SessionState ss, ImportModuleOptions options,
ManifestProcessingFlags manifestProcessingFlags, Boolean loadTypesFiles, Boolean loadFormatFiles, Object privateData, Boolean&
found, String shortModuleName)
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.LoadUsingExtensions(PSModuleInfo parentModule, String moduleName, String
fileBaseName, String extension, String moduleBase, String prefix, SessionState ss, ImportModuleOptions options,
ManifestProcessingFlags manifestProcessingFlags, Boolean& found, Boolean& moduleFileFound)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(PSModuleInfo parentModule, Boolean found,
IEnumerable`1 modulePath, String name, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags
manifestProcessingFlags, PSModuleInfo& module)
at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions importModuleOptions,
String name)
at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()'.
At C:\TFS_WS\ShaPoiTP1\DeployScripts\SharePointApp\SharePointAppDeploy.ps1:52 char:5
+ Write-Error "Error occurred: " $_.Exception.ToString()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Write-Error], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.WriteErrorCommand
Comments: ** Comment from web user: ironhaert **

Hi again,
Sorry for my late response but I've been on vacation.

To get to your questions:
* My machine environment is a local virtual machine using Hyper-V, therefore i'm using on-prem SharePoint and also an on-prem TFS, both installed on the same machine. I'm using Sharepoint 2013 (BuildVersion 15.0.4551.1007) and TFS 2012U4 (Product Version 11.0.61030.0)
*For creating the app i'm using the standard procedure and use as hosting type 'SharePoint-hosted'. For debugging i add an already created Developmentsite (http://win-n3kb5gvfiat/sites/DevelopmentSite1/) which can be reached from Visual Studio). The App project can successfully be created and immediately deployed via Visual Studio App Deployment (Build-->Deploy 'AppName1'
I'm trying within the next days to get more detailed informatoin about the installation process and the system.

Nice Regards,
Marcel


Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>