In my ASP.Net project I have a reference to:
C:\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office12\Microsoft.Office.Interop.Excel.dll
and my VB codebehind page has this :
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.Excel
but when I run the project I get this error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'Excel.Application' is not defined.
Source Error:
|
Line 8: Public Class ExcelIO
Line 9: Private Shared iExcelPID As Integer
Line 10: Private Shared xlExcel As Excel.Application = Nothing
Line 11:
Line 12: Public Shared Sub ReadInput(ByVal sFileName As String, ByVal sSource As String, ByVal sDescription As String)
|
How do I fix this?