954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

ASP.NET 2.0 for real Sites

I’ve been developing ASP.NET 1.1 applications for quite long. About 4 month ago I switched to new .Net 2.0 platform. And here are few stuff that really confusing me about it.
(I use MS VS 2005 Standard for development)

#1
what’s the big A in the VS2005’s way of site’s publishing/compilcation. It’s when 5-10 dlls a being created and all <% Page %> tags are rewritten to be referenced to proper dll (one of). Each publication time names of dlls are being changed – some hash is added.

So when I need to do small fix in source code, I nead to recompile whole project and upload ALL the files (they referenced to new dlls)

What’s so cool in it? I ‘ve been told that there’s a way to modify such a sites easily – but I’m not aware of that

#2
How to write modules that are changed often on site.

Real (my) situation:
I have forum written on asp.net 2.0. it’s placed on already 5 web-sites. They differs only with design (aspx, ascx) – let’s say footer and header. I need to do some functionality change in the code.
So update of such a thing becomes really not-trivial.
If I have source code in one place – I need to compile that, than copy to different folders and look what should I change in aspx files
If I have source code special for each forum (More logical) I need to do N times that code change

Wow, does that sound weird?
In the same time, on VS2003 I needed to just copy new .dll file


So, how should I do that, and how are you doing with such a things?

EFEXConsulting
Light Poster
27 posts since Aug 2006
Reputation Points: 10
Solved Threads: 2
 
#1 what’s the big A in the VS2005’s way of site’s publishing/compilcation. It’s when 5-10 dlls a being created and all <% Page %> tags are rewritten to be referenced to proper dll (one of). Each publication time names of dlls are being changed – some hash is added. So when I need to do small fix in source code, I nead to recompile whole project and upload ALL the files (they referenced to new dlls) What’s so cool in it? I ‘ve been told that there’s a way to modify such a sites easily – but I’m not aware of that

If you do not want vs to rename each time your dll's when publishing check option "Use fixed naming and single page assemblies".
#2
How to write modules that are changed often on site.

Real (my) situation:
I have forum written on asp.net 2.0. it’s placed on already 5 web-sites. They differs only with design (aspx, ascx) – let’s say footer and header. I need to do some functionality change in the code.
So update of such a thing becomes really not-trivial.
If I have source code in one place – I need to compile that, than copy to different folders and look what should I change in aspx files
If I have source code special for each forum (More logical) I need to do N times that code change

Wow, does that sound weird?
In the same time, on VS2003 I needed to just copy new .dll file


So, how should I do that, and how are you doing with such a things?

Here you can also copy just one file App_Code.dll. Publish your site to some local folder. Copy required file and paste it in your site. :)

ManicCW
Junior Poster in Training
95 posts since Nov 2005
Reputation Points: 13
Solved Threads: 11
 

hi there,
i've found another great workarounds that are working already for my projects (and save me lots of time)

Web Application Project Add, it's much more like vs 2003
http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx

MS devoloped another Add-in for VS2005 to enchace the deployment of Website Projects. It will give you more options.

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

enjoy

EFEXConsulting
Light Poster
27 posts since Aug 2006
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You