Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Compile DotNetNuke faster after minor code changesCompile DotNetNuke faster after minor code changes
Previous
 
Next
New Post
6/14/2008 7:51 AM
 

Hello,

I am currently working on a dotnetnuke project with many ascx files.
Can anyone help me with an advice on how to compile my website faster ?

For example , if I edit the codebehind file in one of my user controls , I rebuild the project in Visual Studio 2008 and then hit the refresh button in my web browser , it takes an average of 40 - 50 seconds to render the page. Is there anyway to recompile only the user control I made the minor changes at and not the whole project ?
I don't even know if this is why it takes so long to re-render the page after rebuild. I am using DotNetNuke v 4.8. My PC is an AMD XP 1800+ CPU with 1.5 GB RAM.
I am grateful for any advice to get a more decent loading time. Thanks !

 
New Post
6/14/2008 12:01 PM
 

Use WAP to get independently compiled modules. Michael Washington has a tutorial about using this approach.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
6/14/2008 12:29 PM
 

Thanks for your answer , but I haven't found the tutorial you were talking about. I did come across on some tutorials posted by Michael Washington , but they are about creating modules and using Linq. This does not help me.

I didn't  understand how to use Web Application Project since it is already integrated in VS 2005 SP 1 and it is a standard feature in Visual Studio 2008 which I am using.

Can you please be more specific ? or post a link to the tutorial you are talking about ?

I would have expected something like a setting in web.config or caching , somehow , in order to only compile the codebehind file I modified instead of the whole project all over again.

 

 
New Post
6/14/2008 2:15 PM
 

If you only change a user control's code behind file you do not need to recompile the whole solution.  Instead of pressing F5, right-click on the default page and open it in a browser.

Then if you want to debug you can go to the Debug menu and use attach to process to attach the debugger to the asp.net worker process.

You can also go to Build > Configuration on the main menu and turn off the compile for all the projects.
Then if you ever change a specific project you can right-click on it in the solution explorer and choose to build just that one.

Even doing all this you will still notice a little delay while the website does it's runtime compile after changing the code-behind, but it should be much faster.


DotNetNuke Modules from Snapsis.com
 
New Post
6/14/2008 3:42 PM
 

I know you guys are trying to help , but I tried your suggestions and still no speed improvement.

I mean , in my solution I have 5 projects located each one in a folder in DesktopModules
Each projects consists only of  VB and C# classes and user controls.
There is only  Default.aspx file in the root of my DNN install folder.

Even if I uncheck in Build -> Configuration Manager the other 4 project that I am not currently working on , there is no speed improvement when I reload the page in my browser after some codebehing change in the project I am working at.
It's not Visual Studio that takes a long time to compile , actually it is pretty quick even when building the entire solution with all my 5 projects.

The problem is  when i reload the page in my browser , because it takes about 40-50 seconds to render the page.
I've tried your first suggestion , not to rebuild the project after modifying the code behind file and only to re-open the page in my browser , but doing so , my code does not get updated. I still see the same result that I saw before modifying the code.

If you have any other ideas , I'm glad to hear them. Thanks for your answers !

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Compile DotNetNuke faster after minor code changesCompile DotNetNuke faster after minor code changes


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out