我是想做一个登录的页面的,在CS里添加连接数据库的代码,我的要求是输入正确的名字和密码后会进入main.html页,如果失败会进入fail.html页,下面是连接数据库的一段,我在执行时报错说connection.Open()错误:                                              System.Data.OleDb.OleDbException: 没有可用的错误信息: REGDB_E_CLASSNOTREG(0x80040154)。[OleDbException (0x80040154): 没有可用的错误信息: REGDB_E_CLASSNOTREG(0x80040154)。][InvalidOperationException: 未在本地计算机上注册“Micrsoft.Jet.OleDb.4.0”提供程序。]
   System.Data.OleDb.OleDbConnection.CreateProviderError(Int32 hr)
   System.Data.OleDb.OleDbConnection.CreateProvider(OleDbConnectionString constr)
   System.Data.OleDb.OleDbConnection.Open()
   business.WebForm1.Page_Load(Object sender, EventArgs e) in e:\inetpub\wwwroot\business\webform1.aspx.cs:32
   System.Web.UI.Control.OnLoad(EventArgs e)
   System.Web.UI.Control.LoadRecursive()
   System.Web.UI.Page.ProcessRequestMain()
谁能告诉我错那里了????
代码:
private void Page_Load(object sender, System.EventArgs e)
{
String strConnection="Provider=Micrsoft.Jet.OleDb.4.0;data source=E:\\Inetpub\\wwwroot\\business\\loginManage.mdb;";
OleDbConnection Connection=new OleDbConnection(strConnection);
             Connection.Open();

String strSQL ="SELECT count(*) from win where account='"+Loginid+" and password='"+Loginpass+"'";
OleDbCommand Command= new OleDbCommand(strSQL,Connection);
            int count=Convert.ToInt32(Command.ExecuteScalar());
if (count>0)
{
Response.Redirect("main.html");
}
else
{
Response.Redirect("fail.html");
}

Connection.Close();