Home All Groups Group Topic Archive Search About

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData' do

Author
22 Dec 2005 10:29 PM
SivaSiva
Hi,
I'm getting the following error when I try convert a word document using
asp.net.

Application Event Log :
Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
'WordUserData', component '{8ADD2C93-C8B7-11D1-9C67-0000F81F1B38}' failed. 
The resource 'HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData'
does not exist.

Source: MsInstaller
Event ID: 1004
User: NT AUTHORITY\NETWORK SERVICE
2003 Server

Note: This works fine with windows forms but fails with asp.net

Can someone help me I would really appreciate it
Thanks
Siva

Author
22 Dec 2005 10:37 PM
Cowboy (Gregory A. Beamer) - MVP
Permissions error.

When you are running ASP.NET, by default you are running under the anonymous
account, either IUSR or Network Service (Windows 2003 only). The "current
user" in question is the account ASP.NET is running under.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************


Show quoteHide quote
"SivaSiva" wrote:

> Hi,
> I'm getting the following error when I try convert a word document using
> asp.net.
>
> Application Event Log :
> Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
> 'WordUserData', component '{8ADD2C93-C8B7-11D1-9C67-0000F81F1B38}' failed. 
> The resource 'HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData'
> does not exist.
>
> Source: MsInstaller
> Event ID: 1004
> User: NT AUTHORITY\NETWORK SERVICE
> 2003 Server
>
> Note: This works fine with windows forms but fails with asp.net
>
> Can someone help me I would really appreciate it
> Thanks
> Siva
>
Are all your drivers up to date? click for free checkup

Author
22 Dec 2005 10:58 PM
Christopher Reed
The NETWORK SERVICE user does not have access to your Word installation
either because Word was installed on the server with limited rights, or
you're trying to call Word from the server when it is actually installed on
the client where the Windows app accessed it.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

Show quoteHide quote
"SivaSiva" <SivaS***@discussions.microsoft.com> wrote in message
news:890EEDA9-DD20-44E8-B87F-0F516590E00D@microsoft.com...
> Hi,
> I'm getting the following error when I try convert a word document using
> asp.net.
>
> Application Event Log :
> Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
> 'WordUserData', component '{8ADD2C93-C8B7-11D1-9C67-0000F81F1B38}' failed.
> The resource
> 'HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData'
> does not exist.
>
> Source: MsInstaller
> Event ID: 1004
> User: NT AUTHORITY\NETWORK SERVICE
> 2003 Server
>
> Note: This works fine with windows forms but fails with asp.net
>
> Can someone help me I would really appreciate it
> Thanks
> Siva
>
Author
23 Dec 2005 4:33 AM
SivaSiva
Greg and Chris,
Thanks for your reply I really appreciate it.
In fact I have given all the rights (Local Launch , Remote Launch, Local
Activation and Remote Activation )in dcomconfig for microsoft word document 
for the user NETWORK SERVICE in our 2003 server. I forgot to mention this in
my earlier post. I had similar issue on our XP Pro and after giving these
previlages for ASP.NET user it works just fine.

Moreover my Windows Forms (.Net 1.4+) client works fine.
Here is the code which works when I call from Windows Client but not from
ASP.Net App. Surely it has something to do with user permission in 2003
server for the user NETWORK SERVICE or I'm missing something.

Public Shared Function CovertWord2Text(ByVal fileName As Object) As String
        Dim oReadOnly As Object = False
        Dim oIsVisible As Object = True
        Dim oMissing As Object = System.Reflection.Missing.Value

        Dim oWordApp As Microsoft.Office.Interop.Word.ApplicationClass = New
Word.ApplicationClass
        Dim oWordDoc As Microsoft.Office.Interop.Word.Document =
oWordApp.Documents.Open(fileName, oMissing, oReadOnly, oMissing, oMissing,
oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oIsVisible)
        Dim sContent As String = oWordDoc.Content.FormattedText.Text
        oWordDoc.Close()
        oWordDoc = Nothing
        oWordApp.Application.Quit()
        oWordApp = Nothing
        Return sContent
    End Function


Any help regarding this would greatly appreciated.
Once again thanks for your help
Warm Regards,
Siva

Show quoteHide quote
"Christopher Reed" wrote:

> The NETWORK SERVICE user does not have access to your Word installation
> either because Word was installed on the server with limited rights, or
> you're trying to call Word from the server when it is actually installed on
> the client where the Windows app accessed it.
> --
> Christopher A. Reed
> "The oxen are slow, but the earth is patient."
>
> "SivaSiva" <SivaS***@discussions.microsoft.com> wrote in message
> news:890EEDA9-DD20-44E8-B87F-0F516590E00D@microsoft.com...
> > Hi,
> > I'm getting the following error when I try convert a word document using
> > asp.net.
> >
> > Application Event Log :
> > Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
> > 'WordUserData', component '{8ADD2C93-C8B7-11D1-9C67-0000F81F1B38}' failed.
> > The resource
> > 'HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData'
> > does not exist.
> >
> > Source: MsInstaller
> > Event ID: 1004
> > User: NT AUTHORITY\NETWORK SERVICE
> > 2003 Server
> >
> > Note: This works fine with windows forms but fails with asp.net
> >
> > Can someone help me I would really appreciate it
> > Thanks
> > Siva
> >
>
>
>
Author
23 Dec 2005 5:18 AM
Christopher Reed
Is Word installed on the server?  If it is, then you may need to reinstall
it.  It's my impression that that is what the error message is indicating.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

Show quoteHide quote
"SivaSiva" <SivaS***@discussions.microsoft.com> wrote in message
news:ADFBFEE5-B043-4D4D-9FC6-61D1B260B4BC@microsoft.com...
> Greg and Chris,
> Thanks for your reply I really appreciate it.
> In fact I have given all the rights (Local Launch , Remote Launch, Local
> Activation and Remote Activation )in dcomconfig for microsoft word
> document
> for the user NETWORK SERVICE in our 2003 server. I forgot to mention this
> in
> my earlier post. I had similar issue on our XP Pro and after giving these
> previlages for ASP.NET user it works just fine.
>
> Moreover my Windows Forms (.Net 1.4+) client works fine.
> Here is the code which works when I call from Windows Client but not from
> ASP.Net App. Surely it has something to do with user permission in 2003
> server for the user NETWORK SERVICE or I'm missing something.
>
> Public Shared Function CovertWord2Text(ByVal fileName As Object) As String
>        Dim oReadOnly As Object = False
>        Dim oIsVisible As Object = True
>        Dim oMissing As Object = System.Reflection.Missing.Value
>
>        Dim oWordApp As Microsoft.Office.Interop.Word.ApplicationClass =
> New
> Word.ApplicationClass
>        Dim oWordDoc As Microsoft.Office.Interop.Word.Document =
> oWordApp.Documents.Open(fileName, oMissing, oReadOnly, oMissing, oMissing,
> oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oIsVisible)
>        Dim sContent As String = oWordDoc.Content.FormattedText.Text
>        oWordDoc.Close()
>        oWordDoc = Nothing
>        oWordApp.Application.Quit()
>        oWordApp = Nothing
>        Return sContent
>    End Function
>
>
> Any help regarding this would greatly appreciated.
> Once again thanks for your help
> Warm Regards,
> Siva
>
> "Christopher Reed" wrote:
>
>> The NETWORK SERVICE user does not have access to your Word installation
>> either because Word was installed on the server with limited rights, or
>> you're trying to call Word from the server when it is actually installed
>> on
>> the client where the Windows app accessed it.
>> --
>> Christopher A. Reed
>> "The oxen are slow, but the earth is patient."
>>
>> "SivaSiva" <SivaS***@discussions.microsoft.com> wrote in message
>> news:890EEDA9-DD20-44E8-B87F-0F516590E00D@microsoft.com...
>> > Hi,
>> > I'm getting the following error when I try convert a word document
>> > using
>> > asp.net.
>> >
>> > Application Event Log :
>> > Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
>> > 'WordUserData', component '{8ADD2C93-C8B7-11D1-9C67-0000F81F1B38}'
>> > failed.
>> > The resource
>> > 'HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData'
>> > does not exist.
>> >
>> > Source: MsInstaller
>> > Event ID: 1004
>> > User: NT AUTHORITY\NETWORK SERVICE
>> > 2003 Server
>> >
>> > Note: This works fine with windows forms but fails with asp.net
>> >
>> > Can someone help me I would really appreciate it
>> > Thanks
>> > Siva
>> >
>>
>>
>>
Author
23 Dec 2005 3:04 PM
SivaSiva
Chris,
Yes, the entire office is installed and it's working fine with my windows
forms client. It fails when I call the same method from one of my aspx page.
Thanks,
Siva

Show quoteHide quote
"Christopher Reed" wrote:

> Is Word installed on the server?  If it is, then you may need to reinstall
> it.  It's my impression that that is what the error message is indicating.
> --
> Christopher A. Reed
> "The oxen are slow, but the earth is patient."
>
Author
24 Dec 2005 1:22 PM
Christopher Reed
The Windows client would use the Word installed on the client.  Under
ASP.NET, the Web app would have to use Word installed on the server.  This
is the major difference between the two environments.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

Show quoteHide quote
"SivaSiva" <SivaS***@discussions.microsoft.com> wrote in message
news:E23BE65D-2947-431F-B242-DC937CA3713C@microsoft.com...
>
> Chris,
> Yes, the entire office is installed and it's working fine with my windows
> forms client. It fails when I call the same method from one of my aspx
> page.
> Thanks,
> Siva
>
> "Christopher Reed" wrote:
>
>> Is Word installed on the server?  If it is, then you may need to
>> reinstall
>> it.  It's my impression that that is what the error message is
>> indicating.
>> --
>> Christopher A. Reed
>> "The oxen are slow, but the earth is patient."
>>

Bookmark and Share