C
Cathleen C via DotNetMonster.com
I created some very simple ASP.NET applications - form data is entered into
an Access database. There are 4 of these apps - all similar in nature and
even connect to the same database just different tables via stored queries.
All of the apps were working fine on the web server. Then I recently noticed
that a few all of the sudden stopped working. I checked thru the code on my
local machine - where I originally created them, but didn't see any
differences between the ones that worked and the ones that didn't. However
when I attempted to run in debug mode on my local system I started receiving
the same error message for all of them. If I rebuild and copy back to the
server some of them run fine, while others still do not. - there doesn't seem
to be an rhyme or reason.
Here is the error message I receive for one that works on the web server, but
not locally.
Exception Details: System.Data.OleDb.OleDbException: No error information
available: REGDB_E_CLASSNOTREG(0x80040154).
Source Error:
Line 90: // try
Line 91: //{
Line 92: oleHr.Open();
Line 93: oleInsert.Parameters["firstName"].Value = txtFirstName.Text;
Line 94: oleInsert.Parameters["lastName"].Value = txtLastName.Text;
Source File: c:\inetpub\wwwroot\con020\default.aspx.cs Line: 92
Stack Trace:
[OleDbException (0x80040154): No error information available:
REGDB_E_CLASSNOTREG(0x80040154).]
[InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not
registered on the local machine.]
System.Data.OleDb.OleDbConnection.CreateProviderError(Int32 hr)
System.Data.OleDb.OleDbConnection.CreateProvider(OleDbConnectionString
constr)
System.Data.OleDb.OleDbConnection.Open()
con020.WebForm1.cmdSign_Click(Object sender, EventArgs e) in c:\inetpub\
wwwroot\con020\default.aspx.cs:92
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.
RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain() +1292
Does anyone know what could be causing this inconsistent behavior?
an Access database. There are 4 of these apps - all similar in nature and
even connect to the same database just different tables via stored queries.
All of the apps were working fine on the web server. Then I recently noticed
that a few all of the sudden stopped working. I checked thru the code on my
local machine - where I originally created them, but didn't see any
differences between the ones that worked and the ones that didn't. However
when I attempted to run in debug mode on my local system I started receiving
the same error message for all of them. If I rebuild and copy back to the
server some of them run fine, while others still do not. - there doesn't seem
to be an rhyme or reason.
Here is the error message I receive for one that works on the web server, but
not locally.
Exception Details: System.Data.OleDb.OleDbException: No error information
available: REGDB_E_CLASSNOTREG(0x80040154).
Source Error:
Line 90: // try
Line 91: //{
Line 92: oleHr.Open();
Line 93: oleInsert.Parameters["firstName"].Value = txtFirstName.Text;
Line 94: oleInsert.Parameters["lastName"].Value = txtLastName.Text;
Source File: c:\inetpub\wwwroot\con020\default.aspx.cs Line: 92
Stack Trace:
[OleDbException (0x80040154): No error information available:
REGDB_E_CLASSNOTREG(0x80040154).]
[InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not
registered on the local machine.]
System.Data.OleDb.OleDbConnection.CreateProviderError(Int32 hr)
System.Data.OleDb.OleDbConnection.CreateProvider(OleDbConnectionString
constr)
System.Data.OleDb.OleDbConnection.Open()
con020.WebForm1.cmdSign_Click(Object sender, EventArgs e) in c:\inetpub\
wwwroot\con020\default.aspx.cs:92
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.
RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain() +1292
Does anyone know what could be causing this inconsistent behavior?