T
tommy
hi,
i have found a example for multithreading and asp.net
http://www.fawcette.com/vsm/2002_11/magazine/features/chester/
i want to speed up my website ...
if my website is starting, they should build a database-connection and
send a few sqls
the code works fine without multithreading--- but if i call the method
as the example..:
Dim NewThread As Thread = New Thread(AddressOf threading)
NewThread.Priority = ThreadPriority.Lowest
NewThread.Start()
.....i get an error--means i have not set a objectreference
in the method i call a class, who´s calling the access-database
the error raise at - setting the connection-string
oledbconnection1.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data
Source=" & Server.MapPath("/~db/db.mdb") & _
";Mode=Share Deny None;Extended Properties=""""" & _
";Jet OLEDB:System database="""";Jet OLEDB:Registry Path="""";Jet
OLEDBatabase Pass" & _
"word="""";Jet OLEDB:Engine Type=5;Jet OLEDBatabase Locking
Mode=1;Jet OLEDB:Glob" & _
"al Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet
OLEDB:New Databas" & _
"e Password="""";Jet OLEDB:Create System Database=False;Jet
OLEDB:Encrypt Database=" & _
"False;Jet OLEDBon't Copy Locale on Compact=False;Jet
OLEDB:Compact Without Rep" & _
"lica Repair=False;Jet OLEDB:SFP=False"
any suggestions??
regards
tommy
i have found a example for multithreading and asp.net
http://www.fawcette.com/vsm/2002_11/magazine/features/chester/
i want to speed up my website ...
if my website is starting, they should build a database-connection and
send a few sqls
the code works fine without multithreading--- but if i call the method
as the example..:
Dim NewThread As Thread = New Thread(AddressOf threading)
NewThread.Priority = ThreadPriority.Lowest
NewThread.Start()
.....i get an error--means i have not set a objectreference
in the method i call a class, who´s calling the access-database
the error raise at - setting the connection-string
oledbconnection1.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data
Source=" & Server.MapPath("/~db/db.mdb") & _
";Mode=Share Deny None;Extended Properties=""""" & _
";Jet OLEDB:System database="""";Jet OLEDB:Registry Path="""";Jet
OLEDBatabase Pass" & _
"word="""";Jet OLEDB:Engine Type=5;Jet OLEDBatabase Locking
Mode=1;Jet OLEDB:Glob" & _
"al Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet
OLEDB:New Databas" & _
"e Password="""";Jet OLEDB:Create System Database=False;Jet
OLEDB:Encrypt Database=" & _
"False;Jet OLEDBon't Copy Locale on Compact=False;Jet
OLEDB:Compact Without Rep" & _
"lica Repair=False;Jet OLEDB:SFP=False"
any suggestions??
regards
tommy