跪求:asp.net导出Excel文件错误解决方案
姓孙名悟空 2010-11-15 04:02:07 Server Error in '/web' Application.
--------------------------------------------------------------------------------
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
以上的导出Excel时出现的错误信息.
系统在局域网内使用,导入Excel文档功能正常,机器安装的是xp 企业版系统 IIS 5,Office2007,在导出Excel时出现以上错误,我已经进入dcomcnfg里对window office excel 应用程序对以下多个用户进行了权限分配 aspnet, everyone ,service 等