The provider is not compatible with the version of Oracle client - c# - oracle

When I try to browse my project through IIS, I get the below error
"The provider is not compatible with the version of Oracle client"
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client
enter image description here
Please let me know what are the steps that i should perform to resolve this error. Thanks!

Assuming you have Oracle client installed and you have reference to the Oracle.DataAccess.dll in your project, check its version. Go to <your oracle client path>\odp.net folder and find there *.dll file with same name. Compare versions. Most likely issue is that DLL in your dir is different and does not match your installed Oracle Client. Use DLL that matches client.
And tell your boss to stop using Oracle client and use Oracle.ManagedDataAccess.dll
Now, there could be other issues causing this but this is minimum to check before moving further.

In my case I got the same error message when migrating to the newer Oracle.ManagedDataAccess.dll and forgot to remove the existing Oracle.DataAccess.dll, resulting in a lot of ambiguity.
Everything worked once the older reference was removed.

Last time I had this problem in an c# project I had to add Oracle.DataAccess.dll reference from my Oracle client directory.

Related

Oracle SQL Developer - Driver Class not found. Vendor code 0

I am using Oracle SQL V. 4.1.3.
I have installed it successfully, and established connections to our database. I see the db connections, but when expanding them this error message shows up:
Driver Class not found. Verify the Driver location. Vendor Code 0
I installed Ms JDBC driver 6.0 for SQL Server and unpacked it in my ProgramFiles. I then went to ControlPanel-SystemProperties and added the sqljdbc42.jar as <installation directory>\sqljdbc_<version>\<language>\sqljdbc.jar under my existing environment variable called PATH.
Now when I go to SQL Developer Properties, I see JDBC.JAR added to Java.library.path but not to java.class.path. Is this the reason I am still getting error message? How do I go about fixing it? Or is there some other issue at hand?
I also experienced the reported error. It appears one can go to preferences of a connection, click on 'Test' to test the connection and then it suddenly works again... Very strange, but it worked. You do have to do this for all connections, but hey, it worked.
Need to set driver path inside Preference -> Database -> 3rd Party JDBC driver -- in case of mssql add -- jtds-1.3.1.jar.
Nevermind, I was just little stupid. All I had to do was add Third Party JDBC Driver path under Preferences in SQL Developer and it works like a Charm.

Can't update data from sonarqube server

When sonarlint eclipse ask me to refresh my sonarqube data (Update all projects binding), I get the following error :
Unable to update data from server 'cerbere'
Unable to move C:\workspace neon\.sonarlint\work\cerbere\.sonartmp_1776998337301134698\4346381085123285128
to C:\workspace neon\.sonarlint\storage\cerbere\global
As I also upgraded to latest version of sonarlint (2.1.0), I don't know if this caused my problem, that I hadn't had before.
I have to manually move the data to fix it.
Thank you.
As #Simon told me, it was a space in path problem.

i am getting error when i try to create web service client in Spring STS

i am getting this error when try to create new web service client.
IWAB0503E Unable to update Java build path. Please check your system environment.
Some web searching uncovered that what this error really means is “The Web Services generation tool detected multiple versions of the javax.xml.soap plug-in installed. Resolve this error by removing the conflicting plug-in.”
Sure enough, when I checked in Eclipse there were two versions.
WebService
I encountered two speed bumps when testing this theory:
There’s no easy way to uninstall a plug-in within the Eclipse UI, so I had to resort to removing the directory from eclipse\plugins directly from Windows Explorer.
Which version should I remove? It took me two tries to figure out which version was causing the error. Turns out that newer is not always better…in this case 1.3 was at fault and 1.2 (javax.xml.soap_1.2.0.v200905122109) was the version to keep.
This is old but, in my case the details of the error were:
IWAB0503E Unable to update Java build path. Please check your system environment.
java.io.FileNotFoundException: /lib/saaj.jar
So \lib\saaj.jar was not found in folder
C:\sts-4.8.0\sts-4.8.0.RELEASE\plugins\javax.xml.soap_1.3.0.v201105210645\
I created the folder lib and copied saaj.jar in it from another STS instance that I had and then it worked.

error in Dundas Dashboard not working

I just installed Dundas dashboard 4.0.2 and it installed successfully. However when I try to open the program, the webpage shows me error:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0009: Metadata file 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format. '
Source Error:
{No relevant source lines]
Source File: Line: 0
Looks identical to the error message in the following link:
http://www.telerik.com/community/forums/silverlight/vs-extensions/silverlight-demo-error.aspx
Based on that, it would seem like some prerequisite was not installed. Please post if the solution proposed there resolves your issue.
Hi i had the same problem not to long ago. I resolved it by uninstalling the latest release of Microsoft Silverlight and installing version 4 of it. Solved my problem instantly. There does seem to be an issue regarding the new version of Silverligh and Windows.
I would recommend re-installing the .NET 4.0 framework on the server.
After doing this, check IIS and make sure the application pool which is running Dundas Dashboard is set up to use ASP.NET 4.0 (not 2.0).

Unknown Database Connector Error in Crystal Reports

Ok, I am probably just shooting air with this question.. but I have no idea what's happening and I have been banging my head against it for the last couple days.
I have a crystal report version 12.2.0.290... I built this report against an Oracle connection string (not ODBC as it was giving me errors to use a stored procedure as a data source). Anyway, so the report was connecting to the database fine.. and I was able to build the entire report.. refreshing data with every change I made etc.. Once I was finished.. I closed the crystal report. When I open the report again and try to refresh the data I get the error "Unknown Database Connector Error in Crystal Reports". I get this error when I try to run the report straight from crystal reports.. or from the .NET wrapper that we built for this report. I also get the same error when I run the report (in CR) from another machine. In fact I get this error just trying to connect to an any Oracle database from that report..
The really strange thing is that if I open another report that we built a while ago.. I can connect to the same exact data source from it and it I go to File -> Open and open the first report.. I can connect to the Oracle data source and the report runs fine.. I can reproduce this strange behavior at will.. I don't know what is going on.... and I have been staring at this problem for the longest while.. if anyone has any ideas I will be more than happy to try them out...
Thanks!!
This is The Resolution:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/d2811b33-2c2c-43d1-af51-9c54e9ad7920/unknown-database-connector-error?forum=wpf
I've fixed the problem, I just needed those lines:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
If using a stored procedure as your data source, make sure it RETURNS a RESULT SET. Once I added a 'SELECT * FROM dbo.mytable', the error went away. :-)
Are you using the latest Oracle Data Access Components?
How to check which version you are using:
During installation of ODAC, consult the ODAC Installer screen.
After installation, see the history.html file in your ODAC installation directiory.
At design-time, select Oracle | About ODAC from the main menu of your IDE.
At run-time, check the value of the OdacVersion and DACVersion constants.
Note: This was originally a comment but added as an answer after OP response on how to check for the version of ODAC

Resources