Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 11th, 2004, 06:46 AM
Authorized User
Join Date: Sep 2004
Location: Bangalore, Karnataka, India.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

Reply With Quote
  #2 (permalink)  
Old October 11th, 2004, 08:23 AM
Authorized User
Join Date: May 2004
Location: , , USA.
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts

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

Reply With Quote
  #3 (permalink)  
Old October 12th, 2004, 12:19 AM
Authorized User
Join Date: Sep 2004
Location: Bangalore, Karnataka, India.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts


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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access denied error when using FileUpload Control mii2029 ASP.NET 3.5 Basics 0 October 25th, 2008 05:45 PM
ASP Access Denied Error hkccwong Classic ASP Basics 6 January 11th, 2008 04:12 AM
how to avoid access denied error satyakishore Javascript 1 March 29th, 2006 01:48 PM
'Access is denied' error purvin Javascript 4 March 22nd, 2006 04:42 AM
Chapter 3. Access Denied Error kevinq BOOK: ASP.NET Website Programming Problem-Design-Solution 0 July 30th, 2003 02:10 AM

All times are GMT -4. The time now is 10:26 AM.

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