|
cannot CreateObject("com.sun.star.ServiceManager")
--------------------------------------------------------------------------------
The error I get while running <varname> = CreateObject("com.sun.star.ServiceManager") is cannot create ActiveX object
I have got this working while running in dev mode (ie able to step through code) which means the worker process is running as the person I am logged in with (in this case Administrator), but when I access the page from another machine (on the same network) it falls over with cannot create ActiveX object on the line varname = CreateObject("com.sun.star.ServiceManager")
I think this is down to premission issues of the network user, so I have allowed network user permissions to open office in dcom+ which didnt solve it. I then tralled the registry giving permissions for anything with regards to openoffice and writer, still to no avail.
Has anyone out there experienced a similar issue? More importantly did you manage to get it resolved??
Details: Win2k3 server; ASP.NET 2.0; VS Express Edition 2008; IIS6.0
Thanks for any help offered.
|
|
|
|
|
What are you trying to do, and what programming language are you using?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi Guffa,
I am trying to count the number of pages in a document and return the value to a variable. I am using ASP.NET (VB) running ASP.NET 2.0 on IIS6.0 Win2k3. I have acheived this result when running the code as an Administrator, the problem comes in when running the code as Network Service which indicates a permissions issue of some sort?
What do you think?
Justin
|
|
|
|
|
Going by the CreateObject function he has mentioned, it looks like he is trying to do some automation stuff either with StarOffice or OpenOffice.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
Either the classID is not registered properly (installation issue) or Permissions problem for ASP.NET?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Vasudevan,
I think it is a permissions issue persoanlly, but am completely open to suggestions for things to try.. The reason I think it's permissions is because when running the code under an administrator it works fine (ie creates the object) and continues running the code. Your thoughts?
Justin
|
|
|
|
|
Check out this thread:
http://www.oooforum.org/forum/viewtopic.phtml?t=13948[^]
LarsB (OOO Advocate) seems to be highlighting on a solution like tweaking the processmodel of ASP.NET.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Thanks I'll have a look at it tonight and post the results. Hopefully I'll have some good news (well for me at least) to post!!
|
|
|
|
|
Hi,
Well after much reading of many posts, I 'tweaked' the process model to make it run under a System Account but unfortunatley this does not work either. It does not fall over with Cannot create ActiveX object, it just 'seems' to hang on this line of code. When I have a look at the task bar on the server I see soffice.bin and soffice.exe being launched, but it's launched under Netwrrok Service.
Does anyone know if it is possible for me to physically log Network Service in and run Open Office while logged in to it? I just want to make sure this is not an issue with some sort of setup, ie like a spalsh screen asking me to agree to terms and conditions etc.
Thanks
Justin
|
|
|
|
|
Hi
I need to develop the control like r.a.d which resides in toolbox which will drag into our web page (eg: textbox,label,grid control etc.).
Normal user controls are used by <@Register> tag [i dont wnat like this].
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
What About AJAX ?
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
Hi
Thanks for your reply.
I Need to create my own controls with specific rules.so i avoid to use AJAX. Please let me know the procedure for developing controls.
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
|
Exactly this is custom control not a "User Control".
Thank you very much.
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
I have a detail view with paging enable the user are allowed to view first three page of detail view and after that the user is authenticated if the user is registered then s/he is allowed to navigate to next pageindex other wise asked to registration.
How can I do this
|
|
|
|
|
well apply a admin/user column in your login table
apply 1 to user
0 for admin
then check which one they are when the page loads and apply appropriate filtering.
ps I didnt know jt was a programmer
|
|
|
|
|
For the detailsview
Capture the selectedindexchanged and ask for the pageindez value
if pageindex > 3 and user not authenticated then
redirect to log in or signup
Alexei Rodriguez
|
|
|
|
|
Hi all,
I have a problem with my TreeView. The ASP TreeView's SelectedNode is a readonly property. I do infact select the Node I want with Node.Selec(); and Node.Selected = true;
But wen selecting the node like that it does not update the SelectedNode Property, that only updates when I click on a specific node...
Can anyone tell my what I am missing or is that just the way it is
Thanks in advance
|
|
|
|
|
|
Hi All
Can anybody tell me how to create a one to one chat application like Gmail in Asp.Net using C#. I am talking about web application not windows. Please please please provide some sample code. I need it urgently. Any kind of help will be appreciated. Thanks.
Sagar Pattnayak
Software Developer
Sun-Dew Solutions
+91-9831169962
|
|
|
|
|
its a third party software dude ...........Google it
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
Check out http://www.hotscripts.com/[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Why is it every three days...
|
|
|
|
|
I m running an ASP.NET Web site.sometimes when it is runs live the CPU usage becomes 100%. and everything Hangs.
Can anybody tells me why this is happening.
|
|
|
|