Web Service + Interop gives stale data
-
I have a web service in ASP.Net (C#) doing COM interop with a C++ COM component. After adding and removing the reference to COM many times, the data I get is old data. I believe the data is being cached somewhere. Any way to get over this?
«_Superman_» I love work. It gives me something to do between weekends.
-
I have a web service in ASP.Net (C#) doing COM interop with a C++ COM component. After adding and removing the reference to COM many times, the data I get is old data. I believe the data is being cached somewhere. Any way to get over this?
«_Superman_» I love work. It gives me something to do between weekends.
What sort of "data" do you mean? I assume since you're talking about a COM object that it just looks like an incorrect version in some way. Is it possible that you're actually picking up a different version of the DLL at runtime? Perhaps it's picking up the old one left in the application directory instead of the new one you're actually trying to reference? Try checking the locations in the PATH variable that contain incorrect versions of the DLL and get rid of them. Is it a Serviced component? Are you maybe picking up an older object from an object pool? I'm not even sure if this is possible, just an idea...