aspsmartupload error
am 01.04.2008 16:36:04 von Todd
I am using Windows XP and have registered the aspsmartupload dll and moved it
into the system32 directory. I get the following error
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80070005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open
registry key 'Temporary (volatile) Jet DSN for process 0x918 Thread 0xa90 DBC
0x96768d4 Jet'.
The error occurs on the line where I set my variable called mySmartUpload
Here is my code
<%Set Cnn = Server.CreateObject("ADODB.Connection")
Cnn.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq= "&
Server.MapPath(".") & "\jobpostingsdb.mdb; uid=admin; pwd=hi12tech"
Dim mySmartUpload
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.Upload
sql = "insert into jobpostings (testing) values
('"&mySmartUpload.Form("testing")&"')"
cnn.execute(sql)
I usually get these types of errors when trying to access a database. My
understanding is aspsmartupload has nothing to do with a database. And the
database I'm using in this program is making a successful connection (at
least there was no error on the line of code that opened the connection).
Any suggestions?
Thanks!!
Re: aspsmartupload error
am 01.04.2008 17:57:26 von Daniel Crichton
Todd wrote on Tue, 1 Apr 2008 07:36:04 -0700:
> I am using Windows XP and have registered the aspsmartupload dll and
> moved it into the system32 directory. I get the following error
> Error Type:
> Microsoft OLE DB Provider for ODBC Drivers (0x80070005)
> [Microsoft][ODBC Microsoft Access Driver]General error Unable to open
> registry key 'Temporary (volatile) Jet DSN for process 0x918 Thread
> 0xa90 DBC 0x96768d4 Jet'.
> The error occurs on the line where I set my variable called
> mySmartUpload
> Here is my code
> <%Set Cnn = Server.CreateObject("ADODB.Connection")
> Cnn.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq= "&
> Server.MapPath(".") & "\jobpostingsdb.mdb; uid=admin; pwd=hi12tech"
> Dim mySmartUpload
> Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
> mySmartUpload.Upload sql = "insert into jobpostings (testing) values
> ('"&mySmartUpload.Form("testing")&"')"
> cnn.execute(sql)
> I usually get these types of errors when trying to access a database.
> My understanding is aspsmartupload has nothing to do with a database.
> And the database I'm using in this program is making a successful
> connection (at least there was no error on the line of code that
> opened the connection).
> Any suggestions?
> Thanks!!
That certainly looks like a Jet database error. Does the anonymous account
have permissions to write to the temp folder?
If you remove the aspsmartupload lines and just run a simple select, do you
still get the error?
--
Dan
Re: aspsmartupload error
am 01.04.2008 22:12:08 von Mike Brind
"Todd" wrote in message
news:9025B01B-10B0-439C-9D24-9162EC62517C@microsoft.com...
>I am using Windows XP and have registered the aspsmartupload dll and moved
>it
> into the system32 directory. I get the following error
>
>
> Error Type:
> Microsoft OLE DB Provider for ODBC Drivers (0x80070005)
> [Microsoft][ODBC Microsoft Access Driver]General error Unable to open
> registry key 'Temporary (volatile) Jet DSN for process 0x918 Thread 0xa90
> DBC
> 0x96768d4 Jet'.
>
> The error occurs on the line where I set my variable called mySmartUpload
>
>
> Here is my code
>
> <%Set Cnn = Server.CreateObject("ADODB.Connection")
> Cnn.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq= "&
> Server.MapPath(".") & "\jobpostingsdb.mdb; uid=admin; pwd=hi12tech"
> Dim mySmartUpload
> Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
> mySmartUpload.Upload
> sql = "insert into jobpostings (testing) values
> ('"&mySmartUpload.Form("testing")&"')"
> cnn.execute(sql)
>
> I usually get these types of errors when trying to access a database. My
> understanding is aspsmartupload has nothing to do with a database. And the
> database I'm using in this program is making a successful connection (at
> least there was no error on the line of code that opened the connection).
>
> Any suggestions?
>
> Thanks!!
I would stop using ODBC, and use the Jet OLEDB provider instead.
http://access.databases.aspfaq.com/why-do-i-get-general-erro r-unable-to-open-registry-key-driverid.html
--
Mike Brind - MVP ASP/ASP.NET
Re: aspsmartupload error
am 02.04.2008 05:24:22 von iahamed
Set MyConn = Server.CreateObject("ADODB.Connection")
MyConn.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath
("/yourdb/folder/whatever_name.mdb") & ";Persist Security Info=False"
And why use aspsmartupload dll like the ASP Old School Style, there are many
TOTAL ASP non componant based uploads use them. If not write to me will give
them. iahamed123@yahoo.com
Happy coding.
Bye.
Todd wrote:
>I am using Windows XP and have registered the aspsmartupload dll and moved it
>into the system32 directory. I get the following error
>
>Error Type:
>Microsoft OLE DB Provider for ODBC Drivers (0x80070005)
>[Microsoft][ODBC Microsoft Access Driver]General error Unable to open
>registry key 'Temporary (volatile) Jet DSN for process 0x918 Thread 0xa90 DBC
>0x96768d4 Jet'.
>
>The error occurs on the line where I set my variable called mySmartUpload
>
>Here is my code
>
><%Set Cnn = Server.CreateObject("ADODB.Connection")
>Cnn.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq= "&
>Server.MapPath(".") & "\jobpostingsdb.mdb; uid=admin; pwd=hi12tech"
>Dim mySmartUpload
>Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
>mySmartUpload.Upload
>sql = "insert into jobpostings (testing) values
>('"&mySmartUpload.Form("testing")&"')"
>cnn.execute(sql)
>
>I usually get these types of errors when trying to access a database. My
>understanding is aspsmartupload has nothing to do with a database. And the
>database I'm using in this program is making a successful connection (at
>least there was no error on the line of code that opened the connection).
>
>Any suggestions?
>
>Thanks!!
Re: aspsmartupload error
am 02.04.2008 06:17:16 von Bob Milutinovic
"Todd" wrote in message
news:9025B01B-10B0-439C-9D24-9162EC62517C@microsoft.com...
..
..
..
>
> Server.MapPath(".") & "\jobpostingsdb.mdb; uid=admin; pwd=hi12tech"
Right now would be a very good time to change your password.
- Bob.
Re: aspsmartupload error
am 02.04.2008 09:00:31 von exjxw.hannivoort
Bob Milutinovic wrote on 02 apr 2008 in
microsoft.public.inetserver.asp.general:
>
> "Todd" wrote in message
> news:9025B01B-10B0-439C-9D24-9162EC62517C@microsoft.com...
> .
> .
> .
>>
>> Server.MapPath(".") & "\jobpostingsdb.mdb; uid=admin; pwd=hi12tech"
>
> Right now would be a very good time to change your password.
No need, no one wil believe you did not do that already.
;-)
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: aspsmartupload error
am 02.04.2008 12:13:37 von reb01501
iahamed wrote:
> Set MyConn = Server.CreateObject("ADODB.Connection")
> MyConn.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> Server.MapPath ("/yourdb/folder/whatever_name.mdb") & ";Persist
> Security Info=False"
>
> And why use aspsmartupload dll like the ASP Old School Style, there
> are many TOTAL ASP non componant based uploads use them. If not write
> to me will give them. iahamed123@yahoo.com
>
Why not share them here?
You are aware that non-component-based solutions typically have limited
performance, aren't you? If large files are being transferred and it's a
busy server, users will thank the developer for using a component.
--
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"