System.Data.OleDb.OleDbException: Unspecified error

D

DOTNET

Hi all,

I have written code for connecting Access database and it worked fine and in
one fine morning the database connection command gives the following error.
I searched in MSDN site regarding the error and I tried all the things which
they provided and I talked to my server people also to help in solving the
problem.

The error and description is as follows:


Server Error in '/' 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.OleDb.OleDbException: Unspecified error

Source Error:


Line 10:
Line 11: oConn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data
source=c:\websites\indiamarketjournal303\indiamarketjournal.com\db\timj.mdb;")
Line 12: oConn.Open()
Line 13: end sub
Line 14:


Source File:
c:\websites\indiamarketjournal303\indiamarketjournal.com\include\dbcon.inc
Line: 12

Stack Trace:


[OleDbException (0x80004005): Unspecified error]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvider() +57
System.Data.OleDb.OleDbConnection.Open() +203

[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess) +0
System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
culture, Boolean verifyAccess) +422
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +23
Microsoft.VisualBasic.CompilerServices.LateBinding.FastCall(Object o,
MethodBase method, ParameterInfo[] Parameters, Object[] args, Type objType,
IReflect objIReflect) +241
Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object
o, Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack, Boolean IgnoreReturn) +430
Microsoft.VisualBasic.CompilerServices.LateBinding.LateCall(Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack) +23
ASP.index_aspx.dbCon() in
c:\websites\indiamarketjournal303\indiamarketjournal.com\include\dbcon.inc:12
ASP.index_aspx.Page_Load() in
c:\websites\indiamarketjournal303\indiamarketjournal.com\include\ad_right.inc:5
System.Web.Util.ArglessEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e) +10
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731



Actually MSDN suggested to provide the full permission to the temp folder
and the impersonation of the data access in web.config file also. I did the
same things and the server people also saying that the temp directory is
given full permission.

Moreover I changed the database location and in connectionstring also I
changed the path. Even it didn't solved the problem. Please if anybody
solved such problems give your suggestions immediately.

Thanks and Regards,

Senthil Kumar M.

Cycus Technologies Pvt Ltd
R-501, Remi Bizcourt
Shah Industrial Estate
Off Veera Desai Road
Andheri(W),Mumbai 400 049, India
Tel: +91-22-5675-6612/13
Mobile: +91-98 197 21911
Fax: +91-22-5675-6249
E-mail: (e-mail address removed)
http://www.cycustech.com
 
R

Rogas69

hi,

check if you still have permissions to open the database file. maybe there
were some security updates?

peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top