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  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Server errors installing and removing module definitions
Previous Previous
 
Next Next
New Post 4/25/2008 3:21 PM
Resolved
User is offline Andrew Galbraith Ryer
55 posts
10th Ranked




Server errors installing and removing module definitions 

Hello,

I'm hoping someone's seen this because I'm at wits end. I am running DNN 4.8.2 with SQL Server 2005. Whenever I try to install a module, I get the following server error:

Request timed out.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Request timed out.]

 

 Normally when if I saw this error, I would go looking at the executionTimeout attribute of the httpRuntime element in my web.config file. The problem is, it's already set to a longer time than it takes for the page to time out. I've created a test ASPX page that outputs Server.ScriptTimeout and even outputted it to the module definitions list page, just to make sure it was being set properly. It was. There is no reason I can see why this would happen. But no matter what, if I try to install a module, this is what I get.

It happens whether I install the module from the list of available modules (on the Module Definitions screen) or if I upload a PA file.

Does anyone have any ideas?


-Drew
That's AC current for ya!
 
New Post 4/30/2008 1:19 PM
User is offline Andrew Galbraith Ryer
55 posts
10th Ranked




Re: Server errors installing and removing module definitions 

Okay,

Further investigation reveals that I am getting this error because the application is trying to restart before the module install process is complete. One of the easiest ways for me to reproduce this is to try installing the DNN Store module. The DNN has several folder elements for the different modules that make up the Store. The first folder element is the Store Admin module, and it includes all the DLLs.

What seems to be hapenning is that when the DLLs get copied to the Bin folder, the application restarts. Running threads are aborted, along with the thread doing the install. This leaves the module partially installed, and tosses the highly informative (not!) "Request timed out" message back to the user. To confirm my theory, I rearranged the folders in the DNN file, so that the DLLs are the last thing to get installed. When I did this, suddenly everything installed properly.

Since this is not happening to everyone, I expect I have something configured wrong somewhere. I just can't figure out where. I've tried increasing the "Shutdown time limit" on the application pool. I've also tried adding the "delayNotificationTimeout" attribute to the httpRuntime element. Neither of these had any effect. Is there some configuration item I'm missing somewhere?


-Drew
That's AC current for ya!
 
New Post 5/8/2008 1:08 PM
User is offline Andrew Galbraith Ryer
55 posts
10th Ranked




Re: Server errors installing and removing module definitions 

The attribute I needed...

is the shutdownTimeout attribute of the httpRuntime element. It controls how long a thread can run when an application shutdown has been triggered. This is exactly what I want, as it gives the install thread the extra time it needs to complete its intsall. Here is my new httpRuntime element:

  <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192" shutdownTimeout="300" />

I finally wrote a standalone ASP.NET page would simulate the types of updates so I could get a handle on the timing and effects of configuration changes.

A couple tidbits:

  • For the benefit of searches, let me note that the exception I saw in the logs was not what was on the error page. It was:
    ThreadAbortException: Thread was being aborted While upgrading
    There are a lot of forum posts about this exception, and I think it all comes back to the shutdownTimeout needing to be increased.
  • I fruitlessly spent a lot of time messing with the waitChangeNotification and maxWaitChangeNotification attributes. As far as I can tell, these do not apply to assembly updates - only to file updates.
  • As noted in my previous reply, updates to the application pool shutdown timeout didn't do it. Ditto the shutdownTimeout attribute of processModel (in machine.config). Neither of these work. It had to be the one in httpRuntime

I am a little surprised I didn't find this fix elsewhere in the forums or blogs. I am still a little nervous that this isn't it, but it really seems to be working. We shall see.

 

 


-Drew
That's AC current for ya!
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Server errors installing and removing module definitions
 


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.

 


Data Springs Inc. - Module Development
Data Springs is a leader in the DNN community offering high quality modules, custom module development, enhancements to the DNN core product and overall DNN support.
www.datasprings.com
XCESS expertise center b.v.
Custom made modules and complete solutions for the DNN framework. Maatwerk modules en complete webtoepassingen gebaseerd op het DNN framework.
www.xcess.nl
EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com

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