Click here to Skip to main content
15,888,315 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Dave Kreskowiak18-Mar-15 9:09
mveDave Kreskowiak18-Mar-15 9:09 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Eddy Vluggen18-Mar-15 8:26
professionalEddy Vluggen18-Mar-15 8:26 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Member 1153636718-Mar-15 8:45
Member 1153636718-Mar-15 8:45 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Richard Deeming18-Mar-15 10:04
mveRichard Deeming18-Mar-15 10:04 
AnswerRe: aspx file: Operator '&' is not defined for string Pin
Member 1153636718-Mar-15 10:21
Member 1153636718-Mar-15 10:21 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
F-ES Sitecore18-Mar-15 10:22
professionalF-ES Sitecore18-Mar-15 10:22 
GeneralRe: aspx file: Operator '&' is not defined for string Pin
Brilliant Bastard18-Mar-15 19:31
Brilliant Bastard18-Mar-15 19:31 
QuestionLooking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Brady Kelly14-Mar-15 1:10
Brady Kelly14-Mar-15 1:10 
I have a scheduling service, which is a little WCF library hosted in a Windows Service, for the robustness of restarting on failure, and unattended startup. I have a small WPF GUI for both these services, to stop and start the host, and to force processing in the WCF, that normally only occurs every hour or so (Polling Timer #1), then to monitor a DB table I log events to. So, I have two processes running here, The Host (Windows Service), and the GUI, where the GUI is only supposed to run when needed, and the host runs constantly to ensure that the WCF is always able to do its hourly processing. Both processes are constantly using the event logging table in the DB.

I have had a wonderful learning experience (to keep things polite) in ensuring the GUI is always up to date, and responsive. This means the enabling and disabling of commands based on the service status, e.g. the "Start" button is enable based on whether the Windows service is running or not; then a TextBlock that shows the current status of the WCF, e.g. "Idle", "Polling", "Processing". Also, in the central/default view of the GUI, is the DataGrid that displays the contents the logging table (Polling Time #2), and I have a few methods where I wait on a Task that may time out (using a kludgy little util method, not async/await). After a hard few days, I have managed to slightly clear up what was an insane spaghetti mess of Timer, Task, and event threads and deadlocks.

I'm now trying to gather lots of advice, in general, from those of have gone before me with this pattern of requirements. Tips could include: How to avoid using timers; how to manage a Windows Service from you GUI and maintain sanity; how to absolutely minimise timers (apparently .NET, even at 4.5.1, simply erases exceptions that are thrown from within Timer event threads); how to survive exceptions that are thrown inside async void methods (apparently these burn the house down).

Then anything else you might recommend, besides barrels of alcohol.

PS: Oh yes, I have Polling Timer #3 as well, to monitor the status of the Host, to disable the GUI trying to communicate with it.
No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde


modified 15-Mar-15 3:37am.

AnswerRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Eddy Vluggen14-Mar-15 5:13
professionalEddy Vluggen14-Mar-15 5:13 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Brady Kelly14-Mar-15 5:46
Brady Kelly14-Mar-15 5:46 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Eddy Vluggen16-Mar-15 9:14
professionalEddy Vluggen16-Mar-15 9:14 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Brady Kelly16-Mar-15 9:33
Brady Kelly16-Mar-15 9:33 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Eddy Vluggen16-Mar-15 9:57
professionalEddy Vluggen16-Mar-15 9:57 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Brady Kelly16-Mar-15 10:14
Brady Kelly16-Mar-15 10:14 
GeneralRe: Looking for guidance in building a responsive WPF GUI for a Windows Service. Pin
Eddy Vluggen16-Mar-15 10:33
professionalEddy Vluggen16-Mar-15 10:33 
QuestionLearn Android vs ASP.NET MVC: which needs more commitment? Pin
Nika Dev1010-Mar-15 9:29
Nika Dev1010-Mar-15 9:29 
AnswerRe: Learn Android vs ASP.NET MVC: which needs more commitment? Pin
Dave Kreskowiak10-Mar-15 11:08
mveDave Kreskowiak10-Mar-15 11:08 
GeneralRe: Learn Android vs ASP.NET MVC: which needs more commitment? Pin
Nika Dev1010-Mar-15 11:46
Nika Dev1010-Mar-15 11:46 
GeneralRe: Learn Android vs ASP.NET MVC: which needs more commitment? Pin
Dave Kreskowiak10-Mar-15 13:46
mveDave Kreskowiak10-Mar-15 13:46 
GeneralRe: Learn Android vs ASP.NET MVC: which needs more commitment? Pin
Nika Dev1010-Mar-15 22:09
Nika Dev1010-Mar-15 22:09 
AnswerRe: Learn Android vs ASP.NET MVC: which needs more commitment? Pin
Gerry Schmitz10-Mar-15 22:54
mveGerry Schmitz10-Mar-15 22:54 
GeneralRe: Learn Android vs ASP.NET MVC: which needs more commitment? Pin
Brady Kelly25-Mar-15 2:17
Brady Kelly25-Mar-15 2:17 
AnswerRe: Learn Android vs ASP.NET MVC: which needs more commitment? Pin
Dominic Burford18-Mar-15 3:17
professionalDominic Burford18-Mar-15 3:17 
Questionconverting c# code into matlab Pin
Member 114388619-Mar-15 1:11
Member 114388619-Mar-15 1:11 
AnswerRe: converting c# code into matlab Pin
Eddy Vluggen9-Mar-15 1:25
professionalEddy Vluggen9-Mar-15 1:25 

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.