Click to See Complete Forum and Search --> : Send Fax Using Asp.net


gr_vijay
10-26-2006, 03:22 AM
hi

i want send Fax from Asp.Net applictation



anybody can help me

Phil Weber
10-26-2006, 03:54 AM
http://www.google.com/search?q=asp.net+send+fax

gr_vijay
10-27-2006, 03:40 AM
I tried the code below >but its shows error Access Denied"

pls anybody can hwlp me












Try
Dim faxServer As New FAXCOMLib.FaxServer ' = New FAXCOMLib.FaxServerClass
faxServer.Connect(Environment.MachineName)
Dim faxDoc As FAXCOMLib.FaxDoc = CType(faxServer.CreateDocument(Server.MapPath("FaxPath//" & txtPath.Text)), FAXCOMLib.FaxDoc)
faxDoc.RecipientName = "GI Solutions"
faxDoc.FaxNumber = txtNumber.Text
faxDoc.DisplayName = "TEST FAX"
'faxDoc.FileName = Server.MapPath("FaxPath//" & txtPath.Text)
faxDoc.RecipientTitle = "Fax Send GI Solutions"
faxDoc.SenderFax = "ASP.NET"
faxDoc.SenderName = "Fax R&D from ASP.NET"
Dim Response As Integer = faxDoc.Send
faxServer.Disconnect()
Catch Ex As Exception
Response.Write(Ex.Message)
End Try

Phil Weber
10-27-2006, 11:16 AM
Does the code work if you run it from a console application? If so, it's a permissions problem. By default, the ASP.NET worker process runs in the context of a least-privileged user account. You'll need to grant that user account the necessary permissions (probably permission to read from/write to certain directories).

gr_vijay
10-30-2006, 11:20 PM
hi thanks for ur rly

this code is working in windows application.But in asp.net its giving error. I give all the permisons to folders. but it is not working. you have any idea.

Phil Weber
10-31-2006, 01:42 AM
I would look at the Application, System and Security event logs and see if they contain any helpful error messages. If that doesn't help, try the Fusion log (http://www.google.com/search?q=fusion+log).