D
David Lozzi
Howdy,
I'm trying to send faxes from my asp.net code. I'm getting a "server threw
exception". Real helpful. here's my code
Dim FXServ As New FAXCOMLib.FaxServer
Dim FXDoc As FAXCOMLib.FaxDoc
Dim iFaxJob As Integer
'FXServ.Connect("SERVER")
FXDoc = CType(FXServ.CreateDocument("c:\test.txt"),
FAXCOMLib.FaxDoc)
FXDoc.FileName = "c:\test.txt"
FXDoc.FaxNumber = "15551231234"
iFaxJob = FXDoc.Send()
FXServ.Disconnect()
And here's the error
The server threw an exception.
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: The server
threw an exception.
Source Error:
Line 74:
Line 75: FXDoc.FileName = "c:\test.txt"
Line 76: FXDoc.FaxNumber = "15551231234"
Line 77:
Line 78: iFaxJob = FXDoc.Send()
Source File: c:\inetpub\wwwroot\fax\default.aspx.vb Line: 76
Stack Trace:
[COMException (0x80010105): The server threw an exception.]
FAXCOMLib.IFaxDoc.set_FaxNumber(String pVal) +0
fax.WebForm1.btnFax_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\fax\default.aspx.vb:76
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
Any advice is greatly appreciated!!
Thanks!
David
I'm trying to send faxes from my asp.net code. I'm getting a "server threw
exception". Real helpful. here's my code
Dim FXServ As New FAXCOMLib.FaxServer
Dim FXDoc As FAXCOMLib.FaxDoc
Dim iFaxJob As Integer
'FXServ.Connect("SERVER")
FXDoc = CType(FXServ.CreateDocument("c:\test.txt"),
FAXCOMLib.FaxDoc)
FXDoc.FileName = "c:\test.txt"
FXDoc.FaxNumber = "15551231234"
iFaxJob = FXDoc.Send()
FXServ.Disconnect()
And here's the error
The server threw an exception.
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: The server
threw an exception.
Source Error:
Line 74:
Line 75: FXDoc.FileName = "c:\test.txt"
Line 76: FXDoc.FaxNumber = "15551231234"
Line 77:
Line 78: iFaxJob = FXDoc.Send()
Source File: c:\inetpub\wwwroot\fax\default.aspx.vb Line: 76
Stack Trace:
[COMException (0x80010105): The server threw an exception.]
FAXCOMLib.IFaxDoc.set_FaxNumber(String pVal) +0
fax.WebForm1.btnFax_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\fax\default.aspx.vb:76
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
Any advice is greatly appreciated!!
Thanks!
David