p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Access Denied when I send fax in ASp.NET 2.0 (http://p2p.wrox.com/showthread.php?t=48072)

patel_mitesh September 20th, 2006 07:15 AM

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

FS.Connect(ServerToConnect.Trim())

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.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}


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

Mitesh




All times are GMT -4. The time now is 04:38 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.