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

.NET (Core and Framework)

 
GeneralRe: Sorted list Pin
Luc Pattyn16-Feb-08 7:16
sitebuilderLuc Pattyn16-Feb-08 7:16 
GeneralRe: Sorted list Pin
Guffa16-Feb-08 12:43
Guffa16-Feb-08 12:43 
GeneralRe: Sorted list Pin
Luc Pattyn16-Feb-08 12:51
sitebuilderLuc Pattyn16-Feb-08 12:51 
GeneralRe: Sorted list Pin
Guffa16-Feb-08 16:13
Guffa16-Feb-08 16:13 
QuestionHow create process with visible window on desk from a system process ? Pin
Stephan Pilz13-Feb-08 21:54
Stephan Pilz13-Feb-08 21:54 
GeneralRe: How create process with visible window on desk from a system process ? Pin
Dave Kreskowiak14-Feb-08 4:24
mveDave Kreskowiak14-Feb-08 4:24 
GeneralRe: How create process with visible window on desk from a system process ? Pin
Stephan Pilz14-Feb-08 4:51
Stephan Pilz14-Feb-08 4:51 
GeneralRe: How create process with visible window on desk from a system process ? Pin
Dave Kreskowiak14-Feb-08 6:52
mveDave Kreskowiak14-Feb-08 6:52 
Stephan Pilz wrote:
Please don't ask why I do it so, because there is no other way


Keep that up and you'll be completely on your own in no time.

Since your ASP.NET WEb Service cannot show a user interface on the server hosting it, you'll have to supply a UI some other way, like a normal Windows Forms app running a custom TraceListener exposed as a singleton class inside a WCF Service.

Well, a rather convoluted solution would be to create your own implementation of a TraceListener, setup as a singleton, in a host application that shows all incomming trace messages. This trace listener would be exposed through the host as a remotable object, or do the same thing as a WCF service hosted in a Windows Form or Console application.

In your Web Service Global.asax page, in possibly the Application_Start, Session_Start, or Application_BeginRequest handlers, you'd get the reference to the custom trace listener, add it to the Trace.Listeners collection in your Web Service, handle the call and output your trace messages.

The custom TraceListenerwould output any messages to a TextBox, Console window, log to a file, ..., whatever you want.

The downside is that this is a convoluted solution. The up side is that is lets you deploy your web service to multiple servers and still log all trace messages to a single window on a single monitoring workstation.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




Questionsetting the column mapping in the DataSet designer Pin
Mohammed El-Afifi13-Feb-08 19:43
professionalMohammed El-Afifi13-Feb-08 19:43 
GeneralRe: setting the column mapping in the DataSet designer Pin
led mike15-Feb-08 8:00
led mike15-Feb-08 8:00 
GeneralFree .NET obfuscator Pin
alexey N13-Feb-08 19:35
alexey N13-Feb-08 19:35 
GeneralRe: Free .NET obfuscator Pin
Vasudevan Deepak Kumar14-Feb-08 3:13
Vasudevan Deepak Kumar14-Feb-08 3:13 
GeneralRe: Free .NET obfuscator Pin
alexey N14-Feb-08 7:20
alexey N14-Feb-08 7:20 
QuestionGenerate Database From Classes Pin
danidanidani12-Feb-08 23:12
danidanidani12-Feb-08 23:12 
GeneralRe: Generate Database From Classes Pin
Pete O'Hanlon14-Feb-08 4:04
mvePete O'Hanlon14-Feb-08 4:04 
QuestionSolution won't build Pin
Mbire12-Feb-08 19:33
Mbire12-Feb-08 19:33 
QuestionWPF screwed up ?!?? Pin
Joachim Kerschbaumer12-Feb-08 4:44
Joachim Kerschbaumer12-Feb-08 4:44 
AnswerRe: WPF screwed up ?!?? Pin
Pete O'Hanlon12-Feb-08 11:22
mvePete O'Hanlon12-Feb-08 11:22 
GeneralRe: WPF screwed up ?!?? Pin
Joachim Kerschbaumer12-Feb-08 21:53
Joachim Kerschbaumer12-Feb-08 21:53 
QuestionError when I want to Insert data in a database(SQLEXPRESS)? Pin
maryam.saboor11-Feb-08 21:06
professionalmaryam.saboor11-Feb-08 21:06 
AnswerRe: Error when I want to Insert data in a database(SQLEXPRESS)? Pin
maryam.saboor12-Feb-08 21:29
professionalmaryam.saboor12-Feb-08 21:29 
Questionhelp me in vb.net plsssssssss Pin
zaimah11-Feb-08 19:17
zaimah11-Feb-08 19:17 
GeneralRe: help me in vb.net plsssssssss Pin
Guffa12-Feb-08 0:53
Guffa12-Feb-08 0:53 
GeneralASP.NET C# Mifare Reader Web System Pin
Tyrone Boon11-Feb-08 5:57
Tyrone Boon11-Feb-08 5:57 
GeneralCross Post Pin
led mike11-Feb-08 6:17
led mike11-Feb-08 6:17 

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.