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" <Si******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.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