>Exactly what I was thinking, trying to write and catch an error. But I thought that maybe there is already a class and method if this huge .net framework designed to deal with this issue. If nobody else reply with a technical suggestion I will have to roll up my sleeves <g>.
Yes, I would say there is. This is much cleaner and would avoid other potential problems which may arise if the application would try to write an error on failure which would also fail because of the write privilege. So, doing it with the proper classes would avoid that type of situation.