Help for asp page and Doc2any

I have upgraded to a new server running IIS7 and I am having trouble getting doc2any to run from an asp script.

I have tried it with and without 32 bit enabled. I have tried it with exeshell and WScript (commented out). The WScript only returns a 0 for status.

I am running other WScript shells on the site and they work fine. This is the only one that isn't working. Permission are in placing for writing the files.

Please help.

David

Set comEXEShell = Server.CreateObject("exeshell.shell")
'Set comEXEShell = Server.CreateObject("WScript.Shell")
RootPath = Server.MapPath(".") & "\"
EXEFile = RootPath & "doc2any\doc2any.exe"
DOCFile = Path
TempPDFFile = "c:\doctraderuploads\temp" & FileName & ".pdf"
strCommandLine = EXEFile & " " & DOCFile & " " & TempPDFFile comEXEShell.RunCommandLine "username", "password", strCommandLine 'response.write strCommandLine & "
"
'Set objCommand = comEXEShell.Exec(strCommandLine) 'Do While objCommand.Status = 0
'dtCurrent = Now
'Do Until Abs(DateDiff("s", dtCurrent, Now)) >= 3
' Response.Write objCommand.Status & "-
"
'Loop
'Loop

'Set objCommand = Nothing
Set comEXEShell = Nothing
==================================
Hi,

This problem seems caused by permission problem, please refer to following web page, you may give enough permissions to IIS7 to Word DCOM to try again,

http://www.verydoc.com/doc-to-any-faq.html

Please don't hesitate to contact us if you have question on this.

Thank you!
VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Random Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!