473,387 Members | 1,504 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,387 software developers and data experts.

AS.PNET 2.0, runtime modules Best Practices

Hi there,
we are rewriting our .NET 1.1 web application with VS. 2005 and .NET 2.0, it
takes big work but we believe there is a point to do that... at least we
hope!

we believe that:

1) the coding and debugging support of VS 2005 is much better and useful
than in VS 2003, so, better debug, easier life for the developers :-)

2) is it true that just using the 2.0 runtime instead of the 1.1 we gain
about 20% of speed performance more? (I've heard something like this in the
past in some forums).

my main concern is about our custom modules, let's call them "plug in":

we have the main application (in .NET 1.1) that uses some pages and the bin
directory for assemblies... we have some modules that are just installed
putting the .dll in the bin folder then some .aspx and .ascx objects in
other web application folders... there is an installer that load the
assemblies reading some module.config xml files... that's it.

Now, in .NET 2.0, I've seen that the web site (which was the web application
project in VS 2003), contains ALL the objects in the folder tree so i cannot
put some ascx and aspx in a subfolder and let only the module's assembly to
use them... because the web site will try to compile and use them at debug
and compile time...

which one is the best way to make plugin and runtime modules in VS 2005 .NET
2.0 ASPNET 2.0 web sites ?

Thanks a lot in advantage, regards Davide.

Jan 30 '07 #1
2 1454
If you read the material, it sounds like ASP.NET 2.0 is a "complete code"
release methodology. Put your code in App_Code, put your pages and controls
with their code behind and run.

You can do this, but I find it unwise on so many levels. You can add
libraries to a site and you can place your modules in the same way as 1.1.
Depending on how you accomplish this, you might have a few code tweaks, but
once you figure it out for one, you will be fine across the board. And, if
you download the optional web applications projects and web deployment
projects, you can work 2.0 very much like 1.1, including single DLL compile
of site:

Web Application Projects:
http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx

Web Deployment Projects
http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx

To your questions

1) Debugging, unit testing, code metrics are all part of 2.0. There are also
additional controls, esp. for ASP.NET, so you will gain some speed, after a
short learning curve. If you adopt testing and metrics, you will find the
quality of your code also improves.
2) I have found simply placing a 1.1 assembly on a 2.0 site improves
performance. If it is recompiled in 2.0, there is a slightly higher bump,
esp. if you refactor the code with the new bits in 2.0 (generics comes to
mind).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

********************************************
Think outside the box!
********************************************
"Ing. Davide Piras" <da****@naxosoftware.comwrote in message
news:e3**************@TK2MSFTNGP02.phx.gbl...
Hi there,
we are rewriting our .NET 1.1 web application with VS. 2005 and .NET 2.0,
it takes big work but we believe there is a point to do that... at least
we hope!

we believe that:

1) the coding and debugging support of VS 2005 is much better and useful
than in VS 2003, so, better debug, easier life for the developers :-)

2) is it true that just using the 2.0 runtime instead of the 1.1 we gain
about 20% of speed performance more? (I've heard something like this in
the past in some forums).

my main concern is about our custom modules, let's call them "plug in":

we have the main application (in .NET 1.1) that uses some pages and the
bin directory for assemblies... we have some modules that are just
installed putting the .dll in the bin folder then some .aspx and .ascx
objects in other web application folders... there is an installer that
load the assemblies reading some module.config xml files... that's it.

Now, in .NET 2.0, I've seen that the web site (which was the web
application project in VS 2003), contains ALL the objects in the folder
tree so i cannot put some ascx and aspx in a subfolder and let only the
module's assembly to use them... because the web site will try to compile
and use them at debug and compile time...

which one is the best way to make plugin and runtime modules in VS 2005
.NET 2.0 ASPNET 2.0 web sites ?

Thanks a lot in advantage, regards Davide.
Jan 30 '07 #2
Hello Cowboy :-)

I was reading here: http://forums.asp.net/thread/1332884.aspx
there are people that give good points to avoid using modules... so actually
now I'm a little lost...

Look, I heard about "Web Application Projects" and "Web Deployment Projects"
but since when I started rewriting our web application in .NET 2, and now I
should call it "Web Site" since there is not anymore any web app project,
I'm making efforts to rewrite it clean and rebuilding, refactoring
everything (more or less)... so I really don't want to downgrade the design
to .NET 1.1... sincerely I've not yet studied the key points and benefits of
single file assemblies brought us from .NET 2.0, but I want to take
advantage completely of VS 2005 and .NET 2.0 so I'd to figure out how to
rewrite global.asax, assembly info and some other points in the new
environment... but now that this is done, my team is happy and excited to
work in the new scenario....

so we have actually to figure out if split the project (like it was in .NET
1.1) main web site and some class libraries with aspx and ascx too or if
keep all the as*x in the main web site and abstract modules in class
libraries so we can decide site by site to install (or activate) some
modules or not...
1) Debugging, unit testing, code metrics are all part of 2.0. There are
also additional controls, esp. for ASP.NET, so you will gain some speed,
after a short learning curve. If you adopt testing and metrics, you will
find the quality of your code also improves.
I tried to run my web app in 2.0 few times but there were bad errors and
nothing was working... and you cannot debug in Vs 2003 if it runs under .NET
2.0...
2) I have found simply placing a 1.1 assembly on a 2.0 site improves
performance. If it is recompiled in 2.0, there is a slightly higher bump,
esp. if you refactor the code with the new bits in 2.0 (generics comes to
mind).
Actually we are doing this... and within generics the design is much
better... now you tell me the performance too, wow! :-)

Davide.
Jan 30 '07 #3

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

Similar topics

4
by: Chuck Ritzke | last post by:
I keep asking myself this question as I write class modules. What's the best/smartest/most efficient way to send a large object back and forth to a class module? For example, say I have a data...
2
by: byrocat | last post by:
I'm chasing after a documetn that was available on one of the Microsoft websites that was titled somethign like "MS SQL Server Best Practices" and detailed a nyumber of best practices about...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
7
by: Lauren Quantrell | last post by:
At running the risk of asking how big is too big... Is there a rule of thumb or a best practice that says I may have too many modules? I currently have a Access2K app with about 30 code modules,...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
0
by: Kurt | last post by:
Hi Brent, I don't know if this is best practices per se`, but it works. The following generates a new button control each time menu item 1 is clicked and assigns an event handler to it. ...
1
by: _thedebugger | last post by:
Dear Friends, We are developing one wbesite in visual studio 2005 and sql server 2000. now my question is I want to seperate some modules on the website. Like 1. there will be few...
8
by: Flavio | last post by:
Hi, Nowadays the addition of functionality to programs by means of plugins is very frequent. I want to know the opinions of experienced Python developers about the best practices when it...
3
by: Bill Fuller | last post by:
Here is the scenario. We will be writing a web application that will need to sometimes properly handle sensitive data (salary, ssn, profit, etc.) using roles. This data will be restricted at a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.