I turned off Friendly Error Messages and now i have this error:
Microsoft JET Database Engine error '80040e4d'
Cannot start your application. The workgroup information file is missing or
opened exclusively by another user.
/processrequest.asp, line 9
code below:
<%
dim strConn
dim cnReq
strConn = "Provider=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" &
Server.MapPath("databases/apprequests.mdb") & ";"
Set cnReq = Server.CreateObject("ADODB.Connection")
cnReq.open strConn,,129 // -> THIS IS LINE 9 which is causing the error !
cnReq.AddNewRequest "John", "Doe" // -> AddNewRequest is a add query
which resides inside the database with two params
%>
I just have to overlook something but what?
I checked file, folder, internet security settings and all are ok.
The system.mdw resides in the same folder where the database is stored.
Now, i'm allready bald but if i still had some hair left they were all gone
by now!
Note that i've several other databases which resides in the same folder and
there i'm not having any errors at all!
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> schreef in bericht
news:%23pKxS0u0EHA.1932@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view] > Philmans wrote:
> > Hi Bob,
> >
> > i've did try your solutions and none of the above seems to be working
> > out ok.
> >
> > I'm still getting some general 500 error code when the cnReq
> > connection tries to insert values into the table by passing params
> > through a saved query.
>
> If you are getting general 500 error messages, then you need to turn off
> Friendly Error Messages in your browser so you can find out what actually
is
> happening.
>
>
http://www.aspfaq.com/show.asp?id=2109 >
> >
> > You talked about permissions but they're all fine. I have several
> > other Access-databases as well running and, strange thing, they all
> > accept
> > the update and addnew and insert into commands, none of them is
> > returning a error.
> >
> > I'm just tripping, it's driving me nuts!
>
> In addition to the above, it's time for some basic debugging. I assume
> you've tested your saved query in Access so you know it works when proper
> parameter values are provided. That allows us to concentrate on your ASP
> code.
>
> >
> > <%
> > dim strConn
> > dim strSQL
> > dim strFirstName
> > dim strLastName
> >
> > strFirstName = request.form("firstname")
> > strLastName = request.form("lastname")
>
> First of all, verify that this data has been properly passed:
>
> Response.write "strFirstName contains """ & strFirstName & """<BR>"
> Response.write "strLastName contains """ & strLastName & """<BR>"
>
> >
> > Set cnReq = Server.CreateObject("ADODB.Connection")
> > strConn = "Provider=MICROSOFT.JET.OLEDB.4.0; " & "DATA SOURCE=" &
> > Server.MapPath("databases/requests.mdb") & ";"
> >
>
> Now do some error-trapping:
>
> On Error Resume Next
>
> > cnReq.open strConn
>
> If err <> 0 then
> Response.Write "An error occurred when attempting to open cnReq:<BR>"
> Response.Write err.Number & ": " & err.Description
> set cnReq = Nothing
> Response.End
> end if
>
> >
> > cnReq.qryAddApp strFirstName,strLastName
>
> If err <> 0 then
> Response.Write "An error occurred when attempting to add data:<BR>"
> Response.Write err.Number & ": " & err.Description
> cnReq.close: set cnReq = Nothing
> Response.End
> end if
>
> >
>
> Don't forget to close and destroy your connection:
>
> cnReq.close: set cnReq = Nothing
>
>
> Bob Barrows
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
>