ASP as Windows Service that control by ASP and share Datatable?

M

mtczx232

I wonder what the best way to run Service, and be able to Interact
with him, and show the DataTable from Service. the first way is: build
Service project, and Interact with him by remoting, and use with
serialized ability to share DataTable. or build ASP app, and start new
thread from Application_Start that become as Service. then we have
ability to share DataTable between the Web thread, and Service thread.
this second way is possible?
the Application_Start is triger when first request come? or when IIS
startup? or have another way to force to start the Web App when the
windows boot?
 
M

Michael Nemtsev

Hello (e-mail address removed),
I wonder what the best way to run Service, and be able to Interact
with him, and show the DataTable from Service. the first way is: build
Service project, and Interact with him by remoting, and use with
serialized ability to share DataTable.

good way
or build ASP app, and start new
thread from Application_Start that become as Service. then we have
ability to share DataTable between the Web thread, and Service thread.
this second way is possible?

The first is more natural
What's wrong with the first approach?
the Application_Start is triger when first request come? or when IIS
startup?

When the first request comes
or have another way to force to start the Web App when the
windows boot?

no, by standard means



---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 
M

mtczx232

The first is more natural
What's wrong with the first approach?
I Read somewhere thet serialized of DataTable have poor performance?
And also I see many App and appliance that gives control over his
Service by WebPages. So according your answer, if I want to do that. i
need to:
+build Service
+build remoting
+use with this remoting for ASP application.

So I wonder why not have shorted way to build Service withoute GUI,
but it's share ASP application that give GUI by browser, like many
appliance.
 
M

Michael Nemtsev

Hello (e-mail address removed),
I Read somewhere thet serialized of DataTable have poor performance?

yep, and for the asp.net it's fat for memory consuming.
But as I understand this is not the issue on the current moment
And also I see many App and appliance that gives control over his
Service by WebPages. So according your answer, if I want to do that. i
need to:
+build Service

I think it's your case
+build remoting
+use with this remoting for ASP application.

i'd recomed to avoid remoting
So I wonder why not have shorted way to build Service withoute GUI,
but it's share ASP application that give GUI by browser, like many
appliance.

GUI from the service?


---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top