Has anyone successfully faxed through an ASP.Net web page using the Microsoft Fax service on the web server (IIS 6 Windows 2003 Enterprise Server).
I have a Windows 2003 IIS6 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, there doesn't seem to be a true .Net namespace for fax services, unfortunately, so im using old school COM object ....
Dim FaxServer As Object
Dim FaxDoc As Object
FaxServer = server.createobject("Faxserver.FaxServer")
'Create FaxServer object...
FaxServer.Connect("servername") <---This line produces an 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\
FaxDoc.FaxNumber = "8604293542"
FaxDoc.RecipientName = "John Doe"
FaxDoc.Send()
FaxDoc = Nothing
FaxServer.Disconnect()
FaxServer = Nothing
I've given full access rights to the fxstmp directory in system32 folder, that didn't do it either, I no longer believe that this is a file system permission, but more of something that has to with the COM Object itself. Any ideas would be great, because im fresh out of em!
Dave in CT
I have a Windows 2003 IIS6 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, there doesn't seem to be a true .Net namespace for fax services, unfortunately, so im using old school COM object ....
Dim FaxServer As Object
Dim FaxDoc As Object
FaxServer = server.createobject("Faxserver.FaxServer")
'Create FaxServer object...
FaxServer.Connect("servername") <---This line produces an 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\
FaxDoc.FaxNumber = "8604293542"
FaxDoc.RecipientName = "John Doe"
FaxDoc.Send()
FaxDoc = Nothing
FaxServer.Disconnect()
FaxServer = Nothing
I've given full access rights to the fxstmp directory in system32 folder, that didn't do it either, I no longer believe that this is a file system permission, but more of something that has to with the COM Object itself. Any ideas would be great, because im fresh out of em!
Dave in CT