Application On start not firing with release build in global.asax

Thursday, August 23rd, 2007

This was an odd problem. When I do a build release of the solution and deploy it to the test or live server running Windows Server 2003 64bit(ahhrggg) the Application_Start method was never raised! It did though when running the release build locally on Win XP Pro. This is a bugger as all my logging is set up at this point along with a couple of timers etc.

After a bit of Googling I found that many people had the same problem. I found one possible solution which was to change the method name that is raised:

Application_Start method to Application_OnStart

This still did not fix it for me.

I found that uploading the PrecompiledApp.config in the root along with this change worked. I did have to actually restart IIS rather than just save the web.config but hay ho sometimes you’ve got to do what you’ve got to do!

It is also good to note that it is important to upload the other little files found in the bin created during a release build such as App_global.asax.compiled.

IIS Password Restriction

Tuesday, August 21st, 2007

http://www.troxo.com/downloads/downloadcenter/?action=step2&rfd=1&download=1

Creating Lucene search queries

Sunday, August 19th, 2007

Useful referance:

http://lucene.apache.org/java/docs/queryparsersyntax.html

c# and timers

Thursday, August 16th, 2007

The elapsed function has to be a delegate that conforms to an ElapseEventHandler

System.Timers

timer = new Timer(1000 * 60 * 15);

timer.AutoReset = true;

timer.Elapsed += functionCall;

timer.Start();

console example:

using System;
using System.Collections.Generic;
using System.Text;
using System.Timers;

namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
Timer timer = new Timer(10000);
timer.AutoReset = true;
timer.Elapsed += printHello;
timer.Start();

Timer timer2 = new Timer(1000);
timer2.AutoReset = true;
timer2.Elapsed += printGoodbye;
timer2.Start();

Console.ReadLine();
}
public static void printHello(Object sender, ElapsedEventArgs e)
{
Console.WriteLine(”hello: ” + DateTime.Now);
}

public static void printGoodbye(Object sender, ElapsedEventArgs e)
{
Console.WriteLine(”BHYE: ” + e.SignalTime.ToString());
}
}
}

Nice for inspriration

Thursday, August 16th, 2007

http://www.webdesignerwall.com/trends/33-artistic-sites/

Another Light box - thick box

Thursday, August 16th, 2007

http://jquery.com/demo/thickbox/

Usful tools IP lookups etc

Friday, August 10th, 2007

http://www.iptools.com/

IM

Friday, August 10th, 2007

http://www.pidgin.im/pidgin/download/

SEO

Friday, August 10th, 2007

http://searchengineoptimisation.yourspaced.com/2007/03/26/101-tips-to-improve-your-web-presence/

CSS

Friday, August 10th, 2007

http://csseasy.com/