Ciao ragazzi,
sto provando ad inviare fax tramite asp.net, utilizzando il codice che scrivo di seguito, putroppo quando clicco sul pulsante per inviare un file .txt per prova, mi ritorna questo errore:
Recupero della class factory COM per il componente con CLSID {98F63271-6C09-48B3-A571-990155932D0B} non riuscito a causa del seguente errore: 80070005. in fax.Button1_Click(Object sender, EventArgs e)
Il codice che utilizzo è il seguente:
codice:
Imports FAXCOMLib
Imports FAXCONTROLLib
Imports System.IO
Imports System.IO.StreamWriter
Partial Class fax
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
Dim objFaxDocument As New FAXCONTROLLib.FaxControl
Dim objFaxServer As New FAXCOMLib.FaxServer
Dim JobID As Object
objFaxServer.Connect("127.0.0.1")
objFaxDocument.Body = "c:\peppe.txt"
objFaxDocument.DocumentName = "My First Fax"
objFaxDocument.Recipients.Add("06233209526", "Bud")
objFaxDocument.AttachFaxToReceipt = True
objFaxDocument.Note = "Here is the info you requested"
objFaxDocument.Subject = "Today's fax"
JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
Catch ex As Exception
LblErrore.Text = ex.Message & " " & ex.StackTrace
End Try
End Sub
End Class
Sapete dirmi in cosa sbaglio?
O magari se avete soluzioni alternative all'invio di fax.
Grazie a tutti.