r_mehrizi
پنج شنبه 02 مهر 1388, 10:01 صبح
توي برنامه ميخوام از يك فايل ocx به نام checkdigit استفاده كنم كه براي چك كردن كد ملي هست
با استفاده از add refrence فايل ocx را به برنامه اضافه كردم
داخل اين فايل ocx يك تابع به اسم
validateNIDNumber هست كه ورودي اون كدملي هست اگر اين كد ملي وجود داشت true برگردونده ميشه و گر نه false
من اين كدها را توي برنامه نوشتم اما وقتي اجرا ميشه خطا ميده
ProtectedSub b_Click(ByVal sender AsObject, ByVal e As System.EventArgs) Handles b.Click
Dim ckdigit As CHECKDIGITLib.CheckDigit = New CHECKDIGITLib.CheckDigit
Dim codemeli AsString = "1234567890"
Dim t AsBoolean = ckdigit.validateNIDNumber(codemeli)
Me.TextBox1.Text = t
EndSub
پيغام خطايي كه ميده اين هستش
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
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.Runtime.InteropServices.COMException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Source Error:
Line 9: Dim codemeli As String = "1234567890"Line 10: 'Dim t As Boolean = CHECKDIGITLib.CheckDigit.validateNIDNumber(codemel i)Line 11: Dim t As Boolean = ckdigit.validateNIDNumber(codemeli)Line 12: Me.TextBox1.Text = tLine 13: End Sub
Source File: c:\inetpub\wwwroot\salb\pages\codemeli.aspx.vb Line: 11
اين فايل ocx كه ميخوام استفاده كنم قبلا توي برنامه vb استفاده ميشده
خيلي ضرووري هستش خواهشا يك نفر راهنمايي كنه:عصبانی++:
با استفاده از add refrence فايل ocx را به برنامه اضافه كردم
داخل اين فايل ocx يك تابع به اسم
validateNIDNumber هست كه ورودي اون كدملي هست اگر اين كد ملي وجود داشت true برگردونده ميشه و گر نه false
من اين كدها را توي برنامه نوشتم اما وقتي اجرا ميشه خطا ميده
ProtectedSub b_Click(ByVal sender AsObject, ByVal e As System.EventArgs) Handles b.Click
Dim ckdigit As CHECKDIGITLib.CheckDigit = New CHECKDIGITLib.CheckDigit
Dim codemeli AsString = "1234567890"
Dim t AsBoolean = ckdigit.validateNIDNumber(codemeli)
Me.TextBox1.Text = t
EndSub
پيغام خطايي كه ميده اين هستش
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
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.Runtime.InteropServices.COMException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Source Error:
Line 9: Dim codemeli As String = "1234567890"Line 10: 'Dim t As Boolean = CHECKDIGITLib.CheckDigit.validateNIDNumber(codemel i)Line 11: Dim t As Boolean = ckdigit.validateNIDNumber(codemeli)Line 12: Me.TextBox1.Text = tLine 13: End Sub
Source File: c:\inetpub\wwwroot\salb\pages\codemeli.aspx.vb Line: 11
اين فايل ocx كه ميخوام استفاده كنم قبلا توي برنامه vb استفاده ميشده
خيلي ضرووري هستش خواهشا يك نفر راهنمايي كنه:عصبانی++: