Skip to content

Could not load file or assembly  #25

@AkashPatwal

Description

@AkashPatwal

Hi,

I have tried scripting out the publication but it’s returning the below error, I have installed and loaded the RMO assembly. I have installed the PSExtensions but still it's returning the below error.

Can you please help me out with this.

Exception calling “Script” with “1” argument(s): “Could not load file or assembly ‘Microsoft.SqlServer.Replication, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91’ or one of its dependencies.
The system cannot find the file specified.”
At line:32 char:9

  • $publication.Script([Microsoft.SqlServer.Replication.scriptoptions]::Cre …
  • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
  • FullyQualifiedErrorId : FileNotFoundException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions