Server Error in '/projetosenem' Application.

The 'SQLNCLI10' provider is not registered on the local machine.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The 'SQLNCLI10' provider is not registered on the local machine.

Source Error:


Line 47: 		OleDbConnection cn = new OleDbConnection(@"Provider=SQLNCLI10;Server=localhost;Database=colegio24horas2;Uid=colegio24horas2;Pwd=LXTZ4433VK#;") ;//ConfigurationSettings.AppSettings["DBConnection"]);
Line 48: 		//Provider=SQLOLEDB;Data Source=www.colegio24horas.com.br;Initial Catalog=colegio24horas2;UserId=colegio24horas2;Password=LXTZ4433VK#;Integrated Security=SSPI;") ;//ConfigurationSettings.AppSettings["DBConnection"]);
Line 49:         cn.Open();
Line 50: 		
Line 51: 		simulado=Int32.Parse(Request.QueryString["id"].ToString());

Source File: c:\inetpub\wwwcolegio24horas\Web\projetosenem\oglobo\simulado.aspx.cs    Line: 49

Stack Trace:


[InvalidOperationException: The 'SQLNCLI10' provider is not registered on the local machine.]
   System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper) +1192978
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +320
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +88
   System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +24
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions) +38
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +507
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +154
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +21
   System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +19
   System.Data.OleDb.OleDbConnection.Open() +42
   Simulado.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwcolegio24horas\Web\projetosenem\oglobo\simulado.aspx.cs:49
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0