Generating Excel Report in ASP.NET 2.0

Discussion in 'ASP.NET 2.0' started by rupesh11, Aug 16, 2008.

  1. Plz. Help me. Getting below said error while trying to run application with a reference of Excel 11.0 Object Lib.
    Thanks




    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 27: <compilation debug='true' strict='false' explicit='true'>
    Line 28: <assemblies>
    Line 29: <add assembly='Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'/></assemblies></compilation>
    Line 30: <pages>
    Line 31: <namespaces>


    Source File: d:\home\synergize.co.in\wwwroot\web.config Line: 29

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    This won't work on our server (i doubt you can find any hoster that will support this) because it needs excel to be installed on the server.

    Consider using Office Web Component (OWC)

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page