الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

عند عملية تعبئة البيانات Oledbdataadapter1.fill(dataset21, "employeess")

بدأه azoz25 في 24 مايو 2009 · 4 رد · 614 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكــم ورحمـة الله وبركاتــه ،،

عند عملية تعبئة بيانات الجدول تظهر لي رسالة Could not lock file.

عند عمل RUN للتطبيق.

فلا أعلم ماهو الحل لتفادي تلك الرسالة, فأرجو منكم مساعدتي.

وشكراً لكم.

#2

ربما تحتاج الي اعطاء صلاحية الوصول الي المجلد الموجود به الملف للمستخدم ASPNET

ممكن تعرض الكود كاملا و نص رسالة الخطأ للتوضيح

#3

نص الرسالة كم طلبت

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 207: 'Put user code to initialize the page here

Line 208:

Line 209: OleDbDataAdapter1.Fill(DataSet21, "Employeess")

Line 210: End Sub

Line 211:

Source File: c:\inetpub\wwwroot\WebApplication5\WebForm1.aspx.vb Line: 209

Stack Trace:

[OleDbException (0x80004005): Could not lock file.]

System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)

System.Data.OleDb.OleDbConnection.InitializeProvider()

System.Data.OleDb.OleDbConnection.Open()

System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)

System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)

WebApplication5.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebApplication5\WebForm1.aspx.vb:209

System.Web.UI.Control.OnLoad(EventArgs e)

System.Web.UI.Control.LoadRecursive()

System.Web.UI.Page.ProcessRequestMain()

#4

قم باعطاء صلاحيات للمستخدم ASPNET و ايضا IUSR_computername للمجلد الموجود به قاعدة البيانات

#5

هل ممكن ان تشرح لي كيفية إعطاء الصلاحية؟.

وشكراً.

مواضيع مشابهة