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. 2 1473
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****@naxosof tware.comwrote in message
news:e3******** ******@TK2MSFTN GP02.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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 access module that creates a large
disconnected dataset from a database. I want to pass that dataset back to
the calling program. And then perhaps I want to send that dataset to another
class module.
At first it seems that the "object oriented"...
|
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 securing the server.
Included in this was revoking public access to the system table
objects.
Can someone post the URL where I can pick this up, or drop me a note on
contacting them for a copy of the document?
|
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 code
was littered with document.all and eval, for example, and I wanted to create
a practical list of best practices that they could easily put to use.
The above URL is version 1.0 (draft) that resulted. IMO, it is not a
replacement for the FAQ,...
|
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, plus of course the modules associated with the forms
themselves.
My practice has been to create a seperate module to handle specific
groupings of code, for example, a seperate module to handle clipboard
actions, window sizing actions, etc.
|
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 somewhere that each folder under the "web site" is compiled in
separate assembly. I however, did not find that the "web site" creation in
vs.net 2005 created any AssemblyInfo.cs file.
| |
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. Each button uses the same default event handler.
In this case, when a button is clicked I simply display
|
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 sections, like general listing of winners and users
and other products.
2. Game Play Panel, Where user will use their username and password and
credit card details and play the game.
|
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 comes to developing a plugin system for a
Python package.
Should plugins be modules in a separate package?
|
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 macro level (for example, no access
to accounting modules unless authorized) and a more granular level (no
visibility, read-only, and read-update to certain fields, such as personal
information, depending on role).
Question: Is there a good source...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |