سلام
وقت بخیر
من یکی از ستون های دیتاگرید ویو رو دکمه تعریف کردم و با تابع CellContentDoubleClick مربوط به دیتا گرید ویو کدی نوشتم که اطلاعات مربوط به این دکمه (که یک فایل ذخیره شده در دیتا بیس با فرمت دلخواه هست) رو باز می کنه
حالا تو همه سیستم ها کار می کنه بدون مشکل ولی تو سیتم یکی از کاربرام کار نمی کنه و خطا می ده
نمی توم بفهمم مشکل از کجاست
کسی می تونه راهنمایم کنه؟
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\QualityControl\SetupQC\961212.jpg' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at QC.frminput.dataGridView1_CellContentDoubleClick(Object sender, DataGridViewCellEventArgs e)
at System.Windows.Forms.DataGridView.OnCellContentDoubleClick(DataGridViewCellEventArgs e)
atSystem.Windows.Forms.DataGridView.OnCommonCellContentClick(Int32 columnIndex, Int32 rowIndex, Boolean doubleClick)
at System.Windows.Forms.DataGridViewCell.OnMouseUpInternal(DataGridViewCellMouseEventArgs e)
at System.Windows.Forms.DataGridView.OnCellMouseUp(DataGridViewCellMouseEventArgs e)
atSystem.Windows.Forms.DataGridView.OnMouseUp(MouseEventArgs e)
atSystem.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
atSystem.Windows.Forms.Control.WndProc(Message& m)
atSystem.Windows.Forms.DataGridView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
atSystem.Windows.Forms.NativeWindow.Callback(IntPtrhWnd, Int32 msg, IntPtrwparam, IntPtrlparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2563.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
QC
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/QualityControl/SetupQC/QC.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
در متن خطا مشخصه کاملا
برنامه دسترسی نداره
باید به صورت run as admin باز بشه
متوجه منظورتون نمی شم
این برنامه رو یک سرور هست ، و 4 کلاینت ازش استفاده می کنن
3تا از کلاینت ها بدون مشکل این صفحه رو باز می کنن فقط یک کلاینت نمی تونه بازکنه
اون یدونه کلایت ادمین سیستم خودش نیست
ببخشید بنده اصلا شبکه بلد نیستم ازکجا باید ببینم ادمین سیستمش کی هست و خودش رو ادمین سیستم کنم؟
تو قسمت user account این کاربر که نگاه کردم نوشته بود Adminstrator
متن ارور میگه دسترسی ندارید
والا فقط همین موضوع رو میشه برداشت کرد
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)