Your code should be using DataReaders not Datasets (much lighter) and also Try/Catch/Finally. see: http://www.learnasp.com/freebook/learn/dbopen.aspx for an example of what I am ta/lking about. Let us know what error message the better code emits.
On 6/18/05, Hanafi <[EMAIL PROTECTED]> wrote: > hi all > i try t o connect to ms access database ,but there is error message . > i atach the message below. > can anybody here help me how to solve ? > > thanks > hanafi t > > ---------------------------------------------------------------------------- > ------------ > Server Error in '/vb/Dbase' Application. > ---------------------------------------------------------------------------- > ---- > > Could not lock file. > 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: Could not lock file. > > Source Error: > > > Line 97: 'Put user code to initialize the page here > Line 98: DataSet12.Clear() > Line 99: OleDbDataAdapter1.Fill(DataSet12) > Line 100: End Sub > Line 101: > > > > > > > ________________________________ > Yahoo! Groups Links > > > To visit your group on the web, go to: > http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
