Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 11th, 2004, 06:46 AM
Authorized User
 
Join Date: Sep 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
__________________
RK
 
Old October 11th, 2004, 08:23 AM
Authorized User
 
Join Date: May 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old October 12th, 2004, 12:19 AM
Authorized User
 
Join Date: Sep 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





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





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