Solved

ASP.Net migration: Exception raised

Posted on 2013-01-25
1
850 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

761 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