關于調用VB6.0的MSCOMM控件對象后移值工程的問題?100分可以再回200,在線等很急的,謝謝!
我在ASP.net工程中調用的MSCOMM控件的名詞空間MSCOMMLib,在本機測試已經沒有問題了,可編譯后放到只安裝了Framework的服務器上卻報錯,錯誤代碼這樣:
Server Error in '/' Application.
--------------------------------------------------------------------------------
類別未授權使用
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: 類別未授權使用
Source Error:
Line 140: Sub SendMessage()
Line 141: Dim i As Long
Line 142: Dim Gsm As New MSCommLib.MSComm()’*****出錯的代碼
Line 143: Dim strOkPerson_no As String '發送成功的工號
Line 144: Dim strErrPerson_no As String '發送失敗的工號
Source File: D:\Inetpub\wwwroot\OAsystem\mail\tel_message.aspx.vb Line: 142
Stack Trace:
[COMException (0x80040112): 類別未授權使用]
OAsystem.tel_message.SendMessage() in D:\Inetpub\wwwroot\OAsystem\mail\tel_message.aspx.vb:142
OAsystem.tel_message.ibtnSend_Click(Object sender, ImageClickEventArgs e) in D:\Inetpub\wwwroot\OAsystem\mail\tel_message.aspx.vb:87
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +109
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +69
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0