Click here to Skip to main content
15,884,739 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a ASP site which is working fine on Windows Server 2003 & IIS 6.0. I migrated to Windows Server 2012 R2 IIS 8.5

I am getting an error when it tries to connect to a database:

Provider cannot be found. It may not be properly installed

Error Details:
2014-11-05 10:33:06 10.30.62.21 POST _main.asp |50|800a0e7a|Provider_cannot_be_found._It_may_not_be_properly_installed. 80 - XX.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/5.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E;+.NET+CLR+1.1.4322;+InfoPath.3) /bottomright.asp?sAction=assist 500 0 0 1859

My connection string is as below:

GetConnectionString = "Provider=SQLNCLI.1;Data Source=" & m_DALServer & _
";User Id=user;Password=pwd;Connect Timeout=3;"

I have checked the ODBC Data Source Administrator (32 bit) on new server(2012) and found below two related drivers

SQL Native Client 2005.90.4035.00 Microsoft Corporation SQLNCLI.DLL
SQL Server 6.03.9600.163.84 Microsoft Corporation SQLSRV32.DLL
I have enabled my app pool to 32 bit and Managed Pipeline to Classic.
Posted
Comments
Maciej Los 5-Nov-14 9:22am    
Strange!
Have a look here
Herman<T>.Instance 7-Nov-14 10:28am    
What database version do you use?
hrdksanghavi12 7-Nov-14 10:38am    
Its SQL Server 2005

Some drivers where installed by Tech Support Team. Which drivers I am not sure. But because of the patches I saw SQL Server Native Client 10 available in ODBC sources and my issue was resolved without any code change.

Thanks all for your time.
 
Share this answer
 
Try changing the provider to SQLNCLI10.1 in your connection string.
 
Share this answer
 
Comments
hrdksanghavi12 7-Nov-14 5:48am    
Hello Richard,

I tried using SQLNCLI10.1, but no luck. The issue still exists with same error message.
Richard Deeming 7-Nov-14 6:06am    
How about SQLNCLI11.1?
hrdksanghavi12 7-Nov-14 7:36am    
Hello Richard,

I tried using Provider=SQLNCLI and it works. But can you help me how could it be working with Provider=SQLNCLI.1, As in old environment (Windows Server 2003) it is working. Only migration activity has to be without any code change. Is is possible on make the application running with Provider=SQLNCLI.1 on Windows Werver 2012 R2?

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