1 Solution, 2 Projects?

  • Thread starter Thread starter Bryan
  • Start date Start date
B

Bryan

Hi All,

I'm building an web site with two pieces. A public piece, and a
password protected administrative piece.

Using VB.net 2003, I created a new solution and project for the public
piece. This will run in the root of my server (www.whatever.com).
Works, no problem.

Now I need to create the administrative piece. I'd like it to be in a
subdirectory called admin (www.whatever.com/admin). To do this I've
created a 2nd project in the same solution, and set it to reside in the
admin subdirectory. The problem is that VS is creating the DLL for the
admin stuff in /admin/bin. This causes problems when I try to view the
pages, because IIS is expecting the DLL in /bin.

So, I have two questions:

First, am I going about this right? I'm assuming that adding a 2nd
project to the same solution is the right way to get the setup I
desire. Right?

Second, assuming I'm using the right approach, how do I get VS to
create the DLL in the /bin directory instead of /admin/bin?

Thanks in advance for your help!

- Bryan
 
You can just as easily create the subdirectory in a single project. That
way, VS will place the (single) code-behind assembly in the root/bin folder.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Nick,

Thanks for the quick response.

At the risk of sounding completely stupid... Usings VS.NET, how do you
specify that a new ASPX file should reside in a sub-directory and not
in the root?

Even that is not an ideal solution. I like the fact that I have a
different DLL for the admin stuff verses the public stuff, but I can at
least work with your idea.

Thanks Again!

- Bryan
 
Back
Top