SQLPSX icon indicating copy to clipboard operation
SQLPSX copied to clipboard

Could not load file or assembly

Open AkashPatwal opened this issue 7 years ago • 0 comments

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

AkashPatwal avatar Mar 20 '18 02:03 AkashPatwal