Run Excel from ASP.NET

  • Thread starter Thread starter Carlos
  • Start date Start date
C

Carlos

Detection of product '{00000409-78E1-11D2-B60F-006097C998E7}', feature
'OfficeUserData', component '{C9AF9050-C8BE-11D1-9C67-0000F81F1B38}' failed.
The resource
'HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Common\UserData' does not
exist.

Detection of product '{00000409-78E1-11D2-B60F-006097C998E7}', feature
'ExcelUserData', component '{8ADD2C96-C8B7-11D1-9C67-0000F81F1B38}' failed.
The resource
'HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel\UserData' does not
exist.

i used createobject(excel.application) in asp.net code to run excel and
generate some excel file.
however, the event log has many of the above warning error.
i understand that this is because aspnet_wp does not has a profile for
excel.
how do i hack the registry to resolve the above problem ? i have tried to
add the dword but it does not solve the problem

thanks
 
Perhaps you could explain more what you are trying to accomplish? Is it
something that could be better accomplished using the PIAs?

How to: Target Office Applications Through Primary Interop Assemblies

http://msdn.microsoft.com/library/d...tsktargetingofficeapplicationsthroughpias.asp

Ken
MVP [ASP.NET]

--
Microsoft MVPs have a question for *you*: Are you patched against the Worm?
http://www.microsoft.com/security/security_bulletins/ms03-026.asp



Detection of product '{00000409-78E1-11D2-B60F-006097C998E7}', feature
'OfficeUserData', component '{C9AF9050-C8BE-11D1-9C67-0000F81F1B38}' failed.
The resource
'HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Common\UserData' does not
exist.

Detection of product '{00000409-78E1-11D2-B60F-006097C998E7}', feature
'ExcelUserData', component '{8ADD2C96-C8B7-11D1-9C67-0000F81F1B38}' failed.
The resource
'HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel\UserData' does not
exist.

i used createobject(excel.application) in asp.net code to run excel and
generate some excel file.
however, the event log has many of the above warning error.
i understand that this is because aspnet_wp does not has a profile for
excel.
how do i hack the registry to resolve the above problem ? i have tried to
add the dword but it does not solve the problem

thanks
 
Back
Top