Solved

ASP.Net migration: Exception raised

Posted on 2013-01-25
1
875 Views
Last Modified: 2013-02-15
Hi experts,

I'm migrating a ASP.NET application from an IIS6 to IIS7.

The application is using ODP.Net 32 bits, and is targetted to .Net Framework 4.0

When I'm tryin to load a page I get this exception:

[A]Oracle.DataAccess.Client.OracleCommand cannot be cast to Oracle.DataAccess.Client.OracleCommand.

Type A originates from 'Oracle.DataAccess, Version=4.112.1.2, Culture=neutral, PublicKeyToken=89b483f429c47342' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_32\Oracle.DataAccess\v4.0_4.112.1.2__89b483f429c47342\Oracle.DataAccess.dll'.

Type B originates from 'Oracle.DataAccess, Version=2.112.1.2, Culture=neutral, PublicKeyToken=89b483f429c47342' in the context 'Default' at location 'C:\Windows\assembly\GAC_32\Oracle.DataAccess\2.112.1.2__89b483f429c47342\Oracle.DataAccess.dll'

Any help about the origin and solution for this error will be apprecied.

Thanks in advance.
0
Comment
Question by:david-marti
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
esolve earned 500 total points
ID: 38817978
The provider System.Data.OracleClient is a Oracle client provided by Microsoft within the .NET framework. Since this provider is deprecated, it is recommended to use the Oracle.DataAccess.Client which is provided by Oracle.

http://blogs.msdn.com/b/adonet/archive/2009/06/15/system-data-oracleclient-update.aspx
http://adtmag.com/articles/2009/06/16/microsoft-kills-oracle-data-provider-for-adonet.aspx

Looks like you need to install ODP.net
http://www.oracle.com/technetwork/topics/dotnet/index-085163.html

http://www.oracle.com/technetwork/topics/dotnet/code-154692.html
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question