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 CommunityCommunity Membe...Community Membe...KeepAlive module without external componentKeepAlive module without external component
Previous
 
Next
New Post
5/21/2007 7:35 AM
 

This error occurs under partial trust when a required resource is not accessible. If you are on a shared hosting account, the default is probably "Medium Trust" which is why you are seeing this error. BTW, most hosters don't like KeepAlive solutions as they consume server resources that are not being utilized.

Nik

 

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
5/21/2007 8:16 AM
 

Hi Nik

Thanks for the info. I suspected as much. It's a shame as it sounds like a good idea.

Re: What ISP's like.  Yes - if only ISPs liked what coders and designers liked  . . 

Thanks

Ian


Mutate and Survive
 
New Post
5/21/2007 8:50 AM
 

If you really want to use a KeepAlive type solution, IMO it's better to use an external service that also does double-duty as a monitoring and alert service. I use Alertra (http://www.alertra.com). It ensures my sites are up and running by pinging them from multiple locations and sends an SMS and email when a site is down.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
5/21/2007 9:22 AM
 

Hi, that was indeed an oversight, since I had used

Dim

config As System.Configuration.Configuration = WebConfigurationManager.OpenWebConfiguration("~/")

which is not allowed in medium trust. Interestingly enough, DotNetNuke sees no problems updating the web.config, so I used the same XML based logic to provide an update. I've tested it successfully in medium trust environment at my place.

I guess that so long as DNN needs edit permission on the Web.config file, hosters will have to do with keepalive. At least this solution should be quiet enough no to bring to much attention (as compared to heavy pinging the site).

BTW, if by any chance you get physical access to your web.config file, the only code that the module form does is adding the following node in the HttpModules section, so you could very well do that yourself:

<

add name="Aricie.DNNPaceMaker" type="Aricie.DNN.DNNPaceMaker.Business.PaceMaker" />


Jesse
CTO - Aricie
 
New Post
5/21/2007 9:32 AM
 

[QUOTE]Nik Kalyani wrote

If you really want to use a KeepAlive type solution, IMO it's better to use an external service that also does double-duty as a monitoring and m a bit disapointed noone answered my initial thread in the platinum benefactor forum.

I agree an alert service can add some stuff there, but the code to keep the site alive by itself is really nothing, and it works really well.


Jesse
CTO - Aricie
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...KeepAlive module without external componentKeepAlive module without external component


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