Add DLL to asp.net

Last post 09-15-2008 8:56 AM by rednael. 11 replies.

Sort Posts:

  • Add DLL to asp.net

    07-02-2008, 9:44 PM

    hey

    i would like to ask how do we add a C++ dll to asp.net?

    I kept getting errors when adding it.

     

    Error shown:

     A reference to 'C:\Documents and Settings\username\MyDocument\Futronic

    dll\FASExtend_DLL_v1.3\dll\FasExtend.dll' could not be addded.No type libraries were found in the component.

  • Re: Add DLL to asp.net

    07-02-2008, 11:30 PM
    Answer
    • Loading...
    • ReiterIstvan
    • Joined on 06-13-2008, 5:44 AM
    • Hungary
    • Posts 5

    Hi!

    Look this page, may be useful.

  • Re: Add DLL to asp.net

    07-04-2008, 6:38 AM

    please add this dll file as web reference to the application and add ' using ' statement in every page where you are going to use this file and its functionality. Rebuild the application.

    Thanks and Regards,
    Mahesh | Encodex Technologies India Pvt. Ltd.
    www.encodexindia.com

    Please Mark as answer if your problem got solved , because that may help other.
  • Re: Add DLL to asp.net

    07-04-2008, 7:57 AM

    Hi .,,

    follow the below steps :

     1) Register the C++ dll library using the   regsvr32.exe "absolute path of that dll "  from the command prompt.

    2)  use the namespace " system.runtime.interop" in your .cs file

    3) Now  Add the dll using the "Add Reffrence" option in your development studio..

    Hope it helps... :)

    Srikanth Maganty
    Microsoft Corporation
    www.microsoft.com
  • Re: Add DLL to asp.net

    07-07-2008, 9:23 AM

     i think you must import it by command prompt and type

    regsvr32  FasExtend.dll

     

    or if he can't register it so you can't add this dll

     

     

     

    Don't Be Afraid From Growing Slowly But Be Afraid from Standing Still
  • Re: Add DLL to asp.net

    07-07-2008, 8:50 PM

     

    Thanks for all the suggestions given.But iwhen i type at command prompt regsvr32 FasExtend

     

    an error pop up:

    LoadLibrary("FasExtend.dll") failed - The specified module cannot be found.

  • Re: Add DLL to asp.net

    07-08-2008, 12:29 AM
    • Loading...
    • mbalasyam
    • Joined on 11-23-2006, 8:18 AM
    • Sydney
    • Posts 6

     May be the file is not there. Or you have given an incorrect path.

     

     

    :) theDeveloper :)
  • Re: Add DLL to asp.net

    07-08-2008, 5:51 AM

    Hi,

    Please try to refer to ReiterIstvan's post.

     

    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: Add DLL to asp.net

    07-09-2008, 5:33 AM

    Hi..,

    you need to give the complete path(Physical location of that dll path followed by the dll name)

     

    Srikanth Maganty
    Microsoft Corporation
    www.microsoft.com
  • Re: Add DLL to asp.net

    07-09-2008, 8:55 PM

    hey

    so you mean i need to declare the directory of my dll is it?

  • Re: Add DLL to asp.net

    07-11-2008, 1:47 AM

    Yes.., you need to give your directory path of the dll contained and append it with your dll name

    Srikanth Maganty
    Microsoft Corporation
    www.microsoft.com
  • Re: Add DLL to asp.net

    09-15-2008, 8:56 AM
    • Loading...
    • rednael
    • Joined on 09-15-2008, 6:19 AM
    • Posts 7

    Hi ccc,

    Please read the following article:
    http://blog.rednael.com/2008/08/29/MarshallingUsingNativeDLLsInNET.aspx

    It's an in-depth article about how to use a native DLL (or C++ DLL) in your managed .Net code. The article shows which types are interoperable, how to import a DLL, how to pass strings, how to pass structures and how to de-reference pointers.

    And C# source code examples are included.

Page 1 of 1 (12 items)
Microsoft Communities
Page view counter