|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData' doI'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 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. -- Show quoteHide quoteGregory A. Beamer MVP; MCP: +I, SE, SD, DBA *************************** Think Outside the Box! *************************** "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 > 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. -- Show quoteHide quoteChristopher 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 > 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 > > > > > 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. -- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "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 >> > >> >> >> 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." > 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. -- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "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." >>
Other interesting topics
PreInit event in usercontrol
Select string building in C# and ASP.NET Unable to create the Web (W2003Std + Framework 2.0) remotely download trial version of vs2005 Finally moving from classic asp to ASP.NET 2.0 w/Visual Studio 2005 Application_Error does not fire ..HtmlControls.HtmlInputFile.Saveas(filename) not overwriting need help to convert to VB 101 Question - Passing a value from one page to another ASP.NET 2.0 deployment |
|||||||||||||||||||||||