How to call dll from asp.net page
-
I have a COM dll which i need to call its methods from a asp.net page. How do I do this? Kinldy help........!!!!!!
sharad
-
I have a COM dll which i need to call its methods from a asp.net page. How do I do this? Kinldy help........!!!!!!
sharad
I'm not sure if you can create a reference to a COM dll in your code behind in .NET 2.0, or if you need to call it from your middle tier. But, in essence, you create a reference to a COM dll, and then .NET generates a class which you create instances of, it handles all the COM stuff for you.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
I have a COM dll which i need to call its methods from a asp.net page. How do I do this? Kinldy help........!!!!!!
sharad
-
Add a reference of that dll in ur project. import it in ur page by using the Imports(VB) or Using (c#) and use it.
------------------------------ If u think u can, u can. If u think u can't, u r right.
Hi Sreeram, You are right Sreeram actually what .net will do is it will create a wrapper dll for your COM dll with the name "
Interop.(YourCOMdllName).dll
" and places this in your bin folder of your application.By that way you can acces all the methods which are there in COM dll.Regards, Sandeep Kumar.V
-
Hi Sreeram, You are right Sreeram actually what .net will do is it will create a wrapper dll for your COM dll with the name "
Interop.(YourCOMdllName).dll
" and places this in your bin folder of your application.By that way you can acces all the methods which are there in COM dll.Regards, Sandeep Kumar.V
my COM Dll has only one method - INVOKEMETHOD() using that I am connection to my telephony server but the connection cud not be established. My telephony server is up. r.InvokeMethod("TS.Definity![Connect]", rpc) please suggest....
sharad
-
my COM Dll has only one method - INVOKEMETHOD() using that I am connection to my telephony server but the connection cud not be established. My telephony server is up. r.InvokeMethod("TS.Definity![Connect]", rpc) please suggest....
sharad
Hi, I guss your connection string might be wrong for that reason it cud not be extablishing the connection.
Regards, Sandeep Kumar.V