How To Structure A Utility/companion Project In A Multi-project Solution

Aug 4, 2010

Let's say I have a Visual Studio solution with a Web project, a BLL project, and a DAL project. I'm trying to follow the repository pattern keeping my SQL code in the DAL with an interface that is referenced by the BLL.

I have a handful of common solutions for things such as error handling, usage logging, and other things that can be considered utility functions (i.e. not in the business spec). I'm keeping these in a Common project.

Here are a few ideas I've had with regards to structuring the Common project...

Bundle SQL with logic in a given class

Create a layered solution within the Common project

Discard the Common project and put utility functions in with BLL/DAL

Is one of these ideas better/worse than the other? Does anyone have a better solution?

It's worth noting that these utility functions will be reused in a variety of other applications.

View 1 Replies


Similar Messages:

Web Forms :: Tree Structure For Nodes - Multi Level Marketing Project

Jan 27, 2010

I am developing an ASP.Net web application for my client which is into Multi Level Marketing Business. I need to show him the treeview of the members under any member he chooses. For eg. he selects 'Member A' from the DropDownList, and clicks Submit, he should get a treeview of all the members under 'Member A'

View 1 Replies

How To Generate Solution And Project File From Project

Mar 4, 2010

i have the project files which consist of some folders and some aspx and aspx.vb files.

I do not have any solution file or .sproj file in it.

so I need open a single file at a time and I can not debug the whole project or any single file also.

Do I have to generate a project file or solution file,

I just wanted to open the whole project file by opening a single file in VS 2008.

so that all the folder structure and the files I can view in solution explorer.

View 1 Replies

Web Forms :: After Added Already Existing Project The Solution Icon Vanished By Showing The Icon Of Recently Added Project?

Feb 1, 2010

I have the following list of projects WebUI (WebSite) , DataAccess (ClassLibrary) , LogicLayer(ClassLibrary). Those of the project are purposively crated separately.But my scenario is, need to create only one solution file, then add all of the above projects under this solution file. So that i can be easiy interacted and changes can be made by opening solution file only instead of opening each project individually.

Simply all of the layer projects are under one roof means one solution. I tried it by adding solution first, then i added already existed project into this. But once after added already existing project the solution icon vanished by showing the icon of recently added project. By this way I could not add another project into this section too.Hope this is the way the basic real-time projects are created; to achieve the centralized control over architecture based projects.

View 4 Replies

How To Structure MVC 2 Project With Areas Sensibly

Aug 24, 2010

I want to structure my ASP.NET MVC 2 web application sensibly using Areas. The application consists of the two main parts Website which is the default part and Dashboard which administrates the site using a CMS. (Probably, more Areas will follow later on.)

How do I structure my project best? Should I ...

create the Area Dashboard and put the stuff belonging to the Website part into the main application folder or should I create both Areas Website and Dashboard?

Additionally, where should I place my Entity Data Model and the corresponding Repository classes that have to be accessed by both Areas?

View 1 Replies

Architecture :: Trying To Create A Project Structure?

Jun 3, 2010

I am using asp.net 3.5 and I am trying to create a project structure (asp.net web solution with UI/Business/Data access) which would be like a base and ready for any new projects in my team and all could use this standard structure only as a base(outer boundary) and they can expand the structure. Also adding on to it I wanted to include certain features like adding libraries of reusable code/functions, so that every team member could use functions from my library within this base structure. To summarize the above, I need to create standard .net project structure/framework/architecture with resusable code library included in it. How can I do this..

View 4 Replies

How To Get Code Coverage Working On A VS 2010 Project/Cannot Initialize The Project 'Project Name'

May 23, 2010

When I turn on Code Coverage in my test settings, on a project that references the Unity DI container I get the following error:

Cannot initialize the ASP.NET project'{Project Name}'.

The event log specifies the following reason:

Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.

View 2 Replies

Architecture :: Setup Project Structure For Web Application?

Feb 15, 2011

I am not new to ASP.Net application development but I haven't used some of the new frameworks or features that are used in applications these days.

For cross-cutting concerns, things like: Logging, Caching and DAAB are used in projects these days to implement proven and efficient source code from either Microsoft or other third party vendors such as Log4Net for logging purposes.

View 1 Replies

MVC :: Using Model Outside Of Project But Within Solution

Feb 16, 2011

I have decided to go back to an old project that I had placed on hold, to get familiar with MVC 3 Razor. It is a Jokes website (some of you already know). I have been watching these video tutorials on Code First Entity Framework 4, and I have managed to build my model in a project of its own. Then I went and created another project (this time MVC 3 Razor Blank Project) and linked the two togther. I am trying to simply list the joke, but I get the error saying:

CS0012: The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
public class _Page_Views_Home_Index_cshtml : System.Web.Mvc.WebViewPage<IEnumerable<LNModel.Joke>> {

Here is the code in my HomeController:

[Code]....

I know what the error means, I am missing a { using System.Data.Entity; } statement somewhere. But I can't understand why ! according to the video, if I have referenced my projects to that statement, I shouldn't be having this problem !

View 15 Replies

MVC :: Cannot Add MVC 3 Project To Empty Solution

Dec 16, 2010

Scenario:

1) Create completely empty VS 2010 solution.

2) Add one project. Now there's one project but no solution root.

3) Choose "Add new project" from the file menu.

4) Add MVC 3 empty project

5) It fails because the current "something" is neither the solution nor a solution folder.

Workaround: create two other projects first.

View 2 Replies

How To Get RESX Value From Other Project In The Same Solution

Oct 6, 2010

I have two projects in the same solution:

My.Solution.name.with.dots

BLL

Web

in the BLL project, I create a class that need to get a global resx value from RESX file that is placed in the Web project. Is it possible ?

BLL can't have a reference to Web project because of the project dependency

View 1 Replies

Configuration :: How To Add A New Project Into The Solution

Apr 24, 2010

There is a solution that whithin it I have a web project.

Now, I wish to add a new web project which has it's own App_Data,App_Themes.App_Code.

I don't wont to mess things and combine them both in the same project. I just won't to compile the new project and upload it sepretly to the web server in a different directory.

How do I do that with VS2008?

View 1 Replies

How To Access The Session From A Different Project Within The Solution

Feb 4, 2010

I have 2 projects in my solution.

MVC Web application
Class library

The MVC Web application references the class library.

The class library contains a class that extends the default ASP.Net Controller.

I'm putting a variable in session in the application's Global.asax.

protected void Session_Start(object sender, EventArgs args)
{
HttpContext.Current.Session["DomainName"] = Request.Url.Host;
}

In the class library I'm trying to get the value from the HttpContext.Session, but HttpContext.Session keeps coming up null.

[code]...

HttpContext.Current.Session doesn't seem to be an option in controllers.

View 3 Replies

How Many Web.config File Does A Solution/project Can Contain

May 26, 2010

How many web.config file does a solution/project can contain?

View 6 Replies

C# - Make New Project And Website Into Only One Solution?

Apr 24, 2010

How to make new project and website into only one solution?

View 2 Replies

Generating Deployment Package For A Application / Structure Takes Project Path?

Mar 18, 2011

I've created a deployment package in visualStudio, the package is generated, but it has an awfull structure, which is basically, the path where I've my project(e.g "CONTENT/D_C/WorkSpace/MyCustomer/TheProjectName/TheDevelopmentBranchFolder/TheCurrentBranch/TheWebApplicationName/obj/Release/Package/PackageTmp/TheSiteIsFinallyHere!!!"

It's problematic, because with the web deployer of IIS, it recreate this path.

So how can I avoid the "D_C/WorkSpace/MyCustomer/TheProjectName/TheDevelopmentBranchFolder/TheCurrentBranch/TheWebApplicationName/obj/Release/Package/PackageTmp" part in visual studio?

View 1 Replies

Visual Studio :: How To Create A Solution With Project

Aug 12, 2010

I have to modify a exist web application in Asp .Net, the problem is that I have the application just on the server.

I copy the application on my pc but now I have to create the appropriate solution and project to modify it.

I've all the file .cs and the dll already deployed.

How can I create the web application with .net ?

View 1 Replies

Auto Compile Sub Project Of A Website Solution?

Feb 25, 2010

Is to possible to make a configuration entry (web.config). That automatically compiles a referenced project(for example a class library) when the site runs? This would be easier for me to maintain on my hosting server. Otherwise i have to always recompile the files and upload them again for every small change.

View 1 Replies

Configuration :: Multi-project Deployment?

Feb 14, 2011

I need to deploy 3 projects using one single installer. The first project is a web project the second and third project are windows services.I need to use the .Net Deployment project to deploy all the project is a single installer. I have managed to create a installer and a custom action which gets the primary output of the both windows service but I am having problems installing the Web application.

If I create an output for the web application it gets installed in the application's folder and not on IIS folder and its not set as an application.

View 1 Replies

How To Consume An EF Model In A Seperate Project Within A Solution Correctly

Nov 29, 2010

I am trying to find a way to have my Entity Framework model in a seperate project within my ASP.NET solution.

Currently I have my DataManager project (which contains my EF model and some classes) and a second project which contains all my web project files.

The problem that I have come across is that I have a database connection string in a App.Config file in my DataManager project and the same connection string in my Web.Config from my web project. I basically have a duplicate connection string.

Is there a way to only use only one connection string in my project (preferably from my web.config)?

My only concern is that when it comes to compiling my project I will not be able to change the connection string in the App.Config contained in my DataManager project.

View 1 Replies

Visual Studio :: One Project In Solution Opens As Website Not Web App?

Feb 24, 2010

this seems to be a problem only on my new PC, not my prior PC or my coworkers PCs. But, as far as I know, I have installed VS2005 the same way, including the VS80-KB915364-X86-ENU.exe and WebApplicationProjectSetup.msi additions.

I have a VS2005 Solution called 'Intranet' made up of several web projects. One of those web projects is also called 'Intranet'. All of the projects should load as Web Application Projects, which they did on my prior PC.

Now, the 'Intranet' project seems to be opening as a Web Site project. The name of the project in the solution now shows as "C:...Intranet" instead of just "Intranet" and is not recognized as being part of the SourceSafe project(no lock icon shows). If I right-click this project, "Build Web Site" is one option.

View 3 Replies

Visual Studio :: Can't Change The Code In Solution (Project)

Oct 14, 2010

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).

View 6 Replies

Visual Studio :: Pass Values Between Different Project In Same Solution?

Jan 21, 2011

I have a solution file with 2 projects inside, one will be handling the presentation portion and the other is for database data retrieval. I was wondering if its possible to pass a value from the presentation.aspx in the "presentation" project to the db.aspx in the "database" project? They are both in the same solution file.

View 8 Replies

C# - Using Web Service In Class Library Which Is Referenced In The Website Project Of Same Solution?

Nov 18, 2010

How to access proxy class of a web service which has been referenced in the website project of a solution within a class library project in the same solution?

I mean no web-service reference/setting is added to the class library and instead it needs to be picked from the web project.

View 1 Replies

Visual Studio :: Convert 2003 Project - Get Solution Is Unavailable?

Sep 13, 2010

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???

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved