|
Subject:
|
please.....urgent....."access denied error while s
|
|
Posted By:
|
Ramakrishna
|
Post Date:
|
10/11/2004 6:46:44 AM
|
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
|
|
Reply By:
|
sundar_revathi
|
Reply Date:
|
10/11/2004 8:23:37 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/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT05.asp.
SS
|
|
Reply By:
|
Ramakrishna
|
Reply Date:
|
10/12/2004 12:19:18 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
|