Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I have created 3 Tier architecture in asp.net.

1.Business Tier
2.Date Tier
3.Application Tier

I have compelted this project successfully.
I have also added references of my dll correctly.

Application Tier
is referenced with BUSINESS and Data Tier

Business Tier is referenced with Data Tier

and Data Tier is calling my database.

I have added reference by adding dll of each as reference.


i have some issues

ex. If i try to navigate to my function defination(ex. F12,or right click on function and click on
Go To Defination) .
It is taking me to code metadata instead of actual code. i dont know where i went wrong.
Please guide me if possible.

XML
    This code is in my presentation layer
public void GetMenu(){
Handler mh = new Handler();
        DataSet ds = mh.GetMenu(mm);
}

This code is in my Business layer

public class Handler
    {
   public DataSet GetMenu(MenuMaster mm)
        {
            return DbAc.get_Menu(mm);
        }
}

This code is in my Data layer

        public DataSet get_Menu(MenuMaster sm)
        {
            SqlParameter[] ParamList = new SqlParameter[2];

            ParamList[0] = new SqlParameter("@Id", SqlDbType.VarChar, 50);
            ParamList[0].Value = sm.ID;

            ParamList[1] = new SqlParameter("@GroupId", SqlDbType.VarChar);
            ParamList[1].Value = sm.GroupId;

            return SqlDBHelper.ExecuteDataSet("getMenu", CommandType.StoredProcedure, ParamList);
        }


if i right click on GetMenu function and try to click on go to code defination, its taking me to metadata not actual code


Thanks,
Regards,
SUNIL MALI.
Posted
Updated 2-Aug-13 1:57am
v4
Comments
Dholakiya Ankit 2-Aug-13 6:18am    
where you are clicking or pressing f12 that important give code
Rasik Banta 2-Aug-13 6:44am    
Have you tried rebuilding the Data Layer and Business Layer and adding the references again. I had faced a similar issue when the Application/UI layer was referencing to old versions of dlls
sunil mali 2-Aug-13 6:50am    
yes i did so many times during project creation.
my code works...
only the problem is it jumps to metadata instead of actual code.

Ohhhh...
Finally i found answer on youtube video.

Mistake i did was

i was adding reference of my dll.
ex. right click on project ->Add reference->Browse->Navigate to my business layer dll->add it
Solution:

while adding reference instead of adding dll as reference i should add project as reference.
If you add dll as reference it will definately show you metadata, but if you add project as a reference it will take you to actual code.

Steps:
right click on project ->Add reference->Go to project section->check checkboxes of your business layer


I was struggling so long for this.
but youtube video saved me.


Thanks,
Everyone who replied here.
 
Share this answer
 
v2
Somebody please help..
Still if u have not understood or have some question let me know...
 
Share this answer
 
Comments
Member 10751182 24-Apr-14 3:29am    
Thankyou

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900