Workflow Manager - Add-WFHost fails with "Could not load file" error

Hello! I'm not sure that its Sharepoint related topic but..
I'm trying to install Workflow Manager using Powershell. I'm successfully created ServiceBus farm, create namespace, Add-SBhost etc. Also, i created WF Farm using New-WFFarm.
Now i'm got SB Configuration and try to add my first host to WF Farm using standard cmdlets:
$SBClientConfiguration = Get-SBClientConfiguration -Namespaces 'WorkflowDefaultNamespace'
(it successfuly gives me some endpoint definitions)
Add-WFHost -WFFarmDBConnectionString $WFFarmDBConStr -RunAsPassword $ServiceAccountPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration -CertificateAutoGenerationKey $CertificateAutoGenerationKey
where
$WFFarmDBConStr is typical connection string, i also used this to Get-WFFarm with no errors.
$ServiceAccountPassword and $CertificateAutoGenerationKey are secure strings.
But trouble appears with SBClientConfiguration, cmdlet returns error:
"Cannot validate argument on parameter 'SBClientConiguration'. Could not load file or assebly 'Microsoft.ServiceBus, Version=1.8.0.0, Culture=neutral, PublicKeyToken=<SomeTokenSymbolsHere> or one of its dependencies. The system cannot
find the file specified."
What file it tries to load? I've installed all WorkflowManager binaries with
webpicmd /Install /Product:WorkflowManagerRefresh key and don't know, what can be cause.

Hi lehus,
According to your description, my understanding is that you got an error when you configured Workflow Manager using PowerShell.
Please try to use the following PowerShell command, compare the result:
Add-WFHost -WFFarmDBConnectionString $WFFarmDBConStr -RunAsPassword $ServiceAccountPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration
–EnableHttpPort -CertificateAutoGenerationKey $CertificateAutoGenerationKey
-Verbose
Check your process as:
http://lennytech.wordpress.com/2013/06/02/configuring-workflow-manager-1-0-using-powershell/
In addition, whether you could install and configure Workflow Manager with Workflow Manager Configuration Wizard. Please have a try as:
http://prabathf.blogspot.com/2013/02/installing-and-configuring-workflow-for.html
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support

Similar Messages

  • Adding secondary ADFS server to farm fails with Could Not Load Assembly error

    Hi all,
    I have two servers running Server 2012 R2.
    There are two AD sites, in site 1, I have the primary ADFS server running on a member server.  In site 2 I have a secondary ADFS server running on the only DC in the site.  There will be WAP servers publishing these servers in either site.
    I successfully set up the first ADFS server in site 1, and this is working ok.  However, when I set up the server in site 2 I get the following error during the prerequisite checker:
    Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Access is denied.
    Unable to retrieve configuration from the primary server. Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Access is denied.
    I ran this as my domain admin account and also as domain\administrator which is seldom used.
    When I run the resulting PowerShell script, I get errors relating to the GSMA, so not sure if that is where my issue lies.  Here is the script:
    # Windows PowerShell script for AD FS Deployment
    Import-Module ADFS
    # Get the credential used for performaing installation/configuration of ADFS
    $installationCredential = Get-Credential -Message "Enter the credential for the account used to perform the configuration."
    Add-AdfsFarmNode `
    -CertificateThumbprint:"Thumbprint Here" `
    -Credential:$installationCredential `
    -GroupServiceAccountIdentifier:"DOMAIN\STSSvc`$" `
    -PrimaryComputerName:"machine.domain.net"
    I tried using the FQDN of the ADFS server as well as the common name of sts.domain.net, neither worked.
    Any suggestions?
    Andrew Hodgson

    Hi,
    Thanks for your post.
    According to the error message, it is more about permission issue.
    Please refer to this artile about how to resolve the error "Could not load file or assembly or one of its dependencies. Access is denied"
    http://blogs.msdn.com/b/sayanghosh/archive/2007/04/21/solution-to-could-not-load-file-or-assembly-or-one-of-its-dependencies-access-is-denied.aspx
    Regards.
    Vivian Wang

  • Help with Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    This was all working yesterday, but this morning, I cannot run in the dev fabric, or even setting the website project as a startup project directly, I get the following error:
    Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'msshrtmi' could not be loaded.
    === Pre-bind state information ===
    LOG: User = Andrew-VAIO\Andrew
    LOG: DisplayName = msshrtmi
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: msshrtmi | Domain ID: 3
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/
    LOG: Initial PrivatePath = C:\Users\Andrew\Desktop\Beko2011Azure\Website\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\Andrew\Desktop\Beko2011Azure\Website\web.config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/bin/msshrtmi.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    Stack Trace:
    [BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
    System.Reflection.Assembly.Load(String assemblyString) +28
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
    [ConfigurationErrorsException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
    [HttpException (0x80004005): Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
    Note that the dev machine is x64 Win7.
    I have not tried deploying this to staging since the issue started as I'm a bit nervous of touching the staging/live environment until this is solved.
    Removing the PlatformTarget element from the project file has no effect
    Removing the msshrtmi.dll file from the bin directory of the website project ends up with 
    'Could not load file or assembly 'Microsoft.WindowsFabric.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified'
    I have used Git to revert to the last working build to no effect (But I don't have the obj/bin folders in GIT), but it has atleast reset the project files etc.
    If I return msshrtmi.dll to the bin folder and switch the model and website projects to x64 there is no change
    If I switch both to x86 then I get an error Could not load file or assembly 'BekoModel2011' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    which is the model project - presumably because to run on my x64 machine I need the 64bit version?
    I really need to be able to debug and then publish some changes ASAP.
    Andrew

    Hi,
    Is it true that you're using IIS to host the application? Could you check whether the process is x64 or x86 one via task manager or config in IIS manager?
    http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx
    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Unable to add data connection. Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version 11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

    I installed MS SQL Server 2014 Express and I'm using VS 2013 Professional.  I create a database in SQL Mgt Studio then I open up VS and using VB I create a form and add a data grid.  When I test connection it is fine but when I click ok it gives
    me the above message.  Sql Server is listening to port 1433 with IPALL disabled.  I installed management tools and another program.  So I uninstalled and then installed SQLExpressADV 2014 reset everything as mentioned and I get the same results. 
    I cannot develop any applications and am getting frustrated enough to maybe start looking around for a better DB solution that works.  I've noticed a lot of people getting this same error and I think Microsoft should implement a fix for this.  Does
    anyone have some ideas on how to fix this?  Since it will not list the files it cannot find I do not know what is broken.

    Hello,
    Please perform the steps described in the following article.
    http://sqlbeyond.blogspot.com/2012/08/vs-2012-error-could-not-load-file-or.html
    But download the SQL Server 2014 version of the software mentioned in the article.
    http://www.microsoft.com/en-us/download/details.aspx?id=42295
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Help with CS5 Updates Failed, Updates could not be applied, Error Code U43M1D207

    CS5 Updates Failed, Updates could not be applied, Error Code U43M1D207
    Can anyone help with this error code?
    Products installed and activated on new laptop
    Unable to update using Adobe Application Manager
    Thank you

    I followed up on the Photoshop Error code and found some suggestions by Jeff Tranberry and Pete Green here.
    Michael

  • Workflow Manager 1.0 Refresh with Service Bus 1.1 Error

    Hi I have installed and configured Workflow Manager 1.0 Refresh with Service Bus 1.1.
    I didn't face any errors while installing or configuring the SB 1.1 and WFM 1.0.
    I used the Workflow Configuration Wizard to configure the SB 1.1 and WFM 1.0 instances.
    I have some workflows where I have custom code activities that put messages into the topic or pull messages from the topic.
    I'm able publish these WFs to the scope as well.
    However, when I try to execute these workflows, it throws up the following error:
    Could not load file or assembly 'Microsoft.ServiceBus, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:
    0x80131040)
    I checked the ServiceBus dll version that is present in the WF Artificats and WFWebroot/Bin folders and find that the versions of this dll in both the folders is: 2.0.40131.0 (the version of the dll in the Service Bus folder is 2.1.30904.0).
    How do I get the WFM to load the latest SB 1.1 dll?

    What is the account used to install Workflow in Staging and Dev environment
    I assume that Workflow in Staging might be installed with different account that can cause issue
    Also check ULS log and Event log on Workflow manager server and sharepoint server when workflow does not execute
    I assume it is working on DEV so I dont trust DEV environment. Try the same setup on a different machine(Preferred new).
    Also check server level permission for the account like if working and non working account can access system drive. 
    If this helped you resolve your issue, please mark it Answered

  • Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0 on Visual Studio Ultimate 2014 Update 4

    I am getting the infamous  "Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0." The set up of my system is Visual Studio 2013 Ultimate update 4 and my SQL server is 12.0.2000 Express. I am also using SQL
     management studio 2014. I read other comments and blogs, and reinstalled the SQL Express 12.0.2000, but no luck yet. 

    Hi payam49er,
    >>I am
    getting the infamous "Could not load file or assembly Microsoft.SqlServer.management.sdk.
    sfc version 11.0.0.0."
    Based on your error, could you please tell me what you do operation and then you get the error message?
    Could you please tell me if you add a data connection from Server Explorer Window in Visual studio 2013 Ultimate update
    4 and then you get the error message?
    If yes, to check if the issue is related to the VS IDE issue, I suggest you can execute the following commands to check if it can
    help you add  data connection in VS2013 Ultimate Update 4.
    (1)I suggest you can run your VS in safe mode by executing Devenv.exe /SafeMode to add a data connect again.
    (2)I suggest you can use the Devenv.exe /ResetSettings to restores the IDE's default settings, optionally resets to the specified
    VSSettings file.
    (3)You can execute the Devenv.exe /ResetAddin to remove commands and command UI associated with the specified Add-in.
    In addition, if you used the SQL Server Express to connect the data in VS, you need to specify the server name
    as MyComputerName\SQLEXPRESS. If you used the SQL Server to connect the data in VS. Please you try to specify the server name as MyComputerName\InstanceName here to check the result.
    If still no help, according the error, it indicates that the problem is that the system cannot locate the right assembly (SQL
    Server SDK). So I think you may get better response and solutions if you consult on SQL Server forums.
    Thank you for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0

    Hi,
    I currently installed VS 2012 Ultimate Edition, Visual Web Developer 2012 Express Edition and MS Sql server 2008 R2.
    When i go to add a data connection (sql server 2008 r2) in Visual studio 2012.
    The steps followed were:
    1. Open Server Explorer.
    2. right click on Data Connections
    3. Click on Add Connection
    4. In Choose data source: Microsoft Sql Server and Data Provider:
    .net framework data provider for sql server
    5. Add server name: ALVI\SQLEXPRESS and the database name:
    Customer
    6. Click test Connection: i have got the message: "Test Connection Succeeded"
    7. Click OK
    "unable to add data connection. could not load file or assembly 'microsoft.sqkserver.management.sdk.sfc' verision=11.0.0, culture=netural, publickkeytoken=89845dcd8080cc91' or one of its dependenciec. The System cannot find the file specified."
    I have already tried this method.
    1) Microsoft SQL Server Management Objects
    2) repair installed on Microsoft SQL Server System CLR Types
    3) Microsoft SQL Server 2008 Native Client.
    what's the problem? and what i need to do?
    Thanks
    ALVI

    Hello,
    Thank you for your post.
    In order to check if the issue is related to your VS,
    you could locate to the IDE folder then run these commands to check if it can help if you add a data connection in VS2012 Ultimate:
    Please open Windows Explorer, and navigate to  <Visual Studio Installation Path>\Common7\IDE
    Devenv.exe /SafeMode: Launches the IDE in safe mode loading minimal windows.
    Devenv.exe /ResetSettings: Restores the IDE's default settings, optionally resets to the specified VSSettings file.
    Devenv.exe /ResetAddin: Removes commands and command UI associated with the specified Add-in.
    Devenv.exe /ResetSkipPkgs: Clears all SkipLoading tags added to VSPackages.
    And I did some search about this error and find a thread with the similar issue:
    http://social.msdn.microsoft.com/Forums/en-US/efb83302-386b-460f-9467-edce28d61016/unable-to-add-a-data-connection-in-visual-studio
    As VMzaure said, if you are using SQL Server Express, you need to specify the server name as
    MyComputerName\SQLEXPRESS. But based on your post, I feel you are using SQL Server. If you are using SQL Server and have named instance, please try to specify the server name as MyComputerName\InstanceNameHere to check the result.
    If still no help, according the error, it indicates that the problem is that the system cannot locate the right assembly (SQL Server SDK). So I think you may get better response and solutions
    if you consult on SQL Server forums.
    Thank you for your understanding.
    Best regards,
    Amanda Zhu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Starting Management Studio, got "Could not load file or assembly 'WindowsBase 4.0.0.0 ...'" error

    "Could not load file or assembly 'WindowsBase 4.0.0.0 ...
    I get this error when starting Management Studio Express 2012.
    I know it is related to Visual Studio 2010 SP1. I ought to try to update VS2010 SP1 with KBxxxx that fix security issues. But one KB2635973 refuses to install (I downloaded the update and run it not via Windows Update). When running the update I get the
    same error. The update UI shows that it has been installed. But it was not. When I check Windows Update it would be listed again.
    I didn't invite this trouble myself. I was running Windows 8. I was constantly prompted to upgrade to 8.1 but I declined. But one day it just got upgraded anyway without giving any chance to abort the upgrade. Since then I have this "Could not load
    file or assembly" error.
    I had tried re-installing SQL server management studio. But the error refuses to go away.
    Please help as I have spent a lot of time searching for solution without success. I have been using DOS/Windows since the 1980's and this is the worst experience that I have come across.

    Ok I found the cause after browsing through this thread:
    http://stackoverflow.com/questions/14506938/could-not-load-file-or-assembly-windowsbase-version-4-0-0-0
    WindowsBase.DLL is missing from this folder on my machine:
    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35
    I copied the file from another machine into this folder. Now the problem disappears.

  • Release Management vNext Powershell Could not load file or assembly System.Management.Automation Version=3.0.0.0

    Hi,
    I'm running TFS2013.4 with a number of build servers and all working fine. 
    I'm also running Release Management with update 4 (12.0.31101.0) and am running into trouble when trying to run my first dummy release.
    I have setup my servers, stages, releases paths, components and release template (all vNext) with out issue.
    When I run my Release Template (Deploy Using PS/DSC) I'm getting the following error :-
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException:
    Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
    The system cannot find the file specified.
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.DisposeCurrentSession()
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.Dispose()
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__11.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunPowerShellAsync>d__1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.TeamFoundation.Release.EnvironmentProvider.OnPrem.Implementation.OnPremDeploymentProvider.<CopyBuildsLocally>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.TeamFoundation.Release.EnvironmentProvider.OnPrem.Implementation.OnPremDeploymentProvider.<RunScript>d__0.MoveNext()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
       at Microsoft.TeamFoundation.Release.MonitorServices.Dsc.OnPrem.OnPremDeploymentActions.InvokePlatform(String activityId, MachineSpecification machineSpecification, StorageSpecification storageSpecification, String scriptPath, String configurationPath,
    Dictionary`2 configurationVariables)
       at Microsoft.TeamFoundation.Release.MonitorServices.Dsc.OnPrem.OnPremDeploymentActions.RunScript(DscComponent dscComponentParameters, String serverName, String userName, String password, String componentName, String scriptPath, String configurationPath,
    String useCredSecuritySupportProvider, String useHttps, String skipCACheck)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.Dsc.DscComponentInstaller.InvokeMethodByReflection(String methodArguments)
    I can't work out if my target machine (2008 R2 SP1) has a problem with WMA 3.0 or if the Release Template can't find the powershell script that I'm trying to call.  I figured that the relative path to the script could be wrong and have tried numerous
    iterations to no effect.  The error clearly points to a problem with WMA right?
    The target machine has .Net Framework 4.0, WMA Framework 3.0 and I can run Enter-PSSession to remote to it etc...
    Before I trash and rebuild my target machine I hoping someone may have some insight to my problem?
    Thanks in Advance
    Jason
    shroomie

    Daniel,
    The PS Script is taken from an MSDN blog and is fairly standard.  I'm sure it will run fine when executed, but I've not run it as it requires environment variables ($applicationPath) that will be present in the Release Management session calling it. 
    Here's the script :-
    configuration InstallModules
        param
            # Target nodes to apply the configuration
            [string[]]$NodeName = 'localhost',
            # Source Path for Modules
            [String]$SourcePath = "$applicationPath\Deploy\Modules",
            # Destination path for Modules
            [String]$DestinationPath = "$env:ProgramFiles\WindowsPowershell\Modules"
        Node $NodeName
            # Copy the Modules
            File ModuleContent
                Ensure          = "Present"
                SourcePath      = $SourcePath
                DestinationPath = $DestinationPath
                Recurse         = $true
                Type            = "Directory"
    InstallModules
    Thanks
    Jason
    shroomie

  • Could not load file or assembly 'BusinessObjects.Enterprise.Sdk' with 64 bit SDK

    I am running across an error that I do not fully understand when trying to get the SDK to work for 4.1 SP04. I have been trying to get this solution for a while now. I am able to run the SDK functionality with the 32 bit version without an issues however, my client would like to run the 64 bit version to align with their architecture. I have added the x64 DLLs to my project in VS2013, and compiled and built the project as a 64 bit project. I am receiving the following error message:
    Could not load file or assembly 'BusinessObjects.Enterprise.Sdk' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    When building the project to build on "Any CPU" instead of x64 or x86, I am seeing the following messages:
    Warning    1    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "BusinessObjects.Enterprise.Sdk, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=AMD64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    DemoWeb2
    Warning    2    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "CrystalDecisions.Enterprise.Framework, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=x86", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    DemoWeb2
    Warning    3    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "CrystalDecisions.Enterprise.InfoStore, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=x86", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    DemoWeb2
    Warning    4    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "CrystalDecisions.Enterprise.PluginManager, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=x86", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    DemoWeb2
    I have made sure that I am referencing the 64 bit sdk .dlls from C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\. I only have 64 bit installed as well. Are InfoStore, Framework, and PluginManager only x86?
    Thanks!

    Hi Dustin
    You do  not need to be concerned if your app references 32 or 64 bit assemblies. VS being 32 bit, needs to reference 32 bit assemblies in order to compile correctly. Thus running the app from the VS IDE, you wil be using 32 bit assemblies. Using a compiled exe or a DLL, the app will use 32 bit or 64 bit assemblies depending on how the app was compiled and "bitness" of the OS.
    E.g;; an app compiled as 32 bit will require 32 bit assemblies
    An app compiled as 64 bit will run 64 bit assemblies - on 64 bit OS only.
    An app compiled as "Any CPU", will run 32 b it or 64 bit assemblies, depending on the OS. On a 64 bit OS, the app will by definition use 64 bit assemblies (but it is up to you to deploy the 64 bit runtime - not the 32 bit runtime). On a 32 bit OS the app will use 32 bit assemblies.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • When attempting launch of photoshopcc,I get a box with "could not load the MMX core routines module because it does not work with this version of PS... what does this mean and how do I correct it?

    when attempting launch of photoshopcc,I get a box with "could not load the MMX core routines module because it does not work with this version of PS... what does this mean and how do I correct it?

    I did a search on my system and found the Photoshop has a fastcore plug-in.  Creative Cloud includes a subscription version of CS6 version 13.1.2.   I do not know if you installed that or not.  The cc un-install may have done something.  You may need to use Adobe Cleaner then Install The Perpetual CS6 version of Photoshop  CS6 version 13.0.6 Mac or Photoshop  CS6 version 13.0.1.3 PC and not the subscription CS6 extended version 13.1.2.  Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6   If you need to download the CS6 installer Download CS6 products.
    You may also be able to recover your cs6 using an old system backup
    fastcore.8bx on my system...

  • Could not load file or assembly issue with SSAS Deployment Wizard

    Hi
    I am getting an error when trying to update 'Data Source Connection Strings' under 'Specify Configuration Properties' of the SSAS Deployment Wizard.
    Unhandled exception occurred: Could not load file or assembly 'Microsoft.VisualStudio.Data, Version=8.0.0.0 ...
    Well, it used to be 'version = 10.0.0.0. It changed to version 8 after trying to fix it for hours by googling and so on.
    I just can not make it work. I really need to make it work as I need to use the deployment wizard to deploy the project to the production server. (Looks like this is the only way as the server is not part of domain, just a standalone server hosted on a cloud).
    on top of my head, I remember installing everything under SQL2012 DVD  D:\redist\VSTA.
    Visit Micirosoft site and download components and so on..
    I have two other servers, one with SQL2008R@ and SQL2012. Both are ok. But this server which I want to use it as the production server is causing me an issue. ah...  I can not make it work. Please help me!
    Kind regards

    Hi Dustin
    You do  not need to be concerned if your app references 32 or 64 bit assemblies. VS being 32 bit, needs to reference 32 bit assemblies in order to compile correctly. Thus running the app from the VS IDE, you wil be using 32 bit assemblies. Using a compiled exe or a DLL, the app will use 32 bit or 64 bit assemblies depending on how the app was compiled and "bitness" of the OS.
    E.g;; an app compiled as 32 bit will require 32 bit assemblies
    An app compiled as 64 bit will run 64 bit assemblies - on 64 bit OS only.
    An app compiled as "Any CPU", will run 32 b it or 64 bit assemblies, depending on the OS. On a 64 bit OS, the app will by definition use 64 bit assemblies (but it is up to you to deploy the 64 bit runtime - not the 32 bit runtime). On a 32 bit OS the app will use 32 bit assemblies.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • HT201364 I'm trying to restore my iPhone 5 and its gone into recovery mode and won't go out I've gone on to iTunes it says that its in recovery mode and to restore it after about 10 seconds it come up with could not restore unknown error occurred (9) i wo

    im trying to restore my iPhone 5 and its gone into recovery mode and won't go out I've gone on to iTunes it says that its in recovery mode and to restore it after about 10 seconds it come up with could not restore unknown error occurred (9) i wonder if you could help

    you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    If that does not work, take in for service
    Genius reservation http://www.apple.com/retail/geniusbar/

  • Could not load file or assembly 'Oracle.ManagedDataAccessDTC'

    I'm a little bit stuck... I've been trying to replace System.Data.OracleClient in my application for a while now, and was very encouraged to see a managed DLL option.
    I have followed the quick start instructions in the readme file, but my site returns this error on every page:
    Could not load file or assembly 'Oracle.ManagedDataAccessDTC' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    My development machine is 64 bit, and my server is 32 bit. I've tried to include either version into the /bin directory in my web application, but there is no change to the error message. I've also tried setting "promotable transaction=local" in my connection string to try and mitigate the need for this assembly, and that doesn't change the error.
    Interestingly (to others... to me it's terrifying) my application will no longer run even if I remove all references to the managed DLL, remove all 'using' statements, and try to revert my site back to the way it was... I am still getting the same error on load for any page.
    As you might expect, I am a complete, total noob with Oracle. I'm about as lost as can be.

    As a followup to this - I deleted everything off the server and republished. Then, watching the video, I followed along step by step. Everything appeared to work fine for my test page.
    I am a little bit lost however, trying to implement this in the rest of my application. The documentation doesn't have an example (that I can see, anyway) for how to reference the managed client in the <connectionStrings> section of my web.config file.
    I am also not too clear, if I need to have the tnsnames.ora file in my /bin/debug folder, if I have defined a connection string like this.
    <add name="MYNAME" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MYHOST)(PORT=MYPORT))(CONNECT_DATA=(SERVICE_NAME=MYSERVICENAME)));User Id=USERID;Password=PASSWORD;Persist Security Info=False" providerName="Oracle.ManagedDataAccess.Client" />
    (actual values in the above tag removed to protect the innocent...)
    Is Oracle.ManagedDataAccess.Client the preferred providerName for this tag?
    Currently, I am getting the following error:
    Unable to find the requested .Net Framework Data Provider. It may not be installed

Maybe you are looking for

  • Closing an LDAP session

    I use DBMS_LDAP.INIT(host, port) to open a session with an LDAP server. How does one CLOSE such a session?

  • Help with button Please!

    I have some buttons that I have set up to drag and drop out of a pop up window in to the students timetable but when pop-up gets closed the buttons in the student timetable close with the pop-up but I would like the buttons that the child has chosen

  • Duplicate entries in Contacts

    I have an iMac using Mountain Lion, an iPad 3 and iPhone 4. (Both IOS6).  I have duplicates of Contacts and Calendar on my iPhone.  What have I done to cause this?  how can I fix this? 

  • Multiplexing error in iDVD

    I've read some of the other posts about this, but none mentioned the same symptoms I'm having. iDVD throws a multiplexing error if I have chapters in my video. If I remove the chapters in iMovie and then use iDVD to burn, it works great. But adding t

  • Playing one track after another.

    I have a good deal of classical music and different movements of many works are different tracks. So I have, say, Sonata in A flat, track 1, track 2, etc. I play the first track and then, instead of going to the next track, the ipod skips to a random