Exception deserializing the package error when executing SSIS package - visual-studio

I've just installed Visual studio Professional 2015 on a Microsoft 2019 Server with the following tools:
VS update 3
Sql Server Data Tools
BI Developer Extensions for Visual Studio 2015
Apex tools
ZappySys SSIS tools
When I go to run an SSIS package that works on other machines I get the following error message:
TITLE: Microsoft Visual Studio
------------------------------
Exception deserializing the package "The type initializer for 'Microsoft.SqlServer.Dts.Runtime.XMLSerializationHelper' threw an exception.".
------------------------------
ADDITIONAL INFORMATION:
The type initializer for 'Microsoft.SqlServer.Dts.Runtime.XMLSerializationHelper' threw an exception. (Microsoft.SqlServer.ManagedDTS)
------------------------------
Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=14.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. (Microsoft.SqlServer.ManagedDTS)
------------------------------
Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
I've repaired SQL Server Data tools and Visual studio itself with no luck. Any suggestions?

I had created a new SSIS project and facing same problem while executing it.
Generally this type of issue occurred when you have not selected the right SQL Server Version.
You have to first check the SQL Server version installed in your or remote machine and verify it with the SSIS Project. You have choose the same SQL Server version in Visual studio for your SSIS project.
SSIS Project>>Right Click (properties)>>Configuration Properties>>General>>Target Server Version
After setting this if still you are facing the same issue then please check the below settings.
SSIS Project>>Right Click (properties)>>Common Properties>>project>>Security>>Select the appropriate protection level.
Solution-1
Solution-2

Related

SSIS Error - Parsing Query from SQL Task Fails Due to 80040153, Invalid Value for Registry

Problem Statement
I have a lot of SQL Server environments locally.
When trying to parse a SQL task with very basic truncate table dbo.table syntax, I get the following error message.
I should note that when I execute the task it works fine despite throwing an error when parsed.
My understanding is that it's related to a corrupt .ddl file at the 'Microsoft SQL Server/1XX/DTS/Binn/'
- having trouble determining which SQL Server version's components be the cause.
Is there a way of determining the corrupt .dll and reconciling this issue?
Error Message
------------------------------
Retrieving the COM class factory for component with CLSID {dummy123-dum1-dum2-dum3-dummyds2309}
failed due to the following error: 80040153 Invalid value for registry
(Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE)).
What I've Tried
Tested on Visual Studio 2017/2019
Figuring out What Com Object is the Problem
Because the message only gives me the CLSID I'm having trouble locating the actual com object it's referencing.
I've run reg query HKCR\CLSID /s /f "{<CLSID>}"
This confirmed that it isn't there, but that wasn't helpful.
Environment
Microsoft Visual Studio Enterprise 2019 Version 16.4.1 VisualStudio.16.Release/16.4.1+29609.76 Microsoft .NET Framework Version 4.8.03752 Installed Version: Enterprise
SQL Server Data Tools 16.0.61912.09160 Microsoft SQL Server Data
Tools
SQL Server Integration Services 15.0.1900.80 Microsoft SQL Server
Integration Services Designer Version 15.0.1900.80
SsmsVsIntegration 1.0 Visual Studio Container Tools Extensions
(Preview) 1.0 View, manage, and diagnose containers within Visual
Studio.

Could not load file or assembly 'Microsoft.SqlServer.SqlClrProvider

i am creating an C# application in which i am facing error
"Could not load file or assembly 'Microsoft.SqlServer.SqlClrProvider, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The module was expected to contain an assembly manifest.".
i am getting this error while creating ADo.net entitydata model designer from database.
I have installed "SqlSysClrType.msi" for my Sql Server 2014
and "SharedManagementObjects.msi" for my Sql Server 2014, although both were previously installed.
i am running visual studio 2013 ultimate and sql server 2014 developer edition. please help me solve this
I can advice 2 solutions:
Solution #1
Use the following links:
http://blog.waseem-sabjee.com/2013/07/10/how-to-resolve-sqlclrprovider-not-found-without-installing-sql-server-on-the-client-machine-or-needing-a-deployment-project/
http://big.info/2011/12/could-not-load-file-or-assembly.html
If all fails try the following solution:
Solution #2
On your machine where you have SQL Server installed, the "Microsoft.SqlServer.SqlClrProvider.dll" file is in your GAC. However, you cannot access this file without making changes to the registry.
Using the registry editor, go to "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Fusion". Add a new DWORD called DisableCacheViewer. Give it a value of 1.
Once this change is made, you can go to "C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.SqlClrProvider\" to get the dll you need. then add it as a reference in the project.
I hope you've found it helpful.

Visual studio 2015 Update 1 migration error

My projects cannot be loaded anymore. Solution explorer says it is
(Incompatible)
**Unsupported
This version of Visual Studio is unable to open the following
projects. The project types may not be installed or this version of
Visual Studio may not support them. For more information on enabling
these project types or otherwise migrating your assets, please see the
details in the "Migration Report" displayed after clicking OK.**
**Non-functional changes required
Visual Studio will automatically make non-functional changes to the
following projects in order to enable them to open in Visual Studio
2015, Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010
SP1. Project behavior will not be impacted.**
The generated HTML in the project directory says
The application which this project type is based on was not found. Please try this link for further information:
http://go.microsoft.com/fwlink/?LinkId=628321&projecttype=8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942
and the link is extremely unuseful. The log in appdata says
2219 ERROR SetSite failed for package [Visual C++ Project System Package][Object reference not set to an instance of an object.]:{ at
Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<>c__DisplayClass55_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.Invoke(Func`1
method) at
Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.Initialize(IntPtr
instResources, Object sp, Object browser, IVCBuildPackageInternal
bldPkg)} {F1C25864-3097-11D2-A5C5-00C04F7968B4} 80004003 - E_POINTER
VisualStudio 2015/12/03 04:10:01.316 2220 ERROR End package load
[Visual C++ Project System Package]
and
616 ERROR SetSite failed for package [Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage,
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost,
Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a][Expected 1 export(s) with contract
name
"Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.Bridge.IWebKitDiagnosticsProvider"
but found 0 after applying applicable constraints.]:{ at
Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition
importDefinition) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String
contractName, ImportCardinality cardinality) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String
contractName) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T](String
contractName) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExportT at
Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValueT
at
Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetServiceT
at
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage.OnCreateService(IServiceContainer
container, Type serviceType) at
Microsoft.VisualStudio.Shell.Package.GetService(Type serviceType) at
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage.GetServiceT
at
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage.Initialize()
at
Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider
sp)} {B66F381B-48DE-4C10-B71B-EF9A2A808D85} 80131500 VisualStudio
2015/12/03 03:57:12.693 617 ERROR End package load
[Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost.Package.HtmlToolHostPackage,
Microsoft.VisualStudio.WebClient.Diagnostics.HtmlToolHost,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]
Download and reinstall Office Tools from http://aka.ms/getlatestofficedevtools and after restart it should work again.
It's possible that this is caused by a problem with deploying Visual Studio's config file during the Update 1 install process. To learn more about that, please see https://social.msdn.microsoft.com/Forums/vstudio/en-US/e011bc08-8b1d-4a2a-99d6-a167da922145/visual-studio-2015-update-1-fails-to-update-devenvexeconfig-plus-fix?forum=vssetup. If you're hitting that problem, please be aware that my team is working on deploying a fix for future installs.
If your machine is not impacted by that problem, then I'm afraid I don't know what the specific problem is. If you're willing to share your setup logs with me, I can do some analysis to see if something failed to install properly. If you want to go that route, please contact me directly at eric.knox#microsoft.com so I can send instructions.
Eric Knox, Visual Studio engineering manager

ODT with Visual Studio (Oracle 11G)

I began with Visual Studio 2010 and installed the ODT 11G. This worked completely fine and allowed me to open Oracle projects (.oradbproj).
I ran into another problem while working on Visual Studio 2015. I thought my problem would be fixed by installing ODT 12. This installed fine, however, I realised after that this was unnecessary.
When I came to open VS 2010 and open my Oracle project, I get the error:
"The selected file cannot be opened. 'XXX.oradbproj' cannot be opened
because its project type (.oradbproj) is not supported by this version
of the application. To open it, please use a version that supports
this type of project."
I then uninstalled both instances of ODT (11.2 and 12) and proceeded to install 11g. When I opened VS2010 afterwards, I was greeted with the following error:
"The 'Oracle Developer Tools for Visual Studio .NET' package did not
load correctly. The problem may have been caused by a configuration
change or by the installation of another extension. You can get more
information by running the application together with the /log
parameter on the command line and then examining the following
file..."
When I examine this file I get quite a few ERRORS ranging from:
Access is denied and could not load types: Shims.1_0_0_0.dll &
Shims.2_0.dll
-
OracleVSGPkg.SetSite - Exception Oracle Developer Tools VS Package
SetSite Oracle.DataAccess The type initializer for
'Oracle.DataAccess.Client.OracleCommand' threw an exception. at
Oracle.DataAccess.Client.OracleCommand..ctor() at
Oracle.VsDevTools.OracleUILGlobal.Initialize(OracleVSGPkg vsgPkg) at
Oracle.VsDevTools.OracleVSGPkg.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider
psp) Additonal Information - Oracle.DataAccess Unable to load DLL
'OraOps12.dll': The specified module could not be found. (Exception
from HRESULT: 0x8007007E) at
Oracle.DataAccess.Client.OpsInit.CheckVersionCompatibility(String
version) at Oracle.DataAccess.Client.OracleInit.Initialize() at
Oracle.DataAccess.Client.OracleCommand..cctor()
-
SetSite failed for package [Oracle Developer Tools for Visual Studio
.NET]
-
End package load [Oracle Developer Tools for Visual Studio .NET]
-
OracleVSGPkg.SetSite - Exception Oracle Developer Tools VS Package
SetSite Oracle.DataAccess The type initializer for
'Oracle.DataAccess.Client.OracleCommand' threw an exception. at
Oracle.DataAccess.Client.OracleCommand..ctor() at
Oracle.VsDevTools.OracleUILGlobal.Initialize(OracleVSGPkg vsgPkg) at
-
Oracle.VsDevTools.OracleVSGPkg.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider
psp) Additonal Information - Oracle.DataAccess Unable to load DLL
'OraOps12.dll': The specified module could not be found. (Exception
from HRESULT: 0x8007007E) at
Oracle.DataAccess.Client.OpsInit.CheckVersionCompatibility(String
version) at Oracle.DataAccess.Client.OracleInit.Initialize() at
Oracle.DataAccess.Client.OracleCommand..cctor()
-
SetSite failed for package [Oracle Developer Tools for Visual Studio
.NET]
When I check the "About Microsoft Visual Studio" there is no product "Oracle Developer Tools" listed (there was before) and in my Tools there is an option at the side labelled "Oracle Developer Tools" but when I click on it there are no options, just a single message saying "An error occurred loading this property page."
I've tried endless guides found on this website such as going through my registry, deleting all instances of Oracle and uninstalling all related files, then reinstalling. But that did not work. The rest of the questions seem to be similar, but not the same. All I want is to have Oracle 11.2 installed and all instances of 12 deleted, basically what I had before I installed 12.
I had this problem before and ended up having to revert my PC to factory settings.

Microsoft.SqlServer.TransactSql.ScriptDom not found when compiling Visual Studio 13 Lightswitch Project

I have an out of the box Lightswitch project, the only changes are adding a simple table with one string row, changing the project to look for localdb v12, and adding some JS files into the project that are from the aspnetcdn and this is an offline environment.
So, when trying to compile I get this error:
An exception occurred when building the database for the application.
Could not load file or assembly 'Microsoft.SqlServer.TransactSql.ScriptDom,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one
of its dependencies. The system cannot find the file specified.
C:\Program Files\(x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.targets
My guess is the issue has to do with using LocalDB 12, as the error is for ScriptDom v=11. But how do I verify or change this?
The environment is Windows 08 R2 Server w/ SQL Server 14. Any help is appreciated!
How did you change the solution to look for LocalDb v12? I believe the correct way is by using Tools -> Options -> Database Tools -> Data Connections to change the instance name.

Resources