473,379 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

1 Solution, 2 Projects?

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

Nov 22 '05 #1
4 1602
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.
--
"Bryan" <bm*******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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

Nov 22 '05 #2
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.
--
"Bryan" <bm*******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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

Nov 22 '05 #3
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

Nick Malik [Microsoft] wrote:
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.
--
"Bryan" <bm*******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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


Nov 22 '05 #4
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

Nick Malik [Microsoft] wrote:
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.
--
"Bryan" <bm*******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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


Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: venky | last post by:
How can i integrate dotfuscator with my solution projects. Like when i build projects in my solution using visual studio.net, i want to be build using dotfuscator. Like i have a setup project...
16
by: Robert W. | last post by:
I'm building a solution that has 1 component for the Desktop and 1 component for the Pocket PC. (Though this isn't a mobile question). I have a data library that will be shared on both platforms....
0
by: nick | last post by:
Recently I had this conversation...
3
by: epigram | last post by:
I've been creating some toy ASP.NET apps in an effort to understand the technology. I've something odd with regards to project/solution creation. If you create a new asp.net application, it...
0
by: AC [MVP MCMS] | last post by:
I have a full blown VS.NET 2003 solution with a handful of library assemblies, two web projects, and a few web service projects. The entire solution is in VSS. Recently our build server went...
7
by: JohnGoogle | last post by:
Hi, I'm new to Visual C# and I am looking for guidance with structuring projects. I am wanting to develop a DLL assembly which will contain all my common classes which will be used by various...
3
by: Nick Gilbert | last post by:
Hi, In my VS.NET 2005, if I choose Build Clean Solution, the BIN folder is not touched. Shouldn't it delete all the dll and pdb files in that folder first? Instead, I'm finding I have to do it...
1
by: =?Utf-8?B?RG91Zw==?= | last post by:
We have a very large code base and use the partitioned solution model for development and deployment. The problem is that in .NET 2005 the setup projects cause severe performance problems when...
3
by: aaronmorlocks | last post by:
I have a problem, I have a libray that will be used for many differents projetcs (like a web project and a windows app project) and I don't know how can I put the connection string in 1 place...
5
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I have a solution with 50 projects. They are all compiled in DEBUG mode and the output path has been modified to a custom directory I now want to build RELEASE mode and the Output Path...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.