Click here to Skip to main content
15,885,874 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is the code for Credit card no. validation in C#? Pin
jschell23-Dec-10 7:05
jschell23-Dec-10 7:05 
GeneralRe: What is the code for Credit card no. validation in C#? Pin
Cnu5555529-Dec-10 17:49
Cnu5555529-Dec-10 17:49 
AnswerRe: What is the code for Credit card no. validation in C#? Pin
DaveyM6923-Dec-10 13:27
professionalDaveyM6923-Dec-10 13:27 
AnswerRe: What is the code for Credit card no. validation in C#? Pin
Dr.Walt Fair, PE23-Dec-10 15:28
professionalDr.Walt Fair, PE23-Dec-10 15:28 
GeneralRe: What is the code for Credit card no. validation in C#? Pin
Cnu5555529-Dec-10 17:41
Cnu5555529-Dec-10 17:41 
AnswerRe: What is the code for Credit card no. validation in C#? Pin
LloydA11126-Dec-10 4:54
LloydA11126-Dec-10 4:54 
AnswerRe: What is the code for Credit card no. validation in C#? Pin
Bernhard Hiller27-Dec-10 23:08
Bernhard Hiller27-Dec-10 23:08 
QuestionEnterprise Library V5 Logging Pin
Ray Cassick22-Dec-10 21:14
Ray Cassick22-Dec-10 21:14 
Ok, I think I know the answer to this but I am looking for some validation/verification here…

I am TRYING to use the latest Enterprise Library build, specifically the Logging functionality, to write out debug logs… I am running into cases where I am ending up with log files being written that have a GUID prepended onto the filename:

trace.log
0ce735a7-8bb1-465c-8340-cee60f6cc0d2trace.log
89e76526-07ea-4154-bc1c-c4caba63de48trace.log

From what I can tell this seems to be because the logging subsystem opens the log file and keeps it open. This means that any other logging statements that try to use that same file get a new file built with this goofy name, and their debug goes there. This seams really odd, but it seems to be what’s happening. In fact if you watch the debug output when you run in the IDE you actually see two exception being thrown as the initial write happens because apparently (I have not yet 100% validated this by reviewing the code myself) they logging writer system tries to grab a handle to a log stream and does not know that it needs to open the file until it catches that exception. Then, once it is open it hangs on to it and does not allow any other source use THAT stream, it opens new ones and logs to there.

What I am trying to achieve seems simple… I want to use different message formats for different areas of the code, but write all the entries to the same file. It seems that unless I use the same formatter layout for all calls to the file, I end up creating a new file handle and writing my entries to a new file instead of writing all to the one I have specified.

Anyone else seen this? Know a way around it?

Yeah, I have heard it recommended that I just write out using MSMQ and then have one single reader grab that data and log it to a file, but that seems really overkill for what SHOULD be a simple multiple-writer, single-reader, type of process here. I can’t believe that the entire logging library is actually suffering from this junk code. It just seems dumb that they can’t internally just handle this multiple writer issue by implementing their own darn queue of messages between the input text stream readers and the output file writer.

AnswerRe: Enterprise Library V5 Logging Pin
dan!sh 22-Dec-10 21:36
professional dan!sh 22-Dec-10 21:36 
GeneralRe: Enterprise Library V5 Logging Pin
Ray Cassick22-Dec-10 21:46
Ray Cassick22-Dec-10 21:46 
GeneralRe: Enterprise Library V5 Logging Pin
dan!sh 22-Dec-10 21:53
professional dan!sh 22-Dec-10 21:53 
GeneralRe: Enterprise Library V5 Logging Pin
Ray Cassick22-Dec-10 22:10
Ray Cassick22-Dec-10 22:10 
QuestionLooking at the remote desktop template, help with automating acknowledgement of the legal banner [modified] Pin
turbosupramk322-Dec-10 8:26
turbosupramk322-Dec-10 8:26 
AnswerRe: Looking at the remote desktop template, help with automating acknowledgement of the legal banner Pin
Richard MacCutchan22-Dec-10 8:59
mveRichard MacCutchan22-Dec-10 8:59 
AnswerRe: Looking at the remote desktop template, help with automating acknowledgement of the legal banner [modified] Pin
RaviRanjanKr22-Dec-10 17:39
professionalRaviRanjanKr22-Dec-10 17:39 
GeneralRe: Looking at the remote desktop template, help with automating acknowledgement of the legal banner Pin
turbosupramk323-Dec-10 0:16
turbosupramk323-Dec-10 0:16 
QuestionHow do I transfer files over a local network? Pin
Megidolaon22-Dec-10 7:12
Megidolaon22-Dec-10 7:12 
AnswerRe: How do I transfer files over a local network? PinPopular
Luc Pattyn22-Dec-10 8:54
sitebuilderLuc Pattyn22-Dec-10 8:54 
GeneralRe: How do I transfer files over a local network? Pin
Megidolaon22-Dec-10 10:12
Megidolaon22-Dec-10 10:12 
GeneralMy vote of 1 Pin
Keith Barrow22-Dec-10 10:33
professionalKeith Barrow22-Dec-10 10:33 
GeneralRe: My vote of 1 Pin
Megidolaon23-Dec-10 7:55
Megidolaon23-Dec-10 7:55 
GeneralRe: My vote of 1 Pin
Keith Barrow23-Dec-10 7:59
professionalKeith Barrow23-Dec-10 7:59 
GeneralRe: How do I transfer files over a local network? Pin
Henry Minute22-Dec-10 10:34
Henry Minute22-Dec-10 10:34 
GeneralRe: How do I transfer files over a local network? Pin
Luc Pattyn22-Dec-10 10:34
sitebuilderLuc Pattyn22-Dec-10 10:34 
GeneralRe: How do I transfer files over a local network? Pin
Keith Barrow22-Dec-10 10:38
professionalKeith Barrow22-Dec-10 10:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.