We have developed an application using ASP.NET/C# which uses COM api. We figured out that API methods are relatively slow in Web Application but the same code, same method if i try to use in a window based application, it is extremely fast. Please let us know, if what could be the reason.

COM DLL METHOD SLOW IN WEB APPLICATION BUT FAST IN WINDOWS APPLICATION
_Ed Noepel
I thought that the delay might be due to the interop which creates that delay. But i tried with sample .NET windows application which uses this interop dll and executes extremely fast.
I am wondering that interop Dlls will it behave differently for Web and Windows based applications.
Please throw lights on my thoughts.
CharlestonSW.com
Jobr77
are you using C# to access a COM dll using COM interoperability, or to access a legacy (native) dll (for instance win32 API)
xhh
I think you are going to go deeper to find your answer. Try for instance some code optimizations. If you are using the COM object inside a .NET loop, try to transfer the loop inside your COM object to minimize the call overhead.