Discussion:
How to separate an ASP.NET application
Claude Petit
2008-01-11 04:07:30 UTC
Permalink
Hi, I want to know how I can divide code for different client setup. The
problem is I have a big application and I need to make packages to respond
to client neeeds. By exemple, a client might just need something (some
functionalities in an ASP.NET page), and it doesn't require something else
(some other functionalities in an ASP.NET page). This way, I could invoice
them for only what they need. I just want a way on how to make that. Tanks.

Claude Petit

===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Efran Cobisi, cobisi.com
2008-01-11 08:34:09 UTC
Permalink
Hi Claude,

What about coding each package logic into its own assembly?
You could then load the types contained in these assemblies using some
sort of a plugin architecture [1]; this way you could define the
packages (or plugins) you need directly into, for example, your
web.config file.

HTH

[1] http://www.google.com/search?q=.net+plugin+architecture

--
Efran Cobisi
http://www.cobisi.com
Post by Claude Petit
Hi, I want to know how I can divide code for different client setup. The
problem is I have a big application and I need to make packages to respond
to client neeeds. By exemple, a client might just need something (some
functionalities in an ASP.NET page), and it doesn't require something else
(some other functionalities in an ASP.NET page). This way, I could invoice
them for only what they need. I just want a way on how to make that. Tanks.
Claude Petit
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Robert Taylor
2008-01-11 14:43:11 UTC
Permalink
Now there's a big question. Read up on N-Tier architecture
to start out. You will have to develop a core product and then
open the ability to add other components. When it comes to
business applications, every business likes to do things a little
different and therefore this is where you have to be the most
flexible.

Here are some more things to think about:

1. Is everyone using the same database?
2. Is everyone using the same code base when running the app?
3. If there are different code bases, how do you handle core product updates?

Good Luck,

Robert Taylor
Sr. Web/Systems Developer
Robert Half Technology

--------------------------------------------------
From: "Claude Petit" <***@WEBMAIL.US>
Sent: Thursday, January 10, 2008 10:07 PM
To: <DOTNET-***@DISCUSS.DEVELOP.COM>
Subject: [DOTNET-WEB] How to separate an ASP.NET application
Post by Claude Petit
Hi, I want to know how I can divide code for different client setup. The
problem is I have a big application and I need to make packages to respond
to client neeeds. By exemple, a client might just need something (some
functionalities in an ASP.NET page), and it doesn't require something else
(some other functionalities in an ASP.NET page). This way, I could invoice
them for only what they need. I just want a way on how to make that. Tanks.
Claude Petit
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Mark Aurit
2008-01-11 14:59:41 UTC
Permalink
My solutions generally consist of multiple projects - a web app with
only the functionality (pages, classes, etc) required to place its logic
on the web, and other projects that might consist of console apps,
winform apps, etc. And a project of classes that contains statics,
enums, business objects, etc. The various apps all utilize the project
of classes.

solution
web app project
console app project
winform project
shared classes project
Post by Claude Petit
Hi, I want to know how I can divide code for different client setup. The
problem is I have a big application and I need to make packages to respond
to client neeeds. By exemple, a client might just need something (some
functionalities in an ASP.NET page), and it doesn't require something else
(some other functionalities in an ASP.NET page). This way, I could invoice
them for only what they need. I just want a way on how to make that. Tanks.
Claude Petit
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Mark Aurit
2008-01-15 21:36:31 UTC
Permalink
I have a masterpage named MasterpageController with a menu. In the
codebehind I have a method SetMasterMenu(<some parms>) to display the
appropriate menu items.
The content page, which has a MasterType directive, executes the method
using "this.Master.SetMasterMenu(<some parms>)". Runs fine for maybe 5-10
"start with/without debugging"'s, while I am in development mode in
vs.net 2005, and then I'll start getting an "Unable to cast object of type
'ASP.masterpagecontroller_master' to type
'ASP.masterpagecontroller_master'" when the content page attempts to
execute the method. I have to restart IIS
to get the app to run correctly .. then a few starts later I get the
exception.
I havent seen this behavior when I publish the app onto a staging
server, just on my development laptop.
Any ideas on how to fix this? Does it only happen while in development,
not in a published site?
Thanks, Mark

===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Mark Aurit
2008-01-15 21:57:07 UTC
Permalink
I was pointed to the thread on this forums.asp.net, 954194
I had just dragged an .ascx onto a page in the app and this started
happening.
Post by Mark Aurit
I have a masterpage named MasterpageController with a menu. In the
codebehind I have a method SetMasterMenu(<some parms>) to display the
appropriate menu items.
The content page, which has a MasterType directive, executes the method
using "this.Master.SetMasterMenu(<some parms>)". Runs fine for maybe 5-10
"start with/without debugging"'s, while I am in development mode in
vs.net 2005, and then I'll start getting an "Unable to cast object of type
'ASP.masterpagecontroller_master' to type
'ASP.masterpagecontroller_master'" when the content page attempts to
execute the method. I have to restart IIS
to get the app to run correctly .. then a few starts later I get the
exception.
I havent seen this behavior when I publish the app onto a staging
server, just on my development laptop.
Any ideas on how to fix this? Does it only happen while in development,
not in a published site?
Thanks, Mark
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Claude Petit
2008-01-22 00:47:20 UTC
Permalink
Thanks all. I'll try with plugins.

===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Continue reading on narkive:
Loading...