locked
Unable to retrieve assembly fullname Parameter name: assemblyPath RRS feed

  • Question

  • Hi,

    I am adding reference of an existing assembly (assembly1.dll developed in house) to a Web site project. Environment is Windows 7, VS2010. Target platform is 32-bit, target framework is .Net 2.0

    Getting the following error:

    A reference to 'c:\source\project1\assemblies\assembly1.dll' could not be added. Unable to retrieve assembly fullname
    Parameter name: assemblyPath

    Please let me know if you have any suggestions, thoughts?

    Thanks in advance.

    Monday, February 28, 2011 5:25 PM

Answers

  • Hi VIBGYOR,

     

    The error is related to the type of your dll.

    Is the assembly1.dll managed or unmanaged code? Is it supported by .NET Framework?

     

    If it is not .NET supported, you won’t add the reference(your native dll) to your project.

    If you want to use it in your .NET project, you can use DllImportAttribute Class.

     


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by VIBGYOR Friday, March 4, 2011 8:57 PM
    Friday, March 4, 2011 3:39 AM

All replies

  • Hi VIBGYOR,

     

    Welcome to the MSDN forum!

    Firstly, I want to confirm whether the error occurs in run-time?


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, March 3, 2011 8:27 AM
  • Hi VIBGYOR,

     

    The error is related to the type of your dll.

    Is the assembly1.dll managed or unmanaged code? Is it supported by .NET Framework?

     

    If it is not .NET supported, you won’t add the reference(your native dll) to your project.

    If you want to use it in your .NET project, you can use DllImportAttribute Class.

     


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by VIBGYOR Friday, March 4, 2011 8:57 PM
    Friday, March 4, 2011 3:39 AM