June 8, 2018 at 7:48 am
Hello,
I am trying to deploy SSIS packages to a server and I receive the following error message
TITLE: SQL Server Integration Services
------------------------------
An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:
System.IO.FileLoadException: Could not load file or assembly 'microsoft.sqlserver.integrationservices.server, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A)
System.IO.FileLoadException:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
(Microsoft SQL Server, Error: 10314)
Once I change the authorization on SSISDB using commands below , I get a different error while deploying packages
---database owner should have the corresponding permissions
ALTER
AUTHORIZATION ON DATABASE::[SSISDB] TO sa;
---- Enabled TRUSTWORTHY property
ALTER
DATABASE [SSISDB] SET TRUSTWORTHY ON;
USE [SSISDB]
GO
--- Set the ownership for the user
EXEC
sp_changedbowner 'sa'
ERROR : Please create a master key in the database or open the master key in the session before performing this operation. (Microsoft SQL Server, Error: 15581)
Please help on what I need to do . While moving DBS to a different server and deploying SSIS packages before, I never faced this problem.
Thanks,
PSB
June 8, 2018 at 8:16 am
How was SSISDB created on this server? Did you use the CREATE CATALOG function, or have you transferred the database from another instance?
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
June 8, 2018 at 8:32 am
Created back up file from another instance and restored on this server ..
USE [master]
RESTORE DATABASE [SSISDB] FROM DISK = N'C:\Temp\Bkp\SSISDB.bak' WITH FILE = 1,
MOVE N'data' TO N'G:\SQL2017\DATA\SSISDB.mdf', MOVE N'log' TO N'D:\Log\SSISDB.ldf', NOUNLOAD, STATS = 5
GO
June 8, 2018 at 9:04 am
PSB - Friday, June 8, 2018 8:32 AMCreated back up file from another instance and restored on this server ..USE [master]
RESTORE DATABASE [SSISDB] FROM DISK = N'C:\Temp\Bkp\SSISDB.bak' WITH FILE = 1,
MOVE N'data' TO N'G:\SQL2017\DATA\SSISDB.mdf', MOVE N'log' TO N'D:\Log\SSISDB.ldf', NOUNLOAD, STATS = 5
GO
SSISDB is encrypted, so you cannot do this.
To be honest, it's far easier to go through the CREATE CATALOG process and then redeploy your packages.
If you really want to go down the backup/restore path, here are some outline steps that I wrote after migrating an SSISDB from a 2016 instance to a 2017 instance:
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
June 8, 2018 at 9:41 am
How do I go through the create catalog path ? Thanks for the update on the backup from source server ?
June 8, 2018 at 9:58 am
I dropped the SSISDB database ran the scrip below in master db
sp_configure 'show advancedoptions', 1;
GO
RECONFIGURE;
GO
sp_configure 'clr enabled', 1;
GO
RECONFIGURE;
GO
AND created the Catalog . Everything worked fine after that ..
Thank you All,
PSB
June 8, 2018 at 10:33 am
PSB - Friday, June 8, 2018 9:58 AMI dropped the SSISDB database ran the scrip below in master db
sp_configure 'show advancedoptions', 1;
GO
RECONFIGURE;
GO
sp_configure 'clr enabled', 1;
GO
RECONFIGURE;
GO
AND created the Catalog . Everything worked fine after that ..
Thank you All,
PSB
Bravo!
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply