Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created an outlook addin in C#. Everything works fine in debug and release mode. But after creating the setup and deployment project. After installing it in the system, I am getting Object reference is not set to an instance. I didnt get this in debug or release mode. Only after deploying and running the setup file and installing it.

system.NullReferenceException: Object reference not
set to an instance of an object.

at

OutlookDataAccess.get_obOpenedSqlConnection()
at
OutlookDataAccess.GetProject(string emailid)

I have just used this project and modified according to my requirements: http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_ContextMenuforaMailItem[^]
Posted
Updated 4-Aug-12 2:09am
v3
Comments
Sergey Alexandrovich Kryukov 6-Aug-12 1:07am    
What, after 152 questions, you still don't know what to do? I think I already noticed that your questions do not help you...
--SA

1 solution

If you are using some third party component, you might need to setup this third party as well.
 
Share this answer
 
Comments
Gokulnath007 4-Aug-12 8:09am    
I have just used this project and modified according to my requirements:

http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_ContextMenuforaMailItem

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