Problem with Interops
-
I have deployed an asp.net web application that calls a method from COM Dll, register at my D:\algebra.dll root. The bin folder of my application contains: /bin Interop.algebra.dll .dll Application has only one webform that accepts a number and displays the result by multiplying it by 2. The function that performs the multiplication is called from COM Dll. Now i delete that method and re-register the dll "algebra.dll". I dont replace the Interop in the application's bin directory. The strange thing is that the method still gets called. Should it not give an error?:sigh:
-
I have deployed an asp.net web application that calls a method from COM Dll, register at my D:\algebra.dll root. The bin folder of my application contains: /bin Interop.algebra.dll .dll Application has only one webform that accepts a number and displays the result by multiplying it by 2. The function that performs the multiplication is called from COM Dll. Now i delete that method and re-register the dll "algebra.dll". I dont replace the Interop in the application's bin directory. The strange thing is that the method still gets called. Should it not give an error?:sigh:
As soon as you add a COM reference, the Interop.algebra.dll gets created in the bin folder. After this, whatever you do with the COM component, there will be no effect on Interop.algebra.dll till the time you remove the COM reference from your project and again add it.
-
I have deployed an asp.net web application that calls a method from COM Dll, register at my D:\algebra.dll root. The bin folder of my application contains: /bin Interop.algebra.dll .dll Application has only one webform that accepts a number and displays the result by multiplying it by 2. The function that performs the multiplication is called from COM Dll. Now i delete that method and re-register the dll "algebra.dll". I dont replace the Interop in the application's bin directory. The strange thing is that the method still gets called. Should it not give an error?:sigh:
What does the registry point to after you re-register the dll? If you can get a codebase path, then you can figure out where the data goes to. ~Javier Lozano
-
As soon as you add a COM reference, the Interop.algebra.dll gets created in the bin folder. After this, whatever you do with the COM component, there will be no effect on Interop.algebra.dll till the time you remove the COM reference from your project and again add it.
Thanks Rahul, But one thing i would like to mention that any changes in the method implementation in the dll are reflected. if method body initially multiplied the parameter by 2, and now it is changed so that it multiplies by 3, after re-registering the dll, the webapplication shows updated result with the same interop.(if earlier with a parameter 2, the result was 4, now it is 6). Method implememtation is reflected. A new method in the dll is not detected, then why is it that a deleted method still gets accessed?
-
What does the registry point to after you re-register the dll? If you can get a codebase path, then you can figure out where the data goes to. ~Javier Lozano