Error connecting to PostgreSQL from Server Explorer - Could not load file or assembly, Version=4.0.4.1 'System.Runtime.CompilerServices.Unsafe' - postgresql

I am trying to connect PostgreSQL from .net core Server Explorer using Npgsql 4.1.1. But it is throwing exception Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe'.
I tried installing earlier version of Npgsql but, still the same exception.

Related

Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc. using database postgres

I am working on report using BIRT with postgresql. While I am able to run the report successfully using BIRT viewer, when I try to integrate with tomcat, it gives the below error-
Cannot open the connection for the driver:
org.eclipse.birt.report.data.oda.jdbc.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot load JDBC Driver class: org.postgresql.Driver.
while I have place the oda.jdbc.driver "postgresql-42.2.5" at location "\WEB-INF\lib" but still I'm facing this error.
I am running:
Birt version:-4.8.0
postgres version:- postgres9.5 (1.22.2)
After viewing error it seems the the JDBC driver jar is on at class path into BIRT runtime so it is not able to load the Driver and throwing error.
Please ensure the Driver jars are placed into libs directory of BIRT runtime installed in your server and it is available into class path at runtime.

connect to PostgreSQL 9.5 database from Visual Studio 2015 via Npgsql

I installed NpgsqlDdexProvider-3.1.0, through NuGet added to the project packages Npgsql v.3.0.5, EntityFramework5.Npgsql v.3.0.5, EntityFramework v.5.0.0. I try to add connection to database via Server Explorer and get error:
Failed to find or load the registered .Net Framework Data Provider
My data provider: .Net Framework Data Provider for PostgreSQL (Npgsql Ddex Provider)
My connection string:
Host=localhost;Username=postgres;Password=1;Database=postgres;
How to fix it?
You must add provider's dll to GAC and assemble of your IDE.

Error writing to file when installing SQL Server

I got this error in installing SQL Server 2008 R2:
The following error has occurred:
Error writing to file: Microsoft.DataTransformationServices.Controls.DLL. Verify that you have access to that directory.
What should I do?
Try re-installing SQL from command prompt.
Please install Microsoft .Net Framework 4.0 from here and try installing SQL Server 2012.

Binding IBM SQL Database with ASP.NET 5 in Bluemix

I'm creating an application in ASP.NET 5 and need to deploy the same in Bluemix. I would want to connect to IBM SQL Database in Bluemix.
I'm trying to use ODBC to connect to IBM SQL Database. But, when I build my application in Visual Studio 2015, it throws compiler error.
This is the error that I'm getting.
The type or namespace name 'Odbc' does not exist in the namespace
'System.Data' (are you missing an assembly reference?)
Visual Studio shows that the System.Data.Odbc is available in DNX 4.5.1 but unavailable in DNX Core 5.0 and hence it throws the error.
I'm stuck and unable to proceed further.
What should I do to be able to use the ODBC connection?
Can anyone please help.

ADO.net source giving error DTS_E_INDUCEDTRANSFORMFAILUREONERROR in SSIS

Here's the full error message:
[ADO NET Source [1]] Error: SSIS Error Code
DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "component "ADO NET Source"
(1)" failed because error code 0x80131937 occurred, and the error row
disposition on "output column "Z_ID" (16)" specifies failure on error.
An error occurred on the specified object of the specified component.
There may be error messages posted before this with more information
about the failure.
Breaking down the error message you have:
The "component "ADO NET Source" (1)"
failed because error code 0x80131937
occurred,
Your ADO data source encountered an error and because you have specified the component should fail on errors (usually the default option) you get this part of the error message:
...the error row disposition on
"output column "Z_ID" (16)" specifies
failure on error.
Therefore your entire package has failed.
Have you recently installed the .NET framework on the same machine as you are running SSIS? If so a possible solution is provided by this MS Fix:
Error message when you run a SQL Server 2005, SQL Server 2008, or SQL Server 2008 R2 Integration Services package (SSIS) after you install the .NET Framework 2.0 SP2 or the .NET Framework 3.5 SP1: "ADO NET Source [1424]"
I also came across this thread which contains a post stating:
In a nutshell, the cause of the
problem is that .net 2.0 isn't forward
compatible with .net 3.X. what this
means is that applications that are
written to target .net 2.0 won't work
in a .net 3.X environment. an ssis
2005 package is just another .net 2.0
application, so it won't work in a
.net 3.5 environment. fyi: this is
also why ssis 2005 packages won't work
in ssis 2008 unless they're upgraded.