You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: [09:21:45][Export-DbaRepServerSetting] Could not load replication libraries | Could not load file or assembly 'Microsoft.SqlServer.Replication.dll' or one of its dependencies. The specified module could not be found.
There are 2 instances of Microsoft.SqlServer.Replication.dll: 1 under SSMS, 1 under dbatools\1.0.142. If I go to each of those folders and attempt this
add-type Microsoft.SqlServer.Replication.dll
this pops
add-type : c:\Users...\AppData\Local\Temp\or2vyaul\or2vyaul.0.cs(1) : A namespace cannot directly contain members such as fields or methods
c:\Users...\AppData\Local\Temp\or2vyaul\or2vyaul.0.cs(1) : >>> Microsoft.SqlServer.Replication.dll
At line:1 char:1
+ add-type Microsoft.SqlServer.Replication.dll
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 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 line:1 char:1
+ add-type Microsoft.SqlServer.Replication.dll
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
+ FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
Is there guidance for the next steps for troubleshooting this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I execute
Export-DbaRepServerSetting -SqlInstance srv -path c:\temp\srv\
this pops
WARNING: [09:21:45][Export-DbaRepServerSetting] Could not load replication libraries | Could not load file or assembly 'Microsoft.SqlServer.Replication.dll' or one of its dependencies. The specified module could not be found.
There are 2 instances of Microsoft.SqlServer.Replication.dll: 1 under SSMS, 1 under dbatools\1.0.142. If I go to each of those folders and attempt this
add-type Microsoft.SqlServer.Replication.dll
this pops
add-type : c:\Users...\AppData\Local\Temp\or2vyaul\or2vyaul.0.cs(1) : A namespace cannot directly contain members such as fields or methods
c:\Users...\AppData\Local\Temp\or2vyaul\or2vyaul.0.cs(1) : >>> Microsoft.SqlServer.Replication.dll
At line:1 char:1
+ add-type Microsoft.SqlServer.Replication.dll
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 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 line:1 char:1
+ add-type Microsoft.SqlServer.Replication.dll
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
+ FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
Is there guidance for the next steps for troubleshooting this?
Beta Was this translation helpful? Give feedback.
All reactions