Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  Compile DotNetNuke faster after minor code changes
Previous Previous
 
Next Next
New Post 6/14/2008 5:51 AM
Resolved
User is offline hdany
9 posts
10th Ranked


Compile DotNetNuke faster after minor code changes 

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 10:01 AM
User is offline Hooligannes
1599 posts
www.nesinteractivos.com
5th Ranked






Re: Compile DotNetNuke faster after minor code changes 

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?
The Dúnadan Raptor
Check My Blog for DNN advice and more
 
New Post 6/14/2008 10:29 AM
User is offline hdany
9 posts
10th Ranked


Re: Compile DotNetNuke faster after minor code changes 

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 12:15 PM
User is offline John Mitchell
3868 posts
www.snapsis.com
4th Ranked




Re: Compile DotNetNuke faster after minor code changes 

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.


 
New Post 6/14/2008 1:42 PM
User is offline hdany
9 posts
10th Ranked


Re: Compile DotNetNuke faster after minor code changes 

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 Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  Compile DotNetNuke faster after minor code changes
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace
ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP