PDA

View Full Version : سوال: خطای TypeInitializationException



301Software
سه شنبه 05 آبان 1388, 21:20 عصر
سلام دوستان
من به یه مشکل تو اجرا برنامه بعد از نصب خوردم.
وقتي که من برنامه ام رو روي سيستم کابر نصب مي کنم با اجرای اون با همچين اخطاري روبرو مي شم

http://up.iranblog.com/3/1256747183.jpg

که بيشتر روي TypeInitializationException ايراد مي گيره. و منم چيزي ازش سر در نمي آم.
يکم بيشتر توضيح مي دم، من يه ماژول تو پروژم دارم که يه سري دستورات پر تکرار و یه سری متغییرهای public ام توش تعریف شده و این ایرادو از این ماجول می گیره.
زمانی که دستورات این ماجول صدا زده می شه این اخطار می آد.
تا چند روز پیش چنین مشکلی وجود نداشت یعنی من ستاپ می ساختم و روی سیستم کاربر کامل جواب می داد تا یه وقت که موقع ساخت ستاپ هنگ کرد و پروژه ستاپم پاک شد و منم یه ستاپ دیگه ساختم ولی از اون به بعد فقط برنامه تو سیستم خودم کار میکنه.
پروژه رو دوباره تو یه سولوشن دیگه گذاشتم ولی بازم ارور می ده!
متن کامل اون ارور اینه:


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

************** Exception Text **************
System.TypeInitializationException: The type initializer for 'Chista.Dictionary.ModOper' threw an exception. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {C7E06D1D-4099-43D4-8C22-718E39713773} failed due to the following error: 80040154.
at Chista.Dictionary.ModOper..cctor()
--- End of inner exception stack trace ---
at Chista.Dictionary.ModOper.PreSettings()
at Chista.Dictionary.FrmMain.FrmMain_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Chista Dictionary
Assembly Version: 1.0.2560.20669
Win32 Version: 1.0.2560.20669
CodeBase: file:///C:/Program%20Files/301%20Software%20Group/Chista!%20Dictionary/Chista%20Dictionary.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Interop.WMonitorXLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/301%20Software%20Group/Chista!%20Dictionary/Interop.WMonitorXLib.DLL
----------------------------------------
Interop.WCaptureXLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/301%20Software%20Group/Chista!%20Dictionary/Interop.WCaptureXLib.DLL
----------------------------------------
Interop.SpeechLib
Assembly Version: 5.0.0.0
Win32 Version: 5.0.0.0
CodeBase: file:///C:/Program%20Files/301%20Software%20Group/Chista!%20Dictionary/Interop.SpeechLib.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.




چیکارش کنم ؟ من خیلی عجله دارم باید تا هفته بعد پروژه رو بدم دانشگاه.:متفکر:
لطفا کمکم کنید.
تشکر:قلب:

301Software
پنج شنبه 07 آبان 1388, 14:15 عصر
کسی نمی تونه کمکم کنه؟!!:متعجب:

pirmard
پنج شنبه 07 آبان 1388, 15:05 عصر
کسی نمی تونه کمکم کنه؟!!:متعجب:

توی سه خط اخر برناتون که گفته چه کنین !

هر خطای زمان اجرایی وقتی برنامه اگزه باشه به این پیغام شما منجر میشه. ممکنه کامپوننتی از قلم انداخه باشین/ادرس دیتابیس اشتباه باشه/با نوشتن تو دیتابیس مشکل داشته باشین (یوزر لیمیت)/ و ... .