Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi

This Line returning exception when i have deployed application to other machine

C#
Microsoft.Office.Interop.Excel.Application xlApp= new Microsoft.Office.Interop.Excel.Application();


Exception: Object Reference not set to an instance


please help me .....
Posted
Updated 4-Jan-13 0:39am
v2
Comments
[no name] 4-Jan-13 6:41am    
Can you confirm that you are having the Microsoft.Office.Interop.Excel assembly at your reference?
ssoni346 4-Jan-13 8:16am    
Yes i have install that using command prompt

1 solution

Check if Microsoft Primary Interop Assemblies are installed on the other computer.
 
Share this answer
 
Comments
ssoni346 4-Jan-13 8:10am    
Yes it is installed

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900