473,325 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

method or property is not available because a document window is not active.

hi experts,
im doing some staff bween th the aspx + MS Word.chellcheck,
and and which running on my ypc is no problem ( windows xp , activation
by ASPNET ), buts someshow when i try to deploy to server ( windows
2003 ) + IIS 6.0 , hen which giee the error =
Object reference not set to an instance of an object.This method or
property is not available because a document window is not active.

and i have try to configure for the component service, but still
cannot.

from the event viewer which come some error:
The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{000C101C-0000-0000-C000-000000000046}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This
security permission can be modified using the Component Services
administrative tool.

and under the windows 2003, activation by NETWORK Service ( not aspnet
)

and the problem is no matter how i add component service ( even
everyone ) , the thing still not allow me to acess the DCOM.

i try many things and chk more info from knowledge base , but still
cannot, so i would like to post this subject here, hope can get some
help.

best rgards

Sep 22 '06 #1
4 7158
Start here
http://support.microsoft.com/default...;en-us;Q288367

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
<ia*****@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
hi experts,
im doing some staff bween th the aspx + MS Word.chellcheck,
and and which running on my ypc is no problem ( windows xp , activation
by ASPNET ), buts someshow when i try to deploy to server ( windows
2003 ) + IIS 6.0 , hen which giee the error =
Object reference not set to an instance of an object.This method or
property is not available because a document window is not active.

and i have try to configure for the component service, but still
cannot.

from the event viewer which come some error:
The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{000C101C-0000-0000-C000-000000000046}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This
security permission can be modified using the Component Services
administrative tool.

and under the windows 2003, activation by NETWORK Service ( not aspnet
)

and the problem is no matter how i add component service ( even
everyone ) , the thing still not allow me to acess the DCOM.

i try many things and chk more info from knowledge base , but still
cannot, so i would like to post this subject here, hope can get some
help.

best rgards

Sep 22 '06 #2
Hi John,
thanks for ur quick response, i have seen this article
before and also follow the step to do it, but the only one thing
different is i use "remote desktop connection" instead of directly goto
"console" and do the changes for the DCOM setting, so i changed it just
now (using console), but since still the same error, do u think i have
to restart the server ? or any other way that we can test for the DCOM.

here have one more information, when i try my web page ( which calling
the MS word ) , then under the "windows task manager" appear the
"WINWORD.EXE" under the processes tab and the "user name" is "NETWORK
SERVICE" and the event viewer under "system" still give the error.

pls let me know what else information u need , i can provide u ,
many many thanks
John Timney (MVP) wrote:
Start here
http://support.microsoft.com/default...;en-us;Q288367

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
<ia*****@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
hi experts,
im doing some staff bween th the aspx + MS Word.chellcheck,
and and which running on my ypc is no problem ( windows xp , activation
by ASPNET ), buts someshow when i try to deploy to server ( windows
2003 ) + IIS 6.0 , hen which giee the error =
Object reference not set to an instance of an object.This method or
property is not available because a document window is not active.

and i have try to configure for the component service, but still
cannot.

from the event viewer which come some error:
The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{000C101C-0000-0000-C000-000000000046}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This
security permission can be modified using the Component Services
administrative tool.

and under the windows 2003, activation by NETWORK Service ( not aspnet
)

and the problem is no matter how i add component service ( even
everyone ) , the thing still not allow me to acess the DCOM.

i try many things and chk more info from knowledge base , but still
cannot, so i would like to post this subject here, hope can get some
help.

best rgards
Sep 22 '06 #3
You may have it configured to run correctly already but that doesn't mean
that you can invoke all of the features of MS word. I dont know if invoking
the spell checker in word may cause a security problem if it tries to invoke
a window on the server for example against an account that has no profile to
launch any desktop processes.

Theres an old example here that also references that micrsoft article you
could take a look at.
http://www.4guysfromrolla.com/webtech/062402-1.shtml

Certainly using remote desktop/console would make no difference to whether
you could set dcom or not. Personally I would not use word like this,a s
its not a server product and will cause you no end of perfromance problems
in the end.

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com

<ia*****@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi John,
thanks for ur quick response, i have seen this article
before and also follow the step to do it, but the only one thing
different is i use "remote desktop connection" instead of directly goto
"console" and do the changes for the DCOM setting, so i changed it just
now (using console), but since still the same error, do u think i have
to restart the server ? or any other way that we can test for the DCOM.

here have one more information, when i try my web page ( which calling
the MS word ) , then under the "windows task manager" appear the
"WINWORD.EXE" under the processes tab and the "user name" is "NETWORK
SERVICE" and the event viewer under "system" still give the error.

pls let me know what else information u need , i can provide u ,
many many thanks
John Timney (MVP) wrote:
>Start here
http://support.microsoft.com/default...;en-us;Q288367

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
<ia*****@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegr oups.com...
hi experts,
im doing some staff bween th the aspx + MS Word.chellcheck,
and and which running on my ypc is no problem ( windows xp , activation
by ASPNET ), buts someshow when i try to deploy to server ( windows
2003 ) + IIS 6.0 , hen which giee the error =
Object reference not set to an instance of an object.This method or
property is not available because a document window is not active.

and i have try to configure for the component service, but still
cannot.

from the event viewer which come some error:
The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{000C101C-0000-0000-C000-000000000046}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This
security permission can be modified using the Component Services
administrative tool.

and under the windows 2003, activation by NETWORK Service ( not aspnet
)

and the problem is no matter how i add component service ( even
everyone ) , the thing still not allow me to acess the DCOM.

i try many things and chk more info from knowledge base , but still
cannot, so i would like to post this subject here, hope can get some
help.

best rgards

Sep 22 '06 #4
Hi john,
i already try again and again to setup the DCOM setting, but still
facing the same problem, now i have few double
1. bcos which give me under the ASPX
< Object reference not set to an instance of an object.This method or
property is not available because a document window is not active. >
And under the event viewer is about the
<
The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{000C101C-0000-0000-C000-000000000046}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This
security permission can be modified using the Component Services
administrative tool.>

so , im thinking is really need to use "network service" user to open
the ms word for the first time, bcos i saw some others info which
mention that have invlove with the registry, so is any way we can u the
particular user to open the msword instead of using the windows login
(default), like c:\winword.exe -u "network service" the user to initial
the application.

reference:
http://groups.google.com.sg/group/mi...8d98418cce242e

2. another thing is i even add the "network service" under the
"administrators groups" to make sure the "network service" can go thru
all the application.

3. i have try to use windows 2000, windows xp + office 2003, all are
working fine.

many thanks for ur advise

best regards

John Timney (MVP) wrote:
You may have it configured to run correctly already but that doesn't mean
that you can invoke all of the features of MS word. I dont know if invoking
the spell checker in word may cause a security problem if it tries to invoke
a window on the server for example against an account that has no profile to
launch any desktop processes.

Theres an old example here that also references that micrsoft article you
could take a look at.
http://www.4guysfromrolla.com/webtech/062402-1.shtml

Certainly using remote desktop/console would make no difference to whether
you could set dcom or not. Personally I would not use word like this,a s
its not a server product and will cause you no end of perfromance problems
in the end.

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com

<ia*****@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi John,
thanks for ur quick response, i have seen this article
before and also follow the step to do it, but the only one thing
different is i use "remote desktop connection" instead of directly goto
"console" and do the changes for the DCOM setting, so i changed it just
now (using console), but since still the same error, do u think i have
to restart the server ? or any other way that we can test for the DCOM.

here have one more information, when i try my web page ( which calling
the MS word ) , then under the "windows task manager" appear the
"WINWORD.EXE" under the processes tab and the "user name" is "NETWORK
SERVICE" and the event viewer under "system" still give the error.

pls let me know what else information u need , i can provide u ,
many many thanks
John Timney (MVP) wrote:
Start here
http://support.microsoft.com/default...;en-us;Q288367

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
<ia*****@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
hi experts,
im doing some staff bween th the aspx + MS Word.chellcheck,
and and which running on my ypc is no problem ( windows xp , activation
by ASPNET ), buts someshow when i try to deploy to server ( windows
2003 ) + IIS 6.0 , hen which giee the error =
Object reference not set to an instance of an object.This method or
property is not available because a document window is not active.

and i have try to configure for the component service, but still
cannot.

from the event viewer which come some error:
The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{000C101C-0000-0000-C000-000000000046}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This
security permission can be modified using the Component Services
administrative tool.

and under the windows 2003, activation by NETWORK Service ( not aspnet
)

and the problem is no matter how i add component service ( even
everyone ) , the thing still not allow me to acess the DCOM.

i try many things and chk more info from knowledge base , but still
cannot, so i would like to post this subject here, hope can get some
help.

best rgards
Sep 25 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bob | last post by:
This seems to me like it should work but I get "generic" no matter which button I click. Javascript is not one of my better languages. Can the experts here take a look at this and tell me what I'm...
6
by: kaeli | last post by:
Hey guys, This error occurs ONLY in Netscape 7.0. Not in 7.1. So, I think it's a bug. Buuuut... Has anyone had this problem or know of a fix? When attempting to have an onunload function...
2
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
6
by: Ken Kast | last post by:
Here's my situation. I have an object function Obj () { this.foo = null; } a function function bar() {...} another function
6
by: Martin | last post by:
I'd like to be able to get the name of an object instance from within a call to a method of that same object. Is this at all possible? The example below works by passing in the name of the object...
7
by: Joakim Braun | last post by:
Why doesn't the below code work? I'm trying to create a global object and set an event handler to one of its methods. The function is called, but the object's mTest property is undefined. ...
4
by: dr.bob | last post by:
Hello :) why does var gE = function(s){return document.getElementById(s);}; var foo = gE("foo"); work, while var gE = document.getElementById;
2
by: chris.dannemiller | last post by:
1. I have a MDI document what is the best way to link data form a specific MDI document to parameters of a property grid. In this case I have a palette that can change from document to document,...
1
by: John L. | last post by:
How do I invoke the scroll() method of a window object for a scrollable IFRAME element in an HTML document? I am using IE 7.0, and I thought the following would work: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.