Oracle Database client error - asp.net

I have 64bit windows and I have Visual studio 2012 also 64bit. I have installed the 64-bit Oracle client, but I am getting this message when I try to connect to my database server..
Attempt to load oracle client libraries threw badimageformatexception. This problem will occur when running in 64bit mode with the 32 bit Oracle client components installed at DataObjectSupport(721,6)
Any solutions?

Visual Studio IDE (at least 2012 and below) is 32bit, not 64bit.
If you check the path, you will it runs from:
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"
not, from "C:\Program Files\Microsoft Visual Studio 11.0".
Therefore, to connect to an Oracle database from the IDE itself, you need the 32bit client installed (in addtion to the 64bit client, if you need it for x64 apps).

Related

Oracle ODP.net exception in asp.net on windows server 2012 standard R2

I am getting the below exception while connecting to oracle database from asp.net application on .Net 4.5 and OS Windows Server 2012 Standard R2.
System.DllNotFoundException: Unable to load DLL 'OraOps12.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I already installed correct oracle 64 bit client and all things verified like environment variable paths,security and paths in registry.
Same thing working fine on windows 8 and windows 10.
It seems that windows server 2012 not detecting that oracle client was installed.
It has been solved by using oracle client .exe setup instead of oracle client xcopy setup.

Postgres and Visual studio asp.net

How can I add a postgresql database to a Visual studio asp .net project? I have tried by downloading the postgres odbc driver but still I can't see it in the odbc menu and is there any other way to do it
Most Visual Studio versions are 32-bit applications, even when installed on 64-bit Windows. The ODBC driver must match the application architecture, not the PostgreSQL server architecture.
Install the 32-bit ODBC driver.

Cannot connect to FoxPro database due to architecture mismatch between Driver and Application

Getting this error message when attempting to connect to a FoxPro database via a DSN on a Windows 7 x64 PC:
The specified DSN contains an architecture mismatch between the Driver and Application
This project uses Visual Studio 2005. The connection settings point to a 32-bit DSN ODBC configuration correctly. Not using the default x64 ODBC DSN. I even went into the registry (Wow6432Node) to make sure the FoxPro driver was pointing to the driver in the 32-bit location (sysWow64 directory).
Stumped - any ideas?
The Visual Studio 2005 project was configured for "Any CPU", and needed to be set to x86 explicitly. That was the difference, even though the DSN was pointing to the correct 32-bit driver.
Platform target: x86

Build error : Incompatible versions of SQL Server Data Tools and database runtime components are installed on this computer

I have a Visual Studio 2012 project that reports an error from msbuild when trying to publish the database from the command line:
Microsoft.Data.Tools.Schema.SqlTasks.targets(390,5): Build error :
Incompatible versions of SQL Server Data Tools and database runtime
components are installed on this computer.
I have checked and installed all updates for VS2012 SSDT and everything is up to date.
The trick was to install SSDT updates for Visual Studio 2010 - despite the fact that my solution was running in VIsual Studio 2012. The solution was upgraded from 2010 so perhaps that is why there is the dependency.
Another clue was in the path to the build target - v10 not v11
C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v10.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets(390,5): [error message followed]
I had the same issue but without the version v10/v11 being the issue.
To fix this problem, I closed Visual Studio 2012 then went into Programs and Features and did a repair of the following installer:
Microsoft SQL Server Data Tools - enu (11.1.41025.0)
Microsoft SQL Server Data Tools - Database Projects - Web installer entry point
Restart Visual Studio and compile again. Worked for me.
Downloading and running the latest installer for Visual Studio 2012 fixed this issue for me.

Retrieving the COM class factory for component with CLSID {88D969C1-F192-11D4-A65F-0040963251E5} failed due to the following error: 80040154

I am using visual studio 2010 Express. I have created a website in asp.net.It works in XP but not in Windows 7 premium(64-bit)
I am facing the same problem mentioned here.
I tried to register the DLL using regsvr32 but shows an error as
The Module "c:\MyProject\bin\MyDll.dll" was loaded but the entry-point
DllRegisterServer was not found.
Make sure that "c:\MyProject\bin\MyDll.dll" is a valid DLL or OCX and
then try again.
Also i didnt find any options under properties to set platform target or Target CPU so that i can convert my website to run for 32bit platform.
I am new to ASP.NET, Please help...
First notion would be that your app is running under a 64-bit application pool in IIS that does not have 32-bit apps enabled, and in that case 32-bit DLLs cannot be loaded into a 64-bit process space. Check that the application pool hosting your site allows 32-bit applications.
VS 2010 Express should be creating 32-bit executables by default; although I have not personally used it, I believe I have read that to build 64-bit executables in the 2010 Express versions you must download an additional SDK, so you're likely building a 32-bit target, thus causing the problem described.
I got this dialog trying to run the Visio x32 FlowChartSampleVBNET add-in. The dialog appeared with CLSID{00024500-0000-0000-C000-000000000046} which pointed to Excel. I had Excel x64 installed on my x64 machine. Apparently, the mismatch between Visio x32 and Excel x64 was causing the problem. After uninstalling Microsoft Office 2013 x64 and reinstalling Microsoft Office 2013 x32, I could run the add-in without error.
Enabling 32-bit application in IIS did not worked in my case!
When I have installed crystal report for visual studio and crystal report runtime engine (64-bit) worked in my case!
Some other suggests that, this problem could be resolved by installing both 32-bit and 64-bit runtime engine!
You can find similar issue here Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154

Resources