I have an N Tier project that has a Data Layer, Business Layer, and UI layer. How do I upload it to my hosting site? I tried to publish it, but it appears the publish option is only an option on the UI layer?
Correct. You don't publish the other layers because they only compile down into dlls. If the UI layer makes reference to the business layer, and includes the copy local option set to true, then it will automatically import the business layer dll (and it's
dependencies as well). Same goes for the business layer, make sure that it has copy local set to true on the data layer.
All you need though is to make sure that the dlls from the other projects are in the bin directory of your web app.
Don't forget to mark useful responses as Answer if they helped you towards a solution.
Marked as answer by tvb2727 on Jan 28, 2013 09:46 AM
tvb2727
Participant
925 Points
1275 Posts
N Tier Project
Jan 27, 2013 11:20 PM|LINK
I have an N Tier project that has a Data Layer, Business Layer, and UI layer. How do I upload it to my hosting site? I tried to publish it, but it appears the publish option is only an option on the UI layer?
tvb2727
Participant
925 Points
1275 Posts
Re: N Tier Project
Jan 28, 2013 12:54 AM|LINK
I'm using visual studio 2012 express.
markfitzme
Star
14495 Points
2243 Posts
Re: N Tier Project
Jan 28, 2013 02:33 AM|LINK
Correct. You don't publish the other layers because they only compile down into dlls. If the UI layer makes reference to the business layer, and includes the copy local option set to true, then it will automatically import the business layer dll (and it's dependencies as well). Same goes for the business layer, make sure that it has copy local set to true on the data layer.
All you need though is to make sure that the dlls from the other projects are in the bin directory of your web app.