View Single Post
  #1 (permalink)  
Old September 20th, 2006, 07:15 AM
patel_mitesh patel_mitesh is offline
Registered User
Join Date: Sep 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access Denied when I send fax in ASp.NET 2.0

Hi All,

I have developed FAX Application in ASP.NET 2.0 using FAXCOMLib in Windows 2003 Server Environment.

My code is given below.

Dim FS As New FAXCOMLib.FaxServer

Dim FD As FAXCOMLib.FaxDoc


FD = FS.CreateDocument(str_Path_Of_File_To_Be_Faxed.Tri m) \\\file Name to be send

FD.FileName = str_Path_Of_File_To_Be_Faxed.Trim


FD.DisplayName = "TEST"

FD.DiscountSend = 0

FD.SendCoverpage = 0

faxcnt = FD.Send() \\Error occurs Here


When i start this programm, the system seams to hang and after a short time,
there appears an error 0x80070005 (Data is invalid??) at the line
FaxDoc.Send() AS mentioned below

{"Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"}
    System.UnauthorizedAccessException: {"Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"}
    Data: {System.Collections.ListDictionaryInternal}
    HelpLink: Nothing
    InnerException: Nothing
    Message: "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
    Source: "Interop.FAXCOMLib"
    StackTrace: " at FAXCOMLib.IFaxDoc.Send()
   at FaxApplication.Upload_Files.FaxTheFiles() in F:\Inetpub\wwwroot\Fax2\Upload_Files.aspx.vb:line 160"
    TargetSite: {System.Reflection.RuntimeMethodInfo}

This problem is regarding the security that i only know but where i dont know so pls hlep me.

I really required your help to solve this problem

Thanks in Advance