- Joined
- Sep 20, 2006
- Messages
- 4
- Reaction score
- 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
FS.Connect(ServerToConnect.Trim())
FD = FS.CreateDocument(str_Path_Of_File_To_Be_Faxed.Trim) \\\file Name to be send
FD.FileName = str_Path_Of_File_To_Be_Faxed.Trim
FD.FaxNumber="45454545"
FD.DisplayName = "TEST"
FD.DiscountSend = 0
FD.SendCoverpage = 0
faxcnt = FD.Send() \\Error occurs Here
FS.Disconnect()
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}
I really required your help to solve this problem
Thanks in Advance
Mitesh
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
FS.Connect(ServerToConnect.Trim())
FD = FS.CreateDocument(str_Path_Of_File_To_Be_Faxed.Trim) \\\file Name to be send
FD.FileName = str_Path_Of_File_To_Be_Faxed.Trim
FD.FaxNumber="45454545"
FD.DisplayName = "TEST"
FD.DiscountSend = 0
FD.SendCoverpage = 0
faxcnt = FD.Send() \\Error occurs Here
FS.Disconnect()
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}
I really required your help to solve this problem
Thanks in Advance
Mitesh