Error:
The type initializer for 'Microsoft.Data.SqlClient.SqlConnection' threw an exception. ---> System.MissingMethodException: Method not found: 'System.Security.CodeAccessPermission System.Data.Common.DbProviderFactory.CreatePermission(System.Security.Permissions.PermissionState)'. |
This error can be seen if SQL Change Automation is run with Powershell Core as opposed to Windows Powershell.
Running ‘$PSVersionTable’ in your shell will return a PSEdition of either Desktop or Core and show the corresponding version.
Please refer to the documentation for the currently supported implementations:
0
0
Was this article helpful?
0 out of 0 found this helpful
Articles in this section
- Method not found: 'System.Security.CodeAccessPermission'
- Couldn't connect to the database specified by the Target parameter: A connection was successfully established with the server, but then an error occurred during the login process
- Could not install SqlChangeAutomation from any registered PSRepository
- System.Exception: No match was found for the specified search criteria and module name 'SQLChangeAutomation'. Try Get-PSRepository to see all available registered module repositories
- No match was found for the specified search criteria and module name 'SqlChangeAutomation'.
- Online index operations can only be performed in Enterprise edition of SQL Server
- Unable to resolve package source
- error 5(Access is denied.) while attempting to open or create the physical file
- SQL Change Automation Installation freezes at 99%
- SQL Change Automation Powershell permissions