Has anyone successfully faxed through an ASP.Net web page using the Fax service on the web server.
I have a Windows 2003 web server. And keep getting an Access is denied error. . i've given full rights access to aspnet account, iusr_machinename account, my own account, nothing works. I cannot change the identity impersonate to true, this would make the rest of my application not work correctly because i use windows authentication, and every user would be using the same id which defeats the purpose
Im using the code thats all over the internet ....
Dim FaxServer As Object
Dim FaxDoc As Object
FaxServer = server.createobject("Faxserver.FaxServer")
'Create FaxServer object...
FaxServer.Connect("servername") <---This line always produces the error.
'For servername i've put the computer name of the web server, i've left it blank, i put the unc \\computer name of the web server, i've put "." all get the same error: Access is Denied
' I've also added a reference to fxscom.dll and used an import statement at the top of code and created the faxserver object like this: Dim FaxServer As New FAXCOMLib.FaxServer, still doesn't work
'Create document
FaxDoc = FaxServer.CreateDocument("c:\inetpub\wwwroot\wz\testfax.txt")
FaxDoc.FaxNumber = "8604293542"
FaxDoc.RecipientName = "John Doe"
FaxDoc.Send()
FaxDoc = Nothing
FaxServer.Disconnect()
FaxServer = Nothing
I have a Windows 2003 web server. And keep getting an Access is denied error. . i've given full rights access to aspnet account, iusr_machinename account, my own account, nothing works. I cannot change the identity impersonate to true, this would make the rest of my application not work correctly because i use windows authentication, and every user would be using the same id which defeats the purpose
Im using the code thats all over the internet ....
Dim FaxServer As Object
Dim FaxDoc As Object
FaxServer = server.createobject("Faxserver.FaxServer")
'Create FaxServer object...
FaxServer.Connect("servername") <---This line always produces the error.
'For servername i've put the computer name of the web server, i've left it blank, i put the unc \\computer name of the web server, i've put "." all get the same error: Access is Denied
' I've also added a reference to fxscom.dll and used an import statement at the top of code and created the faxserver object like this: Dim FaxServer As New FAXCOMLib.FaxServer, still doesn't work
'Create document
FaxDoc = FaxServer.CreateDocument("c:\inetpub\wwwroot\wz\testfax.txt")
FaxDoc.FaxNumber = "8604293542"
FaxDoc.RecipientName = "John Doe"
FaxDoc.Send()
FaxDoc = Nothing
FaxServer.Disconnect()
FaxServer = Nothing