|
I haven't read that link you put up yet but I kind of skimmed through it. It appears that it is using libraries newer than .NET 2.0. I should of mentioned that I wanted to stick with nothing above .NET 2.0. Now for stuff like Labtech I really think they are using a web service (which I do not want to use). I can't really use UDP because the agent has to be able to retrieve data back from that server when it checks in. This is because the server will not really have access to any agent directly since they are on different networks. So the agent has to be the one to start the connection and accept data back.
|
|
|
|
|
I believe that NAT forwarding automatically makes 'return packet' UDP datagrams work as you'd expect, so as long as the agent started the UDP 'connection' it should be ok. I am not an expert on UDP though.
Asynchronous sockets are in .Net 2.0.
|
|
|
|
|
Only one comment - if you've got 750 clients, make sure they connect, do whatever they have to do and disconnect immediately afterwards (or force disconnect them). Holding lots of idle sockets open will kill scalability. This is the approach webservers use. And for lots of short lived connections, the threadpool is definitely your friend. When you accept a socket through a TcpListener or similar pass the socket to a method and throw it on the threadpool.
Regards,
Rob Philpott.
|
|
|
|
|
So only handle so many connections at one time… but do not reject any? It almost sounds like if I don't get the calculation right I could end up in a loop (meaning some agent actions not being performed in the correct amount of time before it tries to checkin again)
|
|
|
|
|
hi everyone, I use the below approach to close all the processes. Althoug it works well, it can't close hidden process. This is a cyber cafe client side program and games like Knightonline, Metin2 etc. can't be closed this way.
We know that windows closes everything when ending the session. So, to achieve the same goal, is it possible to end the session and then log in back without any user intervention?
Process[] allprcs = Process.GetProcesses();<br />
<br />
foreach (Process p in allprcs)<br />
{<br />
p.Kill();
}
|
|
|
|
|
No, it is not possible to end the session and log back in without user intervention.
Well, that's not entirely true. You'd have to setup a "admin login" when the machine logs back in as a user that is put in a special registry location. You put the username and password into this registry location and Windows will use it to log the console session back in when Windows starts. This is a HORRIBLE idea. Why? Because the username and password has to be in clear text (unencrypted).
The problem with your code is that you're trying to stop all processes, and you cannot do that. You can only stop processes that you have permissions to stop. Even an admin level account cannot stop all processes. Processes that run under system level account or are critical to running Windows cannot be stopped. The only way to end them is to shutdown Windows.
|
|
|
|
|
teknolog123 wrote: So, to achieve the same goal, is it possible to end the session and then log in back without any user intervention?
Thinking about Dave's comment; how about bluntly restarting the entire machine (assuming that they log on automatic)?
--edit;
I'm not that good in keeping track of the time; I'd appreciate it if the software would give a warning that it's about to close down and to save/commit my work
I are Troll
|
|
|
|
|
Two comments:
1.
for your code to be a bit successful, it should not kill itself; so at least check Process p isn't your own process!
2.
it sounds to me you need a Windows service; it could keep track of the processes that get created by the user, and then it could kill those, and their dependants, whenever you must.
Don't ask me for more details, I have none to offer; I'm not in to this kind of computer (ab)use at all.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
hi
something very Strange in Webservice and windows-ce connection....
i have Webservice in my computer that stay on `C:\inetpub\wwwroot\WS_TEST` called `WS_TEST`
my IP is `11.22.33.44`
the connection is: `http://11.22.33.44/WS_TEST/service1.asmx`
in my Windows-CE i have this connection: (see that the IP not equal)
http://99.88.77.66/WS_TEST/service1.asmx
and the windows-ce **connect successfully** to the Webservice - how ?
how to do that only same IP will connect successfully ?
thanks in advance
|
|
|
|
|
How is this a C# problem?
You would probably be better asking this in either the Web Development Forum[^] or the Mobile Forum[^].
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I wouldn't let CG touch my Abacus!
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
|
|
|
|
|
hi
how to force IIS_IUSER full control by making setup & deploy project ?
i work on C# visual-studio 2008
thanks in advance
|
|
|
|
|
Full control of what?? Nevermind, it really doesn't matter since that is a horribly bad idea...
Do NOT do it! Why? Because that is the defualt account ALL websites on the server use unless otherwise configured (which is rare).
But, that's exactly what you have to do. Your website should run under its own account specially configured to run the site and give just enough permissions to it to what what it needs to do. You do NOT give it Full Control of anything.
|
|
|
|
|
Don't, is is a very bad plan, it breaks open the security on the server.
Create a new account and give it only the permissions it requires. How you grant these depends on what you atually want to grant, and the OS more than likely).
|
|
|
|
|
For your setup project, IIS_USER does not need "full control" because the setup program runs with a system account. It can place all the files in their correct location, set user rights as required so that thereafter IIS_USER will have appropriate access to them. When IIS_USER needs write access, use special folders for that purpose, do not add write access to the installation directory of your web application!
|
|
|
|
|
Can anyone help me with code for paypal and backup recovery in c#.
Does the paypal fuction properly in south africa?
Is it possible to link windows application with web applicatin,if so,how?
|
|
|
|
|
mageba wrote: Can anyone help me with code for paypal and backup recovery in c#.
Please read the forum FAQs, don't ask for code. State what you have done, and what isn't working, otherwise everyone will assume you've done nothing and you'll get replies like this.
mageba wrote: Does the paypal fuction properly in south africa?
Probably, if you Google your question you'll get an answer more quickly than here, but we do have a few members from/in SA
mageba wrote: Is it possible to link windows application with web applicatin,if so,how?
What do you mean by "link" ? They can certainly use the same database, and they can certainly consume remote procedures such as web services. How do you want them linked exactly.
|
|
|
|
|
mageba wrote: Does the paypal fuction properly in south africa?
Well, you live there, you tell us!
I must get a clever new signature for 2011.
|
|
|
|
|
What? That's research, that is! 5!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
Last week I asked here if there was anything built into .NET for writing distributed apps (i.e. an API to distribute the workload over in house PCs). A few of you asked that I report back if I found anything.
I have located just what I was looking for in the Utilify platform (www.utilify.com).
Its *free* and its got a tiny footprint. You can't beat that.
Basically, they give you an executor service that runs on all the worker PCs and one PC serves as the coordinator and has a monitor app installed on it. Has performance graphs, load balancing, fault tolerance, heart beat, PC health status, etc. all built in.
Using it is simple, you just create a job object that implements the IExecutable interface (the execute method is called by the platform) that gets passed around on your "cloud" and executed on the worker PCs. You submit the job and get notification events when its done.
Pretty much all there is to it.
NOTE: One gotcha I ran into is it only supports .NET 3.5 binaries compiled to MSIL. I happen to be using .NET 4.0 compiled to x86 due to other requirements. I reported that issue to them and they are supposed to release a bug fix soon.
|
|
|
|
|
Thanks for reporting back.
It is of no use to me but thanks anyway.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I wouldn't let CG touch my Abacus!
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
|
|
|
|
|
And I still can't remember the name for it. That will be n excellent find, gonna hurt IBM when I take into work on Monday
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
I have developed a winform application in C# using visual studio 2008.
The application at present is on my laptop and talks to the sql server 2005 express.
All works fine.
Now I would like to create a setup CD so that it can be installed on a client machine.
1- SQl Server 2005 express is installed on the client machine (For business requirements) with the required logins that the app requires to login to sql server.
2- I am unable to find a simple straightforward documentation on how to have a complete setup of the app on a CD so that I can run it on the client to install the app. Note that the setup should have the .net framework, etc included...
Is there a link you can refer me to for this purpose please?
Thanks
|
|
|
|
|
|
Hi,
Thaks for the reply.
I would like to stick to the visual studio tools for the installation.
The vs 2008 I am using has the necessary tools to create a setup project, etc but I would like to see a simple documentation on how to create a setup CD.
Can you refer me to one please?
Thanks
|
|
|
|
|
Do NOT stick to the tools in Visual Studio for this.
The next version of Visual Studio will not have them. They are being replaced with Installshield Express. I highly suggest either picking up that from Flexera or some other installation creation tool, like Wix, InnoSetup, ... Learn something that isn't going to die.
|
|
|
|