p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   General .NET (http://p2p.wrox.com/forumdisplay.php?f=122)
-   -   please.....urgent....."access denied error while s (http://p2p.wrox.com/showthread.php?t=19693)

Ramakrishna October 11th, 2004 06:46 AM

please.....urgent....."access denied error while s
I want to develope an application to send the fax,
I do that as following, that gives the error " Access is denied. "
please...help me....how to overcome this error, very.....urgent....
i am promptly waiting for your replies..

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
         Dim objFaxServer As New FAXCOMLib.FaxServer
         Dim objFaxDocument As Object
         Dim JobID As Long
         Dim pathToImage As String
         '' SR is the server name
         pathToImage = "E:\From E\EDICT MY SQL CODE\DATABASE\BITMAPS\0\132.TIF"
         objFaxDocument = objFaxServer.CreateDocument(pathToImage)
         objFaxDocument.CoverpageName = "D:Cover Page.cov"
         objFaxDocument.CoverpageNote = "Test Note"
         objFaxDocument.CoverpageSubject = "Test Subject"
         objFaxDocument.DiscountSend = 0
         objFaxDocument.FaxNumber = "6677152"
         objFaxDocument.RecipientName = "recipient name"
         ' Send the Fax
         JobID = objFaxDocument.Send()
         objFaxDocument = Nothing
         objFaxServer = Nothing

     Catch ex As Exception
     End Try
End Sub


sundar_revathi October 11th, 2004 08:23 AM

This is a problem with authentication.
Since your worker process runs under the asp.net local account
it cannot access shared resources.
You have to impersonate the lgged in user..
Also the user has to hace certain credentails set..
Please look at


Ramakrishna October 12th, 2004 12:19 AM


Thank you.
now Iam try to do that.
here I am using
windows 2000 professional operating system and windows 2000 fax server. I am able to execute all the code relating to the fax when it comes to the send statement there it is giving error as "Access denied".
please help me....
waiting for your replay

All times are GMT -4. The time now is 06:45 AM.

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