C# - Remotely Execute A Program On Multiple Clients From A Web App?

Dec 21, 2010

So I have the following requirement for a project I'm working on, and I can't figure out the best (or any, for that matter) way to do this.

I have an asp.net web app sitting on IIS at HQ. When a particular event occurs, I need to then show a message on a dynamically selected subset of PC's throughout the company. The message must be shown due to the time restraints of this process (4 hours reaction time) and we legally can't afford to not show the message.

So I need to do the following:

Show a message to the users. I have a winforms app that puts up a dialog that the only way to get rid of it is to click a big "Acknowledge" button. To ensure that the message was shown. Some kind of report back that yes, it was shown and subsequently acknowledged. A way to react if the form is not shown.

I've considered the following:

PsExec - Iterating over every node asynchronously in my web app to fire off a remote executable sitting on each PC. .NET Remoting - I'm not familiar with this at all, and it lead me to look at WCF instead. Would it work for what I'm trying to do? WCF Callbacks - These seem to require a constant connection and I'm not sure what that means for our infrastucture. I imagined a client service that would kick off an app or show the form somehow. Our scheduling software (Tidal Enterprise Scheduler) - remotely executing an executable. This would introduce more points of failure.

In SO's opinion, what would be the best way to attack this problem?

View 3 Replies


Similar Messages:

C# - Multiple Asp Requests From Multiple Clients Share Information?

Dec 9, 2010

Imagine a website where individual clients can see each-other's presence - like a social network or a chatroom.

For example:

Client1 connects to my website.The back-end C# code updates a static field to indicate Client1's presence.
Client2 connects to my website.Will the back-end C# code for the second request see the information stored in the static field from the first request? Is there anything I need to do to guarantee that these seperate instances of my ASP application are sharing static data?

View 4 Replies

Cannot Execute A Program. The Command Being Executed Was "C:WINDOWSMicrosoft.NETFrameworkv3.5?

Jan 25, 2010

i am using vs 2008 and ajax when i execute my application i had this error messageCannot execute a program. The command being executed was "C:WINDOWSMicrosoft.NETFrameworkv3.5vbc.exe" /noconfig @"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Filesestwebsite_componenteditor2842527e6911f45cp1uobvpm.cmdline".

View 3 Replies

Not Able To Execute Web Service Function Remotely When Site Hosted Even Web Service Ip Addresss Is...

Jan 5, 2011

I have asp.net 2.0 site which is calling web services hosted on another server. When i have an xml file from where web service ip for eg. www.mysite/webservice1/myservice.asmx is given. When i call the same server from developer machine using local networkit works fine.But the same is when hosted remotely and from client end when services is called reading xml fiile from client machine it given a message 'remote server not connecting'.

View 1 Replies

Execute A Process Remotely With System.Diagnostics.Process

Feb 26, 2010

I'm working on an ASP.net app I'm trying to execute a process remotely , using System.Diagnostics.Process class here's my code:

ProcessStartInfo startInfo = new ProcessStartInfo(@"C:TestCommand.exe");
startInfo.Domain = "myDomain";
startInfo.UserName = "MyUserName";
SecureString sec = new SecureString();
foreach (char item in "MyPassword")
{
sec.AppendChar(item);
}
sec.MakeReadOnly();
startInfo.Password = sec;
startInfo.UseShellExecute = false;
Process.Start(startInfo);

I keep receiving an exception with the message "Logon failure: unknown user name or bad password". Im absolutelly sure that i'm submiting my correct username/pwd

View 1 Replies

To Allow Multiple/ Different Clients To Access The Same Application?

Nov 4, 2010

i have an Asp.net application 3.5. I want to be able to allow multiple/ different clients to access the same application but using different url's. I have already managed to configure the database to allow this. So hia's the main part i want to host my application in a domain say... wwww.myapplication.com

then allow different client to access the same application using

1.www.clientOne.myapplication.com

2.www.clientTwo.myapplication.com

also the client subdomains i.e(clientone.myapplication.com and clienttwo.myapplication.com)should be autocreated by the client upon registration

View 5 Replies

MVC :: Make Multiple Clients (desktop And IPhone)

Feb 4, 2010

How can I make multiple Index pages (contains a list of data), one to be used for a regular client, and one special view for the iPhone. Based on the article found on http://dotnetslackers.com/articles/aspnet/DevelopingForTheiPhone.aspx , I know that I can distinguish using

[Code]....

View 1 Replies

C# - Events Through Application Scope To Multiple Clients?

Feb 15, 2011

First of all, I am creating a something like a client/server solution using a standard ASP.NET website - I do know this method is not adviced, and most people would love to scream "COMET!" or "HTML5 Sockets!" - but please don't ;-) !

What I am doing...

I am creating an MMORPG on a website.

I have several clients whom need to be in contact at the same time. This is done by a global object in the Application scope.

My problem

I need to invoke an event to several clients. For instance, when an attack has been performed, I need to update some graphics. The attack logic is resolved in the global object, but each of the clients has to respond to this.

Right now I do the following:

fightTrace.Reciever.InvokeMoveEnded(this);
fightTrace.FiredBy.InvokeMoveEnded(this);

(This is a kind of observer pattern)

What now happends is a race condition. The one who loads the page_load event will get both of these events, and the one who is not running them, will experience no changes in the UI.

So what is it I really want?

What I really need is some genuine and nice way to create an observer pattern through the application state. I need to send an event out to every "listener" which is in this case is a client, and then do some update.

View 1 Replies

Architecture :: Very Frequent Reads To Database Multiple Clients?

Dec 5, 2010

I have a website hosted with sql 2008 database on Godaddy. Here's my problem descriptionbefore I actually begin implementing.Entries are made in a table named "XYZ" by a third party program. Now, there are multipleclients (could be asp.net ajax web based or vb.net desktop clients which I have not decided yet) who
read data from this "XYZ" table every 10-15 seconds. The connection string used by these clients would be same. If I have 10000-20000 clients making connections and querying same table, would that cause any breakdown? Since my connection string is same, connection pooling isautomatically in place.

What else do you think I need to take care of? Or is there any better way to implement this setup?Also, should I go for asp.net ajax client implementation or vb.net(c#) client implemtation ?Your inputs would be highly helpful to me. I am looking for a medium to long term solution to thissetup.

View 10 Replies

Web Forms :: How To Send Email To Multiple Clients Located In Different Domains

Sep 21, 2010

How can i send email to multiple clients located in different domains such hotmail,yahoo,and gmail

is it required to provide Smpt server name, if we have multipe domain id, what should we do?

I am using fowling code but getting exception failed.

MailMessage mailMsg = new MailMessage();
mailMsg .From = "from@fromServer.com";
mailMsg .To = "to@toServer.com";
mailMsg .Cc = "cc@ccServer.com"";
mailMsg .Bcc = "bcc@bccServer.com";
mailMsg .Subject = "SubjectOfTheMailString";
mailMsg .Body = "BodyOfTheMailString";
SmtpMail.Send(mailMsg );

View 2 Replies

Web Forms :: Transfer Voice From One Client To Multiple Clients In Live

Apr 27, 2016

I'm trying to develop a new application for multiple users. the main idea is that one user talks and the entire users (who logged in ) could hear him (1 way).

How this can be made? how can i transfer voice from one client to multiple clients in live?

Note that my clients are mobile users (Android, IOS and Windows phone) and the server is .NET.

View 1 Replies

ADO.NET :: How To Execute SP Across Multiple Parameters Coming From Checkboxlist

Nov 3, 2010

I have SP ,which accept one or more variables ..

i need to design the asp.net vb page where there will be checkboxlist , where user can check and press submit and the values will be passed throught the SP ..

here is my Code , which only accept one parameter at a time

[Code]....


I have already design the checkboxlist , the problem only accour when i select more than one parameters i got this errore message :

There is already an open DataReader associated with this Command which must be closed first.

View 2 Replies

ADO.NET :: How To Execute Alter Table For Multiple Columns

Oct 24, 2010

I have an SQL table called tbl, im trying to add the columns A, B and C to it.

When i execute the command :

addcolumns = "ALTER TABLE SqlCreatedTbl ADD A char(50) ;";
cmd = new SqlCommand(addcolumns, conn);
conn.Open(); cmd.ExecuteNonQuery();

The column is added perfectly and i can see it in the table !

However, when i try to add multiple columns, it does NOT work, it gives me an error..

the command im writting for adding multiple columns is the following:

addcolumns = "ALTER TABLE SqlCreatedTbl ADD ( A char(50), B char(50), C char(50) );";

the debugger highlights the line : cmd.ExecuteNonQuery(); and throws the following exception: Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near '('.

View 1 Replies

AJAX :: Multiple UpdatePanels Should Execute One By One, But Button Is Outside Those Updatepanel

Jul 14, 2010

In my asp.net application in one of the Page I need to create 3 Panels. These 3 Panels I had already kept in 3 Updatepanels. Now, Outside the UpdatePanels, I have a dropdown. Selecting the Value from Dropdown, those 3 panels will be populated from database.

Each of the UpdatePanels have their UpdateProgrees Control. Now What I want is that those 3 UpdatePanels should filled up one by one.

How to achieve this functionality ?

View 4 Replies

Looping Throug Multiple Sql Connections And Execute Query?

Mar 16, 2011

I am trying to loop throug multiple sql server instances (connections) and execute one query for all those connections and ouput in one grid.I am using checkboxes to show all of my connections. So far i have the following code: ( but the code only just executes the query on the first selected instead of the 2 or more selected connections.

Sub executesqlquery()
Dim instance As String
Dim instance1 As String [code]....

View 4 Replies

ADO.NET :: Simple Method To Execute SQLCommand On Multiple Servers

Dec 2, 2010

Boss comes in and demands that we change an existing dataload process written in .Net 2.0 to call stored procedures on two different servers rather than just one. In his mind (not a programmer) this should be a short overnight process. We have about 60 different SQL Commands that we need to change and test. Is there a simple way to do this that I can't think of? If there isn't we will use something like replication or database mirroring, which is my preference but is likely to get the cold shoulder from my boss, especially since I have never set these up before. A function that takes a SQLCommand as its argument and then iterates through as set of connections to execute the SQLCommand. Change all stored procs to call the same stored proc on a linked server.

View 1 Replies

Web Forms :: Send Forgot Password Email To Multiple Domain Email Addresses Using Single Program

Mar 31, 2013

i have code for forgot password using gmail account. But i want to send password for multiple domains like yahoo,rediffmail and more.

View 1 Replies

Visual Studio :: 2010 - Finding Assemblies In Program Files Vs Program Files X86?

Jul 3, 2010

I have a VS2010 project that I want to move back and forth between an x86 and an x64 machine. On the x86 machine, several assemblies are located in Program Files, and the path of the assemblies are shown as c:Program Files...... When I move this project to the x64 machine, the same assemblies are located in C:Program Files (x86).... Is there a way that I can confugure VS2010 so I don't have to manually change the path when I move the project from one machine to another?

View 1 Replies

DataSource Controls :: How To Pass Multiple Values And Execute Query In Stored Procedure

Jun 2, 2010

basically i have two dropdown boxes to filter data and textbox with stored procedure bound to gridview.i want to be able to query data depending on the selected value passed,either using one or more parameter values.

i would like seperate sqlcommands to chose from depending on which controls i select to pass parameters.

i have included a parameter Select(control id) as this is declared by the wizard for stored procedure.

but i am not sure how it is defined on the page and passed to procedure.

[Code]....

View 2 Replies

AJAX :: Execute Animation On An Asp Button That Has To Execute Code On Postback?

Feb 15, 2011

I'm trying to understand how to execute AJAX animation on an asp button that has to execute code on Postback. In other words, I have button with code behind that needs to be excuted, but at the same time want to be able to have one of animation extenders be applied to it. I understand that I need to use the BeginRequest Event, I'm just not sure how, or which javascript commands to use to call the ajax animation so the postback will still occur.

View 5 Replies

SQL Server :: Stored Procedure - EXECUTE And EXECUTE Sp_executesql

Mar 10, 2011

I am looking through a sql stored procedure which I might need to update in the near future. Basically the stored procedure is about 20 lines long. The stored procedure first builds a query

and stores it in a variable named "@Sql". And then for the last two lines of the stored procedure it appears that the big sql statement stored in "@Sql" is executed by using the "EXEC" command. See below. What is confusing though is that the query appears to be exectuted twice? Why was the query written in this way. Don't both lines do the same thing? Why is it being done twice? Could this possibly be a mistake on the
part of the person who wrote the query. Below are the two lines I am talking about?

EXEC sp_executesql @sql
EXEC (@sql)

View 4 Replies

WCF - How To Execute Server.Execute Asynchronously

Mar 30, 2010

I need to run the HttpContext.Current.Server.Execute method in my ASP.NET application. This application has a WCF operation that does some processing. Currently, I am to do my processing correctly from within my WCF operation. However, I would like to do this asynchronously.

In an error to attempt this asynchronously, I tried running Server.Execute in the DoWork event handler of a BackgroundWorker. Unfortunately, this throws an error that says

"object reference not set to an instance of an object" The HttpContext element is not null. I checked that. It is some property nested in the HttpContext object that appears to be null. However, I have not been able to identify why this won't work. It happens as soon as I move the processing to the BackgroundWorker thread.
My question is, how can I asynchronously execute the Server.Execute method?

View 1 Replies

How To Receive An Image Remotely

Mar 18, 2011

I have a requirement to design an ASPX page to receive a binary image from a remote call. Basically, our client wants to send a POST request from their server to this particular page. This POST request contains some parameters, as well as an JPG image. How should I design this ASPX page to receive all these information? I need to convert the JPG image to byte[] array and save it to DB, together with the rest of the parameter values.

View 1 Replies

How To Acess Microsoft Access Remotely

May 28, 2010

I am writing an application on my PC to insert record on a Microsoft Access database on another pc that has static ip address remotely.I can ping the remote address of the PC that I want to access without problems. The access database is in the folder c:inetpubwwwrootdb.mdb.

I have the code below but when I run it I am getting the following error:

error on ther server the object model couldnšt be found

OleDbException 0x800a2011
<%@ LANGUAGE = VB Debug="true" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Import Namespace="System.Net.Mail" %>
<%@ Import Namespace= "System.Web.UI.WebControls.Menu" %>
<%@ Import Namespace="System.Data" %>
<script Runat="Server" language="VB">
public sub button_click(s as object,e as EventArgs)
dim ssql as string
dim strconn,objconn,rs,dbcomm
Dim ds As New DataSet
Dim da As OleDbDataAdapter = New OleDbDataAdapter
objconn=new oledbconnection("Provider=MS Remote; Remote Server=http://196.45.161.123; Remote Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\db.mdb;Persist Security Info=False")
objconn.open ()
dbcomm=New Oledbcommand("employee",objconn)
dbcomm.commandtext="insert into employee values ('mostafa',7,'tanzania')"
dbcomm.Connection = objconn
dbcomm.ExecuteNonQuery()
objconn.close ()
end sub
</script>
<html>
<Head>
</HEAD>
<BODY BGCOLOR="White" TOPMARGIN="10" LEFTMARGIN="10">
<form Runat="Server">
<asp:textbox id="t1" Runat="Server" text="type" />
<asp:button id="b1" Runat="Server" onclick="button_click" text="clickme" />
</form>
</BODY>
</HTML>

View 1 Replies

Display Control Only If Not Viewing Remotely?

Mar 30, 2011

Is there a way to show a control on a page ONLY if the page was requested over the local network?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved