Solved

DSN Contains architecture mismatch

Posted on 2010-11-29
7
2,237 Views
Last Modified: 2012-05-10
My ASP page is reporting an error when trying to connect to a database

     [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application


1)  I have Win7, 64 Bit Ultimate.
2)  I have the 32 bit DSN / driver configured using
c:\windows\syswow64\odbcad32.exe
3)  IIS is running on my laptop
4)  I'm connecting to localhost to a shared folder on my laptop, (it's not under InetPub)
5)  The DSN is connecting to a Oracle db on the network using the Microsoft Oracle driver.
I've rebooted etc.  

Hope you can help.



0
Comment
Question by:dillybar
  • 5
  • 2
7 Comments
 
LVL 9

Expert Comment

by:losip
ID: 34234604
0
 

Author Comment

by:dillybar
ID: 34234621
yes I did.  it doesn't apply  

I mentioned above, that I have the 32 bit DSN / driver configured using c:\windows\syswow64\odbcad32.exe
0
 

Author Comment

by:dillybar
ID: 34234636
that is unless I read the article wrong... it doesn't seem to apply.  
I'm connecting to a Oracle 9   (32 bit) database using the 32 bit driver as mentioned in the article.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 9

Expert Comment

by:losip
ID: 34234673
Are you sure you're not using the 64 bit odbcad32.exe instead of the 32 bit version of the same program?
0
 

Author Comment

by:dillybar
ID: 34239631
2)  I have the 32 bit DSN / driver configured using  c:\windows\syswow64\odbcad32.exe

the article explains this is the 32 bit
I don't have any dsn's configured in the 64 bit odbc
0
 

Accepted Solution

by:
dillybar earned 0 total points
ID: 34357481
Thanks for trying losip.

For anyone that is struggling with this, here's the apparent answer to get you through this.
Yes you have to set up the odbc driver in the 32 bit as mentioned above,
but you'll need to set the application pool to 32 bit.
http://social.msdn.microsoft.com/Forums/en/adodotnetdataproviders/thread/1c63e3ae-e001-4066-9eac-ad9162116603
0
 

Author Closing Comment

by:dillybar
ID: 34387672
i found the answer (not on experts exchange)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

840 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