Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i m trying to develop a dll which will pull data from tally. in vb.net windows application project it runs. But when i use same code to develop a dll which is .netframework 4 build and registered in 64bit .netframework64 folder it gives error as driver not found or architecture mismatch in driver and application.

Connection String : Dim cn As OdbcConnection = New OdbcConnection("DSN=TallyODBC_9000")

What I have tried:

running tally in 64bit by run as administrator option
have tried reinstalling regodbc32 by running as administrator

pls help
Posted
Updated 10-Sep-21 3:12am
v3
Comments
PIEBALDconsult 10-Sep-21 9:12am    
Plus, never use DSNs, always use a DSNless connection.

1 solution

It's possible the Tally driver you're using is 32-bit only. Recompile your .DLL to target x86 instead of x64 or AnyCPU and give that a try.
 
Share this answer
 
Comments
ATISH PAI DUKLE 10-Sep-21 13:16pm    
tried recompiling with x86 and registered under .netframwork but gave error so tried registering under .netframework64 still error

tried running tally in 64 bit and 32 bit still error comes
my operating system is 64bit

windows application with same code still works fine
Dave Kreskowiak 10-Sep-21 13:50pm    
I have no idea what you're talking about what you say "registered under ..."

Running Tally "in 64 bit and 32 bit" means nothing.

If you are referencing or otherwise using any Tally .dll's in your .dll, your architecture (x86 for 32-bit or x64 for 64-bit) MUST match the architecture of the .dll's you're using.

If they don't match, it won't work.
ATISH PAI DUKLE 10-Sep-21 15:26pm    
Registering my x86 or 32 bit dll in. Netframework64 gives error saying drivers not found for tally odbc. Tally odbc server is automatically installed when tally is opened. I m using tally odbc 32bit

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900