DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Send Fax Using Asp.net

  1. #1
    Join Date
    Oct 2006
    Posts
    4

    Send Fax Using Asp.net

    hi

    i want send Fax from Asp.Net applictation



    anybody can help me
    Last edited by gr_vijay; 10-26-2006 at 05:24 AM.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Oct 2006
    Posts
    4
    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

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    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).
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  5. #5
    Join Date
    Oct 2006
    Posts
    4
    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.

  6. #6
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    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.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Send Fax From SQL Server 2000?
    By brendita in forum Database
    Replies: 0
    Last Post: 09-30-2005, 06:10 PM
  2. Send Automatic Email in ASP.NET
    By DS in forum ASP.NET
    Replies: 1
    Last Post: 04-09-2003, 11:01 AM
  3. Free ASP.NET Web Matrix Design/Editor Tool Released
    By ASPSmith Training in forum dotnet.announcements
    Replies: 0
    Last Post: 06-18-2002, 03:39 AM
  4. Replies: 0
    Last Post: 02-14-2001, 05:36 AM
  5. Send to Fax
    By Ciccio in forum ASP.NET
    Replies: 0
    Last Post: 08-18-2000, 02:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center