VeryDOC DOC to Any Converter permission problem

Hi VERYDOC team.

I am currently evaluating your product "VeryDOC DOC to Any Converter" to convert .doc,.docx,.xls,.xlsx,.csv  to .pdf format.

I downloaded trial version of file from your website, unzipped it to folder and copy it to C:\ directory.

Product name - DOC to Any Converter Command Line
Product version - 2, 3, 0, 1
Operating System – Microsoft Window XP Professional Version 2002 Service Pack 3

Here is a problem that I have.

From code below I generate batch file with following command

C:\TestProjects\pdfconvertion\doc2any.exe -useprinter C:/TestProjects/pdfconvertion/example.xls C:/TestProjects/pdfconvertion/example.pdf

string strFilePath = working_directory + "convert.bat";

//create batch file
StreamWriter sw = new StreamWriter(strFilePath);
foreach (string filename in filestoconvert)
 Uri curfilepath = new Uri(working_directory + filename);

 string convertfilename = Path.GetFileNameWithoutExtension(curfilepath.AbsolutePath) + ".pdf";
 Uri convertfilepath = new Uri(Path.Combine(outputpath, convertfilename));
 sw.WriteLine(working_directory + "doc2any.exe -useprinter " + curfilepath.AbsolutePath + " " + convertfilepath.AbsolutePath);
By code below I am trying to execute batch file by spinning Process object:
 //Context.User.Identity.AuthenticationType = "NTLM";

 Process proc = new Process();
 proc.StartInfo.FileName = strFilePath;
 proc.StartInfo.WorkingDirectory = working_directory;           
 proc.StartInfo.UseShellExecute = false;
 proc.StartInfo.CreateNoWindow = true;
 proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
 //proc.StartInfo.RedirectStandardOutput = true;
 //string output = proc.StandardOutput.ReadToEnd();

Here is a problem.

If I start my app and use "default web service" start up option (VS generates it own "ASP.NET Development Server at some randow Port) – code works fine.
Code runs under currently logged in account. User.Identity is set to my window account and I am admin to my machine.
User.Identity properties:
AuthenticationType – "NTLM"
IsAuthenticated – true
Name – "domain\name"

If I run this app under IIS account(by default – ASPNET  with limited privileges). Process not executed which make sence because of account access limitation.

 Then I tried to specify additional parameters of Process:
 proc.StartInfo.Domain = "domain";
 proc.StartInfo.UserName = "name";
 SecureString pwd = new SecureString();
 foreach (Char c in "password")
 proc.StartInfo.Password = pwd;

No luck. Cmd.exe Application Error: "The application failed to initialize properly (0xc0000142) Click on OK to terminate the application.

Ok then I change IIS setting and enable only "Integrated Window Authentication".
Also removed this code:
proc.StartInfo.Domain = "domain"; proc.StartInfo.UserName = "name"; SecureString pwd = new SecureString();
 foreach (Char c in "password")
 proc.StartInfo.Password = pwd;

User.Identity properties:
AuthenticationType – "Negotiate"
IsAuthenticated – true
Name – "domain\name"
No luck. Application hangs on this line proc.Start();
Then I tried to put convertion code into web service and call webservice with netword credentials.

localhost.ConvertToPDF service = new localhost.ConvertToPDF();
CredentialCache cache = new CredentialCache(); //Create an instance of the CredentialCache class.
cache.Add(new Uri(service.Url), "NTLM", new NetworkCredential("name", "password", "domain")); // Add a NetworkCredential instance to CredentialCache.
service.Credentials = cache; //Assign CredentialCache to the Web service Client Proxy(myProxy) Credetials property.

User.Identity in webservise when called:
AuthenticationType – "NTLM"
IsAuthenticated – true
Name – "domain\name"

No luck.
If I go directly to generated batch file and click it – it works.

Here is my question.
What access right you expecting in doc2any.exe app? On what folder, objects …?

What permission right I must grand to folder(s),object(s)…

I tried to give "Everyone" access with full control rights to folder where doc2any.exe located – no luck.
Tried to add ASPNET account to Admin group. No luck. I run out of ideas but it is obviously permission problem.

I need your help ASAP.

Thank you in advance.

Note: On 64bit Windows 2008 (R2) system, please create a new "Desktop" directory inside of "C:\Windows\SysWOW64\config\systemprofile\", creating this directory and rebooting server, then doc2any.exe works, this is a profile problem on Windows 2008 (R2) system.

On Windows 2008 Server x64, please make this folder.


On Windows 2008 Server x86, please make this folder.


This operation will take away office automation problems in Windows 2008 system, a Desktop folder is necessary in the "systemprofile" folder to open file by MS Office. This folder is disappear from Windows 2008 system, so you need create this folder by manual, Windows 2003 has the folder, so Windows 2003 hasn't this problem.

Please also refer to following web page to set permission to MS Word DCOM,

you can also refer to more examples for DOC to Any Converter from following page,


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

Related 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!