View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Samba Samba is offline
external usenet poster
 
Posts: 7
Default InvalidCastException with .NET

Hi,

I am trying to access Excel from .NET. Initially it was working fine. But
after sometime it is giving the exception, 'System.InvalidCastException:
QueryInterface for interface Microsoft.Office.Interop.Excel._Application
failed'. I tried reinstalling PIAs and Excel, but nothing worked.

I installed PIA's in the GAC.
I am using Excel 2002 SP-2 and VS 2003.

Thanks for your help.

-Samba