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

G

Guest

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
 
G

Guest

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!
***************************
 
C

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.
 
G

Guest

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
 
C

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.
 
G

Guest

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
 
C

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top