.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Solution/project structure

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Hello, I am working in a aspx web application that must be built in several separate "modules" with different functionality which will be partly developed by different teams.

However, I need the completed app to reside in ONE virtual directory. There will be a single startup page. I need session state to be preserved across pages in different modules.

I structured it as one solution with different Web Projects and one class library project with common functionalities.


1) is this the right approach to do this? Or which one would be better?

2) each time I add a new web project to the solution, a new web.config gets created. What do I do and where do I put them?

VS 2010 + framework 4.0 + TFS

Regarding TFS and source control, I have a single Team project, the solution and web projects are inside it.



View Complete Post

More Related Resource Links

Video: Visual Studio: SharePoint 2010 Tools Project Structure

Visual Studio 2010 includes support out of the box for the most common types of projects that you may want to build with SharePoint 2010 as well as new features for more easily defining features, solutions, and wizards to walk through the most common settings for each project type. (Length: 24:23)

Installed Visual Studio 2005 on new laptop - can't open C# web services project solution.

Installed Visual Studio 2005 on new laptop - can't open C# web services project solution - get the 'project not supported by this installation' error. Tried re-installing to no avail. Have run various flavors of devenv as recommended in various posts. Still the same message. I can open the solution fine on my old laptop.    Update: We re-installed service pack 1 for VS and the problem was resolved.

Site File Structure, Folders, Learning project, subweb, web.config

I am just learning asp.net.  I purchased an "ASP.Net 3.5 web programming in C#" book, which I like allot.  I am on chapter 3 and want to complete a shopping cart exercise from the book.  I have to create several folders and files.  The exercise has the files and under the root directory and a few folders below that.  I already have a site that I've been learning on.  Can I create a subfolder on my site and put all the files in there?  Like the subfolder is the root of the project.   Here is list of Folders and files... Code/CartItem.cs Code/Product.cs Data/Cars.mdb Images/car.jpg Cart.aspx Order.aspx Web.config ................................ On my website I want to create a subfolder to keep alll the files in, as so... ShoppingCart/Code/CartItem.cs ShoppingCart/Code/Product.cs ShoppingCart/Data/Cars.mdb ShoppingCart/Images/car.jpg ShoppingCart/Cart.aspx ShoppingCart/Order.aspx ShoppingCart/Web.config ................................ Can I have two web.cong files?, one in the subfolder?  Or do I have to use the single, web.config file in the root directory of the site?  Are there any other pitfalls or trouble I might get into setting up my file structure like this?  Anything I should be aware of? Any thoughts or advice would be appreciated. Thanks, Mike   

host and consume wcf rest service in web project in single solution

I have  create a solution which have multiple class library project and a web application Like Web(UI),BL,DAL etc. I have also add a WCF REST starter kit Collection project in the same Solution.WCF Rest API is working fine if I host it on IIS but i want to consume this in my web project without using IIS. Is this possible? if yes then what will be the URI  for my WCF Rest services? Add service reference is also not working because WSDL is disable in rest.

convert 2003 project to vistudio 2005 get solution is unavailable

I have  three  folders , which original is build by vistual 2003 , recent ly  I install vistuall 2005 on Win 7 and succesful covert one  folder from vistual 2003 t0 2005 ( I forget how , I am new on win 7) , when I deat with my second folder I always get Test2( unviable) under the Solution Exporer ( vistual 2005)  But I can access this folder  by brows ( when I try http://localhost/test2/) I get all the files under this folder , why I can see them on my vistual studio 2005 ???

Reading in values in text file in a project solution to an array



I have a tab delimited text file that has 6 columns (all integers) and 500 rows (and no column headings) called ProjectData.txt that I have added to my Windows Form Application (c#) (by added I mean I have it in my project solution). 

I have declared an array in my code called ProjectDataArray which has dimensions [500, 6].

I wish to load each column of each row into the array.

All the code I have seen shows how to do this for text files that are not included in the project solution. 

Is this easy to do?

Application_Start event stops happening when another project is added to the solution


I'm having something unusual happening with a Web Service created using Visual Studio 2008.  Basically, the Application_Start event stops getting called when I add another project to the solution.  Here's what I'm doing (note that I'm using the ASP.NET Development Server):

1. Create a new Web Service project.
2. Add a new WebService class.
3. Add Global.asax.
4. Add a single line "System.Diagnostics.Debugger.Break();" to Application_Start in Global.asax.
5. Change Web.Config compilation debug="true" (actually VS did it for me when I first try to run it).
6. Run the solution.  Result: Visual Studio breaks in the Application_Start event.
7. Manually stop the ASP.NET Development Server.
8. Re-run the solution.  Result: Visual Studio breaks in the Application_Start event.

All good so far.  However, when I continue...

9. Manually stop the ASP.NET Development Server.
10. Add new project (a Windows Class Library) to the solution.  This is NOT set as the startup project (the startup project is still the web service project).  No references are added to either project and no other changes are made to either project.
11. Delete the default Class1.cs that automatically gets added to the class library project.<

Can't change the code in Solution (Project)



I have problem using Visual Studio.NET 2003. When I open solution made early ago, choose the code of the existing .aspx page, could not change it, because when type nothing happened, no letter, no sign, like the keyboard is "dead" (but it is not, ofcourse). If I type the code in other application, then put it in .aspx.vb code page using copy-paste, everything is ok, can build the solution and it's working.

I appreciate for Your time, any help is welcome.



How to: include more project in a SharePoint 2007 Workflow solution in Visual Studio 2008

I just develop  a little bit complex workflow and I want some objects put into an library (simple c# class project) project  in the solution. It is signed, referenced, but when I debug  it send a "System.IO.FileNotFoundException: Could not load file or assembly ..." How to resolve?
Thanks in advance, bts

Unable to deploy solution,getting "The OutputPath property is not set for project " error


Hi Guys,

I am having this configuation issue which I can't seem to resolve. When I am deploying my SP2010 solution to my farm Ii ge thi error mesage when I deploy a solution which contains output dll references.

Error 1 The OutputPath property is not set for project 'XXX.SharePoint2010.KnowledgeBase.Helper.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Release'  Platform='AnyCPU'.  This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. KnowledgeBaseSite

Any help would be appreciated.



SharePoint Developer

Referencing a project in the same solution from script tasks



I have a solution with an SSIS project and now I added a class library project and I want to reference it from the script tasks of the SSIS project. Is there any way to do that without creating a shared assembly?



XAML intellisence not working for one VS2010 project in Solution


I've got a WPF solution with 5 projects in it. For some reason...the XAML intellisense quit working and it's driving me nuts. All other intellisense is working just fine (C# for code behinds). I am "not" using any network shares as I saw on other forum posts that this might be the problem. Again...this solution was working fine before. Problem exists where ever I take it XP, W7....Please help!!!


Paul Reed

What is the proper VS2010 folder structure for Image Resources in C# Winform project ?


I'm confused about where Resources should be stored in a VS2010 Winform project...

Here's the structure I've been using, and which is now severely messed-up!



        Resources folder  ("A")

                various .bmp files







     Resources folder ("B" - this one is empty)

     various ,cs files...   

Resources folder "A" contains copies of the .bmp files which are also added as Image resources to the Resources.resx file. And Resources folder "B" is empty.

The problem I seem to be having is that when I use the Resources editor to edit some of the image

use service reference in other project in the same solution



i have a windows service that sends information to another project(let's call it Project A) that hosts a wcf service.  the windows service business rules are in another project(project B) within the same solution. Do i have to add the service reference(to wcf service) in both projects (windows service and project B) in order to communicate with project A?


thank you in advance!



Solution (sln) & Project Files rptproj in SQL2008



I'm working on a Team of 12 report developers and we have a single Solution defined by our IT Manager. we all have a local copy of this Solution (lets call it Reports2008), which we are developing our own reports into. 

It's structured is roughly defined below,


       Department 1

             Shared Data Sources

             Shared DataSets


       Department 2

             Shared Data Sources

             Shared DataSets


       Department 3 

             Shared Data Sources

             Shared DataSets


       Department 1 

             Shared Data Sources

             Shared DataSets



The project file is not bound to source control, but the solution contains source control binding in

This may be more of a SQL Server Management Studio question, but I couldn't find a SSMS forum...

I've got a database solution that contains several projects.  They're just to keep track of changes to stored procedures, triggers, views, etc in a few databases I maintain.  There is a problem with two of the projects though.  No matter what I do, I can't seem to get them bound to source control right.  When I open the solution, I get:

The project file is not bound to source control, but the solution contains source control binding information for it.

With two options, use solution binding and remove solution binding.  If I keep the solution binding, everything works fine.  But it's really annoying to have to deal with every time I open the solution.  If I remove the solution binding, the projects are now unbound again.  If I try to fix them (using the change source control or Add Selected Projects to Source Control options under the File->source control menu), I just end up in the same situation.  I've even tried deleting the projects and re-creating them from scratch, then re-adding them to VSS.  If I open the solution files in a text editor I can see the SCC tags in every project, but these two.  Since I can't manually add the tags, and Management Studio itself only seems to want to bind them the wrong way, I'
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend