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
 
hi
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
     Try
         Dim objFaxServer As New FAXCOMLib.FaxServer
         Dim objFaxDocument As Object
         Dim JobID As Long
         Dim pathToImage As String
         objFaxServer.Connect("SR")
         '' 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.Disconnect()
         objFaxServer = Nothing

     Catch ex As Exception
         Response.Write(ex.Message)
     End Try
End Sub


RK

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
http://msdn.microsoft.com/library/de...SecNetHT05.asp.

SS

Ramakrishna October 12th, 2004 12:19 AM

Hi

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.