locked
refferencing in 3 tier architecture RRS feed

  • Question

  • User-1263702099 posted

    Hai,

     I had developed 3 tier architecture web application,in this application used 3 class libraries ,after publishing project ,i am working on same project in class libraries i had added more classes,and additional classes for application .but now not able to access those classes,error is refferencing missing like.how to solve this problem.in visual studio .net 3.5

    Tuesday, May 10, 2016 7:46 AM

Answers

  • User-369506445 posted

    your mistake is here

    when you change your class library ,need to update the dll into each projects that used it

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 11, 2016 4:00 AM
  • User1559292362 posted

    Hi NatarajYashash,

    NatarajYashash

    "The type or namespace name 'EventsBL' could not be found (are you missing a using directive or an assembly reference"

    According to your error message, firstly, please check the spelling. As previously noted, the most common cause is not having the correct case for the type or namespace. If you feel certain that you have spelled the name of the type or namespace correctly (including the correct capitalization), then check the following:

    1. Assembly Reference:

      Make sure that you have referenced the assembly that contains the namespace. If you are developing in Visual Studio .NET, you can go to the Project menu and click Add Reference. On the .NET tab, choose the assembly that contains the namespace that you are trying to import, or Browse to the folder that contains the assembly. If you are using the command-line compiler, add the appropriate switch (/reference) to the compile statement.
    2. Namespace:

      Make sure that you are importing the namespace into your project by having a using statement at the top of the code file that contains the type reference, such as:
    using System.Data;

    If you don't have the using statement, then fully qualify the reference to the type, such as:

    System.Data.DataSet ds;

    For more information, please refer to:

    https://support.microsoft.com/en-us/kb/304656

    Best regards,

    Cole Wu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 11, 2016 5:40 AM

All replies

  • User-369506445 posted

    hi

    when you change or add other things to your class library , you must rebuild again and copy it into your publish place

    Tuesday, May 10, 2016 8:00 AM
  • User-1263702099 posted

    the added classes and aspx pages are not shown in solution explorer,i had rebuilded so many times ,

    Tuesday, May 10, 2016 10:32 AM
  • User-369506445 posted

    when you publish your project  create  a bin folder and your class libraries are there, you must copy the new rebuild class libraries there

    Tuesday, May 10, 2016 10:49 AM
  • User-1263702099 posted

    Hai,

     rebuilding showing build error "The type or namespace name 'EventsBL' could not be found (are you missing a using directive or an assembly reference" .how can i publish,initially build shows error.

    Tuesday, May 10, 2016 11:05 AM
  • User-369506445 posted

    your mistake is here

    when you change your class library ,need to update the dll into each projects that used it

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 11, 2016 4:00 AM
  • User-470152798 posted

    hi,

    keep reference to each other in one class with all class libraries and that reference class should be added in main project before you build then i hope error will resolve

    Wednesday, May 11, 2016 4:21 AM
  • User1559292362 posted

    Hi NatarajYashash,

    NatarajYashash

    "The type or namespace name 'EventsBL' could not be found (are you missing a using directive or an assembly reference"

    According to your error message, firstly, please check the spelling. As previously noted, the most common cause is not having the correct case for the type or namespace. If you feel certain that you have spelled the name of the type or namespace correctly (including the correct capitalization), then check the following:

    1. Assembly Reference:

      Make sure that you have referenced the assembly that contains the namespace. If you are developing in Visual Studio .NET, you can go to the Project menu and click Add Reference. On the .NET tab, choose the assembly that contains the namespace that you are trying to import, or Browse to the folder that contains the assembly. If you are using the command-line compiler, add the appropriate switch (/reference) to the compile statement.
    2. Namespace:

      Make sure that you are importing the namespace into your project by having a using statement at the top of the code file that contains the type reference, such as:
    using System.Data;

    If you don't have the using statement, then fully qualify the reference to the type, such as:

    System.Data.DataSet ds;

    For more information, please refer to:

    https://support.microsoft.com/en-us/kb/304656

    Best regards,

    Cole Wu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 11, 2016 5:40 AM