Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to call dll from asp.net page

How to call dll from asp.net page

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netcomhelp
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sharadshinde_1
    wrote on last edited by
    #1

    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

    C M 2 Replies Last reply
    0
    • S sharadshinde_1

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      1 Reply Last reply
      0
      • S sharadshinde_1

        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

        M Offline
        M Offline
        mareers
        wrote on last edited by
        #3

        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.

        S 1 Reply Last reply
        0
        • M mareers

          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.

          S Offline
          S Offline
          Sandeep Kumar
          wrote on last edited by
          #4

          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

          S 1 Reply Last reply
          0
          • S Sandeep Kumar

            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

            S Offline
            S Offline
            sharadshinde_1
            wrote on last edited by
            #5

            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

            S 1 Reply Last reply
            0
            • S sharadshinde_1

              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

              S Offline
              S Offline
              Sandeep Kumar
              wrote on last edited by
              #6

              Hi, I guss your connection string might be wrong for that reason it cud not be extablishing the connection.

              Regards, Sandeep Kumar.V

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups