July 17, 2008
Log4Net with ASP.NET
You can read about it and set it up but it won't work for you and nobody tells you why.
Essentially this is a permissions issue.
You will first need to know that on Windows Server 2003 the user you needto worry about is not 'ASPNET' but 'NETWORK SERVICE'. In Win2k and XP the user is indeed 'ASPNET'.
When you set up the Log4Net as shown in the exmaples on the Log4Net site it will work, the configuration will be correct etc. The problem will be that the entries will not appear in the Event Log.
The reason is that the default Application Name (the 'Source' column in the event viewer) is governed by a key that must be added to the registry.
The NETWORK SERVICE and ASPNET users do not have permission to set this key, so while the log messages are being passed to the Event Log, they are being dropped because there is no match application key in the registry and the users cannot create it.
If your first impulse was to add the NETWORK SERVICE and ASPNET users to the Administrators group then stop right there, don't do it, especially not on a Production server. It is not necessary. Once the application key is set in the registry your permission problems are over.
First thing, you will want to open regedit and navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog
The right click on the Application node and add a new key. The name of this new key is up to you. But for arguments sake lets choose 'BingoBango'.
That part is over with, close your regedit (you did back up the registry before you started changing things didnt you??!)
Now in your log4net configuration file you will want to set up your appender like this:
<appender name="EventLogAppender" type="log4net.Appender.EventLogAppender" >
<param name="ApplicationName" value="BingoBango" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
</layout>
</appender>
And you should see your log entries appearing.
Have fun!
Posted by dottie at 3:06 PM | Comments (0) | TrackBack (0)
January 31, 2008
Signature of WebForm_DoPostBackWithOptions
WebForm_DoPostBackWithOptions(WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit))
..just in case you're wanting to pump in your own event arguments and the like
Posted by dottie at 9:46 AM | Comments (0) | TrackBack (0)
January 12, 2008
Monodevelop 0.18 finally running
yay!
Posted by dottie at 10:51 AM | Comments (0) | TrackBack (0)
January 3, 2008
Monosource
I realised that the versions of mono and monodevelop from the Ubuntu repositories were quite old.
I've forgotten how difficult it is to install from source - dependency hell...
Posted by dottie at 10:25 PM | Comments (0) | TrackBack (0)
January 1, 2008
Mono
No, I haven't gotten the kissing disease.
I'm getting my head around the capabilities of Mono.
I'm hoping that I'll be able to run C#.NET apps on my own Linux server - mainly as it is a lot cheaper that a windows box; and more stable.
I'm liking Mono, and its IDE monodevelop. I can now hack together C#.NET webforms on my Linux laptop, have them running in Apache (well, almost - XSP does the job for the moment...) and not lose touch with my mad .NET skillz - booyah!
There are a few gotchas with the IDE - no intellisense in ASPX pages, no proper support of partial classes - definitely not showstoppers. I could even look at adding those features (not likely, but..) as both mono and monodevelop are open source and I have not looked at the .NET source code.
I working on something to scratch a personal itch at the moment - intelligently filter the far too many RSS feeds I have subscribed to.
I'll post up any problems I find as I go along.
Posted by dottie at 10:30 PM | Comments (0) | TrackBack (0)
September 7, 2007
WINE just got tastier!
I run Adromedia Macrodobe Adobe Fireworks on Linux using the compatibility layer application WINE (Wine Is Not an Emulator - apparently).
Well, life just got a little bit better. You can now apply a filter and REMOVE it if you don't like it!
What do you mean?
This is a big thing!
....for me (hey! I don't get out much!)
Posted by dottie at 1:45 AM | Comments (0) | TrackBack (0)
July 27, 2007
Solve your samba problems in Feisty Fawn
sudo vim /etc/samba/smb.conf
search for a line that has 'msdfs proxy' and comment it out
sudo /etc/init.d/samba restart
you're welcome
Posted by dottie at 7:22 PM | Comments (0) | TrackBack (0)
July 17, 2007
solo SCRUM scrap?
It seems Microsoft has developed a tool to allow you to implement SCRUM. Is that my little project finished?
possibly... I have to give it a gander yet....
The little guy (well...) gets crushed again!
Posted by dottie at 8:17 PM | Comments (0) | TrackBack (0)
July 15, 2007
What are you doing for the next 6 months?
Justice Grey has publicly committed to reading 27 developer books in the next 6 months
It's a big undertaking and the question has been asked - when will he get the time to do some programming?
I guess he has some funding!
Anyway, at first glance, the books I would like to get from his list are:
- Beyond Code - Setty
- Refactoring: Improving the Design of Existing Code - Fowler
- Pragmatic Programmer - Andrew Hunt
I would have to research the rest of the list a bit but I think definitely an algorithm book, more patterns books and more UML will be in my near-future reading list.
It's strange that once you start learning about all this stuff you actually want to learn more - since I started grokking OO and patterns my view of programming has changed immensely. I am actually looking forward to the future and previously hairy application analysis have been simplified.
Looking forward to the next 6 months - the first three are being taken up by my first professional coding role and the following three - who knows!
Looking forward to the positive uncertainty.
Comments
Justice~!
I basically spend my core 8 hours on work and then another 2 hrs per day reading. More on weekends, which is how I get that done (which unfortunately hasn't left a lot of time for blogging or replying to blog posts...maybe I should've thought about trying to improve my time management over 6 months ;) )
Dottie
Thanks for that Justice, I have the advantage of about 40 minutes of commuting on public transport which I am using to work my way through my MCTS training kits (reading first - coding later).
Also, now that I have fully (almost) transitioned from freelance web development to contract development (there is a difference!) I won't have to work crazy hours to accommodate my clients crazy scheduling. That means I'll be doing an hour of reading in the evening too.
Do you read a lot of blogs too? I don't tend to count them as 'study' but I do find that I learn a great deal from them (for instance your blog posts on explaining programming to your granny - make me smile!)
p.s.: Justice Grey visited my site! w00t! AND on my birthday :)
Posted by dottie at 2:37 PM | Comments (2) | TrackBack (0)
July 14, 2007
TortoiseSVN for Linux
Please!
Someone write a decent SVN client for Linux!
Posted by dottie at 10:08 PM | Comments (0) | TrackBack (0)
