Ciao a tutti,
ho un pc in locale con office e ovviamente tutto funziona, ma quando trasporto e copio le dll sull'hosting mi compare questo errore :
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Nel webconfig ho inserito queste righe :
<add assembly="Microsoft.Office.Interop.Excel, Version=10.0.4504.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="Microsoft.Vbe.Interop, Version=10.0.4504.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="Office, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Mentre la riga "incriminata" del codice è :
Dim appExcel As New Microsoft.Office.Interop.Excel.Application
Ho guardato in giro ma non ho trovato soluzioni... sull'hosting dove risiedo non hanno installato office, ma non penso che questo serva se do le referenze delle dll giusto?
Grazie

Rispondi quotando
