PDA

View Full Version : خطای jit در هنگام اجرا



rezayeman
دوشنبه 29 دی 1393, 17:06 عصر
با سلام خدمت دوستان عزیز
شاید بگین موضوع تکراریه ولی من با کلی جستجو نتونستم کاری پیش ببرم

نرم افزاری با زبان c# و توی vs2010 نوشتم واسش setup ساختم و توی سیستم دیگه نصبش کردم. صفحه لاگینش میاد و با وارد کردن یوزرنیم و پسورد اطلاعاتو از بانک میخونه و وارد میشه.
تو صفحه اصلی برنامه به هر بخشی که میخوام برم پیغام خطای زیرو میده.

چه کار باید بکنم؟

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at DevComponents.DotNetBar.ButtonItem.InternalMouseUp (MouseEventArgs objArg)
at DevComponents.DotNetBar.BaseItem.InternalMouseUp(M ouseEventArgs objArg)
at DevComponents.DotNetBar.SideBarPanelItem.InternalM ouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.BaseItem.InternalMouseUp(M ouseEventArgs objArg)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevComponents.DotNetBar.SideBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
barcode
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Default%20Company%20Name/BarCodeSetup/barcode.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
FarsiMessageBox
Assembly Version: 1.0.0.0
Win32 Version: 1.87.11.01
CodeBase: file:///C:/Program%20Files%20(x86)/Default%20Company%20Name/BarCodeSetup/FarsiMessageBox.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
DevComponents.DotNetBar2
Assembly Version: 1.0.0.29312
Win32 Version: 1.0.0.29312
CodeBase: file:///C:/Program%20Files%20(x86)/Default%20Company%20Name/BarCodeSetup/DevComponents.DotNetBar2.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Alfred188
دوشنبه 29 دی 1393, 17:32 عصر
سلام،
آیا در Form_load اون صفحات سعی کردید مقادیری رو از بانک بخونید؟ اگه اینطوره این ارور به خاطر اینه که بانکتون هنوز خالیه! و برای اینکه این ارور ظاهر نشه بهتره از catch,try استفاده کنید.

rezayeman
دوشنبه 29 دی 1393, 17:37 عصر
از بانک میخونم ولی خالی نیستش
از همون بانکی میخونم که برنامرو طبق اون نوشتم
یعنی تو شبکه هستش و از یه جا خونده میشه

Alfred188
دوشنبه 29 دی 1393, 17:45 عصر
اتصال به بانکتون رو بررسی کنید، آیا یوزر و پس رو هم از همین بانک مورد نظر می خونید؟

rezayeman
دوشنبه 29 دی 1393, 17:49 عصر
بله از همین بانک میخونم و هیچ مشکلی نداره

حتی صفحاتی که از بانک چیزی نمیخونه هم اجرا نمیشه و همین پیغامو میده

صفحه About me که خودم درستش کردم هم اجرا نمیشه

Alfred188
دوشنبه 29 دی 1393, 17:54 عصر
از یه کانکشن استرینگ مرجع استفاده می کنید یا خیر؟ اگه نه بررسی کنید که بقیه درست باشن
برنامه تو سیستم خودتون بدون مشکل کار می کنه؟

rezayeman
دوشنبه 29 دی 1393, 17:59 عصر
از یک کانکشن استرینگ مرجع استفاده میکنم
بله برنامه تو سیستم خودم خوب کار میکنه

اصن تو سیستم خودم نوشتمش

Alfred188
دوشنبه 29 دی 1393, 18:07 عصر
خوب، از کامپوننت یا ابزار خاصی تو برنامه استفاده کردید؟

rezayeman
دوشنبه 29 دی 1393, 18:13 عصر
استفاده کردم
dll های مرتبط به برنامرو اضافه کردم

البته اینم اضافه کنم رو 4 سیستم نصب کردم
2 تاش کار میکنه و 2 تاش این error میده

khokhan
دوشنبه 29 دی 1393, 19:22 عصر
استفاده کردم
dll های مرتبط به برنامرو اضافه کردم

البته اینم اضافه کنم رو 4 سیستم نصب کردم
2 تاش کار میکنه و 2 تاش این error میده].


Try the following;
1-On the "TOOLS" menu, click Options.
2-In the Options dialog box, select the Debugging folder.
3-In the Debugging folder, select the Just-In-Time page.
4-In the Enable Just-In-Time debugging of these types of code box, select or clear the relevant program types: Managed, Native, or Script.
To disable Just-In-Time debugging, once it has been enabled, you must be running with Administrator privileges. Enabling Just-In-Time debugging sets a registry key, and Administrator privileges are required to change that key.
5-Click OK.

Just-In-Time debugging launches Visual Studio automatically when an exception or crash occurs in an application running outside Visual Studio. This enables you to test your application when Visual Studio is not running and begin debugging with Visual Studio when a problem occurs.
Just-In-Time debugging does not work for Windows Store apps. Just-In-Time debugging does not work for managed code that is hosted in a native application, such as Visualizers.

rezayeman
دوشنبه 29 دی 1393, 20:17 عصر
این کارو هم انجام داده بودم درست نشد

rezayeman
سه شنبه 30 دی 1393, 06:31 صبح
از دوستان کسی تو این زمینه نمیتونه راهنمایی کنه؟