Today I faced a very unusual problem. We have set of COM components which get installed on local machine by a set-up project. These COM components are referenced by .Net applications. Visual studio automatically creates COM Interop assembly in bin folder. So far so good.
Recently there was a change to COM component whereby a new property was added. After installing the COM component I could see the new property in Object Browser in Visual Studio 2010. However it was missing in the Visual Studio 2008 Object browser. I tried removing reference to the COM object and adding again. Still it didn't resolve the issue.
Went out for a Christmas meal. Had a very heavy meal and Yorkshire puddings at Toby's and a glass of Red wine.
Came back. Looked at the project again. This time I removed the reference. Also I deleted the Interop files created by Visual Studio from project bin (debug/release) folder and obj folder. Added the reference again and compiled the project.
TaaDaa!!! It worked!!
See what a glass of wine can do!!!
Recently there was a change to COM component whereby a new property was added. After installing the COM component I could see the new property in Object Browser in Visual Studio 2010. However it was missing in the Visual Studio 2008 Object browser. I tried removing reference to the COM object and adding again. Still it didn't resolve the issue.
Went out for a Christmas meal. Had a very heavy meal and Yorkshire puddings at Toby's and a glass of Red wine.
Came back. Looked at the project again. This time I removed the reference. Also I deleted the Interop files created by Visual Studio from project bin (debug/release) folder and obj folder. Added the reference again and compiled the project.
TaaDaa!!! It worked!!
See what a glass of wine can do!!!
Comments