Remoting - Threading Or Running Multiple Servers
Aug 20, 2009
after my last post i dove into remoting to try to solve my performance problem in a client-server fashion.
This works very well, but i come across a big problem which i don't seem to get solved.
I made a well known singleton servicetype on the server that retrieve all customers. Whith 1 db connection this works fine. But very often customers and i use in 1 sql instance multiple databases (for each administration a separate db). so the whole purpose of a singleton object is hereby destroys as soon i connect in my class to a different db. Is there some way to overcome this for example threading or running multiple servers (for each db it's own server-application)?
View 13 Replies
ADVERTISEMENT
Aug 31, 2011
I have to connect same type of remote objects on different destination using .net remoting. For example, I have a database access middle layer on a remote server and local server. But both are same type object. but the remote destination addresses are different. So how to connect it using .NET Remoting?
View 1 Replies
Oct 1, 2009
I have a server, listening to Remoting request on TCP channel. When first client was connected, it was able to proceed on the lines of code shown in the picture. When a second client connected, it shows this error
View 6 Replies
Sep 29, 2011
I don't really know how to code but am pretty good at tweaking. I'm trying to set up a script that I can run to delete a single file, multiple files, a folder or multiple folders on a list of servers.I was thinking that the script could read the files to be deleted from a .txt file and apply the deletion to a list of servers in another .txt file.Example:
FilesToBeDeleted.txt:
\(insert_server_name_from_list)c$Program FilesBINexample_file.rpt
or
[code].....
View 1 Replies
Jul 27, 2010
There are a lot of games that many languages can be coded in.MapleStory, WOW, FlyFF, and more. Can we do this on Visual basic?I mean we can. We just need a packet system, like to send the getHello packets and ****.
View 1 Replies
Apr 4, 2012
i have a form where i wanted to open multiple socket connects to multiple servers. i defined "clientsocket" as a socket array
[Code]...
View 6 Replies
Jul 10, 2011
Im trying to check multiple services on different servers. The idea is that every time a client clicks on a checkbox for the specific server and press the "check service" button it will check the status on the service and if it's not running it will restart the service and so on for the rest of the servers.[code]
View 2 Replies
Feb 24, 2009
I am trying to reset IIS on a set of servers all at one time instead of looping through and resetting each one individually, but I can't seem to figure out how to do it.[code]...
View 4 Replies
Oct 24, 2008
I have this code below for a client module, to allow the client to connect to multiple servers, though a IP list. The problem is that it is connecting ok to the servers, and it is sending messages to servers, but is not receiving messages FROM servers.
[Code]...
View 1 Replies
Feb 19, 2012
I have 2 servers that produce xml files and store them locally on their hard drives.Im not to sure what would be the best way to make these details viewable from any machine on the same network?I have created a asp.net web page which reads and displays the xml files. It does it fine locally, but would i have to host it on a dedicated web facing server so that it could display information from the 2 different servers on the network?
View 1 Replies
Mar 15, 2010
I want to make a simultaneous connection to multiple servers with threads, only to create a single connection.
Imports System.IO
Imports System.Net.Sockets
Imports System.Text
[Code].....
View 5 Replies
Sep 25, 2009
Running into problems creating objects through reflection and then running them on multiple threads.
I just cannot seem to figure out what I need to here:
For Each WorkerNode As XmlNode In oRunSettings.GetWorkerValues
orkerName = WorkerNode.Attributes(SETTING_NAME_ID).Value
Dim oWorkerType As Type = Type.GetType(String.Format("Worker.{0}", sWorkerName))
Dim oWorker As Object = Activator.CreateInstance(oWorkerType)
[Code]...
It is causing errors at the "AddressOf" because Object does not have a method called that. Do I need to do something with an interface?
View 2 Replies
Mar 31, 2010
Below i am giving a Code snippet and my question is specifier in the bottom.
[Code]...
View 1 Replies
Oct 17, 2009
When it comes to threading. I've managed to adapt one of JMcIllhinney's backgroundworker codebank examples to somewhat suit my needs, but not completely. I have a main form, and a second form that appears while I'm running through a for loop. It informs the user what is currently happening. I set up a backgroundworker that allowed me to continue to use the main form during the for loop, but the other "status" form was completely frozen, and any labels or graphics were shown as white boxes. I am struggling to figure out how to be able to move/interact with both forms while the loop is running.
View 4 Replies
Aug 20, 2009
One of our products consists of two different services:
- main service that launched at the startup of Wndows
- GUI that launched manualy when needed
GUI is representing data from main service.Main service starts X amount of threads that do some work and gether data.Some minor data and adresses to threads are stored in chache memory, so that GUI will have access to them.Everything works fine in 99% cases, but in some rare cases GUI do not display any data when used on machines with multiple processors (not milti-core). My guess is that it can't access the memory -> probably OS "decided" to run main service on one processor and GUI on another one.Is there any way to access the memory alocated for one processor from the service that runs on another processor?Or is there simple and secure way (same application will be also runing on single processor machines) to specify both services to run on the same processor?
View 4 Replies
Apr 27, 2010
I have created a background worker to go and run a pretty long task that includes creating more threads which will read from a file of urls and crawl each. I tried following it through debugging and found that the background process ends prematurely for no apparent reason. Is there something wrong in the logic of my code that is causing this. [code]Also my main thread runs a forms from where this background is called to run but the main thread is supposed to wait for the background process to end unless the user selects another option from the main form.
View 3 Replies
May 3, 2011
I came across this app yesterday which looked strange to me as it had about 20 web browsers popped up and running all 20 processes seperatly.
View 2 Replies
Jul 12, 2011
When the program starts, it checks for the amount of threads the user wants to use to download files with. The threads are then created. When the user chooses a file to download, the threads begin grabbing the file until it's fully downloaded.The problem is, some threads stall right from the start, & just sit there doing nothing.The global work variable is Sync-Locked, then quickly released by each instance, & to my eyes, there is nothing wrong.They are all instances of the same class, & do the exact same thing, so why is it that some run, & others don't?VB.NET is the programming language. They are looping Background workers.I would really like to know why some run, & others don't.btw... they have quick non-blocking sleeps, as well as blocking sleeps to allow others the chance to run (proprietary non-blocking DLL).So all i'm left to think on is that Microsoft's process queuing has some type of bug going on in there someplace....or is there a way to do multiple looping threads where they're guaranteed to run?
View 2 Replies
Apr 8, 2011
I'm running a program where I call a function which creates a database connection and then runs a stored procedure. I call this function four times from four separate threads. I get an error (Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection.
Exception Source:
.Net SqlClient Data Provider)
when I use multiple threads, but if I have the threads run one after another I have no
[code].....
View 1 Replies
May 14, 2011
I have a need to build an app that will access about 10 websites and pass data to them, etc.I've read about something called multi-threading when searching Google. I've also seen people say that they use multiple browsers.Which route is better to use? I figure if you have to do some sort of multi-threading that you would access a single browser?
View 2 Replies
Jun 6, 2011
I am writing an automation program that runs 4 test boxes in line with a handler. Im having a problem with running 4 BGWs(back ground workers). The Program is running fine right now but its not running the way it was designed. What i am trying to do is get all 4 BGWs to run in parallel. what its doing right now is running 3 and then when those three are done running it runs the 4th. the crazy part is its not running 1 2 3 then 4 its running 1 2 4 and then 3. Also its not updating my status windows right either.
[Code]...
View 1 Replies
Jul 17, 2011
I have one Private sub that runs in a loop. I want the sub to run multiple times at once. For example the program runs, you press start; you run the program again and press start, again and again... the same program doing the job at once. now i just want one program do to it alone. But i would like it to be user defined. exp. run program. type in a text box 10. press start. and it works as if 10 of them work open working on the same thing.
[Code]...
View 1 Replies
Apr 3, 2009
I understand running the command shell as a process, How would i run multiple arguments in that one process? For example, here's a process to do a netstat.[code]How would I do that with the following commands? I'd like to click one button and have these all run one after the other.[code]
View 7 Replies
Apr 21, 2009
I'm trying to use ADO to create several tables at once, into MS Access. Is it possible to do multiple statements in the one operation?[code]This fails due to a "Syntax Error in CREATE TABLE statement", although each of the create statements work on their own perfectly. Is there a way of doing this sort of thing? There will also be statements to add constraints, add indexing, etc., and I'd really like to be able to do it so that I don't have to split up the string into separate parts.
View 8 Replies
Oct 2, 2010
In the past few weeks, to speed up our database freshening process, I've created a couple of extra programs, basically copies of the exe file. The program itself, accesses web pages, images etc and uses threads to do so. The second program uses LIMIT 300,100 and the third LIMIT 600,100, to make sure they don't work on the same records.
Before the last few weeks, one occurrence of the program used to run without problem, from the task scheduler all through the day. Only one occurrence of each exe can run at a time.Since theres now three programs running, .net 2.0, on xp, the program often seems to get stuck and never ends. I have to kill it from task manager.
It runs fine in the IDE I just wonder if there would be any benefit from upgrading to vb.net 2010 ?
View 1 Replies
Dec 4, 2009
I have an application which is running off multiple user desktops (app is in vb.net/vs 2008). The application pulls its data from an SQL 2005 Server (which holds all of the main data tables as well as a bunch of reference tables). So for different projects, the application pulls in data from the main tables... ie, Project ID, Project Cost...and so on.. The data is contained by ID's and when the data is imported into the application, the look up tables are used to convert the ID's to names.. so instead of project ID, the user would see the actual project name. Before the data is written back to the db, it is converted back to ID's ... anyways, there are a bunch of these look up tables, (for vendors, different expenditure codes, projects, sub projects.
[Code]...
View 3 Replies
Aug 15, 2011
I made a simple "restarter" app... However, I need to close multiple instances of an application. For example, if I have three windows of paint, or three windows of Word open, how do I check if it is still open before I open a new instance?
[Code]...
View 1 Replies
Jan 31, 2011
I'm trying to run a specific test on my server using a program that can run multiple requests (using Webbrowser control) at the same time but with different proxy settings.What I am using now is working but only for one webbrowser control, im seeking advice for how to run multiple side-by-side.
<Runtime.InteropServices.DllImport("wininet.dll", SetLastError:=True)> _
Private Shared Function InternetSetOption(ByVal hInternet As IntPtr, ByVal dwOption As Integer, ByVal lpBuffer As IntPtr, ByVal lpdwBufferLength As Integer) As Boolean
[code].....
View 1 Replies
Apr 17, 2010
How to I run multiple threads in VB.NET? Say I need 2 threads - one that prints 100 numbers in a loop and the second one that asks for the user's name and prints it inside a message box.
View 1 Replies
Jan 13, 2012
I have a sub-procedure which I want to run a different process, depending on what is currently running. I thought the easiest way to do this was by using an ArrayList of each of the campaign details & adding an 'Inuse' field to check to see if the Inuse field is set to 0 or 1. The problem that I have is that when running the process it is all happening at once & the integer hasn't been changed before the next thread kicks in so my threads are running the same campaigns. I tried to avoid the problem by adding a Thread.Sleep(100) delay inbetween starting threads but this led to exactly the same problem.
Here's an example of what I am trying to do:
Imports System.Threading
Public Class Form1
Private Campaigns As New ArrayList
Private ProcessRunning As Boolean = False
Friend StopProcess As Boolean = False
[Code] .....
View 2 Replies