Reputation: 1043
On my development machine everything is working. But when i try on server and start it from code, OpenOffice cant connect on port 2002. If i start it from cmd with exactly same command, its working....
What i do wrong?
Cmd command
c:/openoffice/program/soffice.exe -headless -nologo -nofirststartwizard -norestore -accept=socket,host=localhost,port=2002;urp;StarOffice.Service
From code
var info = new ProcessStartInfo("c:/openoffice/program/soffice.exe")
{
UseShellExecute = false,
RedirectStandardInput = true,
RedirectStandardOutput = true,
RedirectStandardError = true,
Arguments = "-headless -nologo -nofirststartwizard -norestore -accept=socket,host=localhost,port=2002;urp;StarOffice.Service"
};
var result = Process.Start(info);
Upvotes: 2
Views: 956
Reputation: 3477
In IIS Manager (IIS 7.5 here), go into Advanced Settings for the application pool your application uses. Set "Load User Profile" to True.
This seems to be required, as does -nofirststartwizard
, which you already have.
These two things combined work for me.
Upvotes: 1