473,654 Members | 3,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[OleDbException (0x80004005): Unspecified error]

ASPX page from VS.net-C# on host's computer using oleDataAdaptor to connect
to Microsoft Access database.
The page loads, but when connection to the database is attempted to fill a
datagrid the following error is generated.
Any help would be appreciated.
Thanks,
Jim

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.Data.Ole Db.OleDbExcepti on: Unspecified error

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[OleDbException (0x80004005): Unspecified error]
System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr) +20
System.Data.Ole Db.OleDbConnect ion.InitializeP rovider() +57
System.Data.Ole Db.OleDbConnect ion.Open() +203
System.Data.Com mon.DbDataAdapt er.QuietOpen(ID bConnection connection,
ConnectionState & originalState) +44
System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +304
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior) +77
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet) +38
Win0905.AnteEdi tIden.Page_Load (Object sender, EventArgs e) +62
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750

Nov 19 '05 #1
7 22847
Hi Jim,

You might want to check whether the ASPNET account (or the current account
if using impersonation) has Change permissions on the directory where the
Access database is located. Access needs to create a locking file and you
can get an error like this if it is unable to do so because of lack of
permissions.

Ken
MVP [ASP.NET]

"Jim McGivney" <mc****@no-spam.sbcglobal. net> wrote in message
news:eA******** ******@TK2MSFTN GP14.phx.gbl...
ASPX page from VS.net-C# on host's computer using oleDataAdaptor to
connect to Microsoft Access database.
The page loads, but when connection to the database is attempted to fill a
datagrid the following error is generated.
Any help would be appreciated.
Thanks,
Jim

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.Data.Ole Db.OleDbExcepti on: Unspecified error

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[OleDbException (0x80004005): Unspecified error]
System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr) +20
System.Data.Ole Db.OleDbConnect ion.InitializeP rovider() +57
System.Data.Ole Db.OleDbConnect ion.Open() +203
System.Data.Com mon.DbDataAdapt er.QuietOpen(ID bConnection connection,
ConnectionState & originalState) +44
System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +304
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +77
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet) +38
Win0905.AnteEdi tIden.Page_Load (Object sender, EventArgs e) +62
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750


Nov 19 '05 #2
Ken Cox:
I am using impersonation. This is probably the cause of my problem.
Please help me with what you may think is a trivial question: If I remove
the impersonation tag from the WebConfig file (<identity impersonate="tr ue"
/> ), what tag(s) do I place to allow me authentication and authorization ?
Where do I place my user name and password ? or what ever else is needed.
This is complicated for me as I develop on my home computer and then use a
Host Service to display my webpage. What works on my home computer does not
always work on the Host's machine.
Thanks,
Jim


"Ken Cox [Microsoft MVP]" <BA**********@h otmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi Jim,

You might want to check whether the ASPNET account (or the current account
if using impersonation) has Change permissions on the directory where the
Access database is located. Access needs to create a locking file and you
can get an error like this if it is unable to do so because of lack of
permissions.

Ken
MVP [ASP.NET]

"Jim McGivney" <mc****@no-spam.sbcglobal. net> wrote in message
news:eA******** ******@TK2MSFTN GP14.phx.gbl...
ASPX page from VS.net-C# on host's computer using oleDataAdaptor to
connect to Microsoft Access database.
The page loads, but when connection to the database is attempted to fill
a datagrid the following error is generated.
Any help would be appreciated.
Thanks,
Jim

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.Data.Ole Db.OleDbExcepti on: Unspecified error

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[OleDbException (0x80004005): Unspecified error]
System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr) +20
System.Data.Ole Db.OleDbConnect ion.InitializeP rovider() +57
System.Data.Ole Db.OleDbConnect ion.Open() +203
System.Data.Com mon.DbDataAdapt er.QuietOpen(ID bConnection connection,
ConnectionState & originalState) +44
System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +304
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +77
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet) +38
Win0905.AnteEdi tIden.Page_Load (Object sender, EventArgs e) +62
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750



Nov 19 '05 #3
Hi Jim,

Run this script on your page to find out the account that is running
ASP.NET:

<%@ Page Language="vb" %>
<HTML>
<body>
<form id="Form1" method="post" runat="server">
<%Response.writ e(
System.Security .Principal.Wind owsIdentity.Get Current().Name) %></form>
</body>
</HTML>

Once you have that account, go into Windows Explorer and navigate to the
directory where the Access database is located. Right-click on the folder
name and in the Security tab*, give that user account Change permissions.

Your host may have to handle this chore for you on the Web server.

* If the Security tab is missing, look here:

http://weblogs.asp.net/kencox/archiv...24/359695.aspx

Let us know how you make out?

Ken
Microsoft MVP [ASP.NET]
"Jim McGivney" <mc****@no-spam.sbcglobal. net> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Ken Cox:
I am using impersonation. This is probably the cause of my problem.
Please help me with what you may think is a trivial question: If I remove
the impersonation tag from the WebConfig file (<identity
impersonate="tr ue" /> ), what tag(s) do I place to allow me authentication
and authorization ? Where do I place my user name and password ? or what
ever else is needed. This is complicated for me as I develop on my home
computer and then use a Host Service to display my webpage. What works on
my home computer does not always work on the Host's machine.
Thanks,
Jim


"Ken Cox [Microsoft MVP]" <BA**********@h otmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi Jim,

You might want to check whether the ASPNET account (or the current
account if using impersonation) has Change permissions on the directory
where the Access database is located. Access needs to create a locking
file and you can get an error like this if it is unable to do so because
of lack of permissions.

Ken
MVP [ASP.NET]

"Jim McGivney" <mc****@no-spam.sbcglobal. net> wrote in message
news:eA******** ******@TK2MSFTN GP14.phx.gbl...
ASPX page from VS.net-C# on host's computer using oleDataAdaptor to
connect to Microsoft Access database.
The page loads, but when connection to the database is attempted to fill
a datagrid the following error is generated.
Any help would be appreciated.
Thanks,
Jim

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.Data.Ole Db.OleDbExcepti on: Unspecified error

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:

[OleDbException (0x80004005): Unspecified error]
System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr) +20
System.Data.Ole Db.OleDbConnect ion.InitializeP rovider() +57
System.Data.Ole Db.OleDbConnect ion.Open() +203
System.Data.Com mon.DbDataAdapt er.QuietOpen(ID bConnection connection,
ConnectionState & originalState) +44
System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +304
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +77
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet) +38
Win0905.AnteEdi tIden.Page_Load (Object sender, EventArgs e) +62
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750




Nov 19 '05 #4
Hi, Ken
I run into similiar situation like Jim.I can't connect to Access
database from asp.net applicaiton using OLEDB. Here is my connection
string "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=c:\inetp ub\wwwroot\Omni Care\Temp\10000 000174_SAMP1_10 0_20040531.mdb
". I failed when I try to open the connection and got "Unspecifie d
error" message. I already followed your suggestion and gave user
account change permissions on the folder "Temp". Anything else am I
missing?

Thanks in advance.

lucy

Nov 19 '05 #5
Try any of this:-
Standard security:
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=\somepat h\mydb.mdb;User
Id=admin;Passwo rd=;"

Workgroup (system database):
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=\somepat h\mydb.mdb;Jet
OLEDB:System Database=system .mdw;"

With password:
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=\somepat h\mydb.mdb;Jet
OLEDB:Database Password=MyDbPa ssword;"

Hope that helps
Patrick
"lucy" <yo****@profite cinc.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hi, Ken
I run into similiar situation like Jim.I can't connect to Access
database from asp.net applicaiton using OLEDB. Here is my connection
string "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=c:\inetp ub\wwwroot\Omni Care\Temp\10000 000174_SAMP1_10 0_20040531.mdb
". I failed when I try to open the connection and got "Unspecifie d
error" message. I already followed your suggestion and gave user
account change permissions on the folder "Temp". Anything else am I
missing?

Thanks in advance.

lucy

Nov 19 '05 #6
I tried standard security and workgroup connection string and I got the
same error message. The third option won't work in my scenario. What
I'm trying to accomplish as whole is to create a Access database,
append tables and insert records into tables on the fly and save
database file in a temp folder on the web server, then compress
database file into a zip file, download zip file to end user's local
machine.
I'll include the error message on the page as well:
Server Error in '/OmniCare' Application.
--------------------------------------------------------------------------------

Unspecified error
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.Data.Ole Db.OleDbExcepti on: Unspecified error

Source Error:
Line 292:
Line 293: 'Open the connection.
Line 294: cn.Open()
Line 295:
Line 296: 'Use a variable to hold the SQL statement.
Source File: C:\Inetpub\wwwr oot\OmniCare\Lo calDir.aspx.vb Line: 294

Stack Trace:
[OleDbException (0x80004005): Unspecified error]
System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr)
System.Data.Ole Db.OleDbConnect ion.InitializeP rovider()
System.Data.Ole Db.OleDbConnect ion.Open()
OmniCare.LocalD ir.ConnectDB() in
C:\Inetpub\wwwr oot\OmniCare\Lo calDir.aspx.vb: 294
OmniCare.LocalD ir.cmdOK_Click( Object sender, EventArgs e) in
C:\Inetpub\wwwr oot\OmniCare\Lo calDir.aspx.vb: 83
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e)

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
System.Web.UI.P age.ProcessRequ estMain()


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.573;
ASP.NET Version:1.1.432 2.573

thanks

lucy

Nov 19 '05 #7
I finally found my solution. here is the reference site
http://msmvps.com/rakeshrajan/archiv.../04/56461.aspx
Hope it helps.
cheers

Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
57669
by: rOadhOg | last post by:
Help please! I set up a simple access 2000 database and I'm running IIS5. The first time I try it, it works, then it seems like I have to wait for some kind of time out for it to work again, because if I click the link that goes to the page again I get this error... Error Type: Provider (0x80004005) Unspecified error
0
1466
by: Mark V | last post by:
I am trying out VS web 2005 beta addition with an Access Database. If I try to insert new data into any table in the database I continually get the following error; Seen similar on many groups but don't really understand how to correct it or where I'm going wrong!!
1
6864
by: T8 | last post by:
I have a asp.net (framework 1.1) site interfacing against SQL 2000. It runs like a charm 99% of the time but once in a while I get the following "unspecified error". Sometimes it would resolve by itself (asp.net recycled?); it also can be solved by restarting IIS. Any ideas what cause(s) this to happen? System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleDb.OleDbDataReader.ProcessResults(Int32 hr) at...
2
4980
by: Shihao Png via DotNetMonster.com | last post by:
Well, the problem I'am having now applies to web applications only. Therefore, I believe it has something to do with security settings. Here's the code: ------------------------------------------------------------------- Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim child As System.DirectoryServices.DirectoryEntry ' dirEntry is a DirectoryEntry component that points to
5
9641
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve this error? Oracle error occurred, but error message could not be retrieved from Oracle. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the...
0
3864
by: mamin | last post by:
Hi! While running my asp application under Windows 2000 the following error appears: Microsoft JET Database Engine (0x80004005) Unspecified error I've installed MS Jet 4.0 SP1 and MDAC 2.8 SP1 but the problem still exists. As I know it could be the problem with permission, but I'm not sure what permission should I add to folder with my application .(mdb files are inside the folder). Can this problem be connected with using Active...
2
2164
by: javediq143 | last post by:
Hi all, I set up a simple access database.Earlier my ASP page was working fine,but dont know whats gone wrong that it started to give me this Err: Error Type: Provider (0x80004005) Unspecified error /imagine/TestJobShow.asp, line 38(This line is "objDbConn.Open") But more problmatic is, sometime it works and sometime not. Plz anybody can help me in this. Ive seen this probs with other people also but their requirement and codes were...
1
4764
by: 1983.yadav | last post by:
Hi All, I m Pankaj, i ve a problem in accessing data from MS-Access Table. The error is System.Data.OleDb.OleDbException: IErrorInfo.GetDescription failed with E_FAIL(0x80004005) My query to fetch the data is - Qry="select ZONE,CIRCLE,DIVISION,LOCATION,LOCATIONDESCRIPTION,LOCATIONCODE from ML" and my connection string is-
2
4214
by: kanman | last post by:
hi all. im developing a web based application using asp.net i'm getting this error below: and idea on where the problem is and how to fix? thank you in advance Kanman
0
8375
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.