I'm new to the web services. Can c# web service load a separate application?
the application is a chess game in c#.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Aug 8, 2009, 2:04 AM
fitUOM UOMPosted Aug 9, 2009, 10:26 AM
thnk u very much for the answering.
nw i deployed my webservice in my machine for only testing purpose.
inside web methode it load notepad.
[WebMethod]
public void HelloWorld() {
Process.Start("Notepad.exe");
}
the web service is running succefully and load note pad in development mode.
bt when i publish it in webroot folder , the webservice running without any error. bt doesn't load note pad
bt any other changes can view(like change testbox.text after clicking button)
thnks u again.
Kirtan PatelPosted Aug 9, 2009, 1:56 AM
fitUOM UOMPosted Aug 8, 2009, 9:13 PM
thnk u very much for the explanation.
i hv marked the answer as accepted answer.
nw i can load my chess application in my working machine.
According to wt u said , does it can't load by another computer that networked to my machine.
(my chess game should validate clients movements. the game instance it self pass movements by masseges to the server)
therefore can u pls tell another way to doing this with my existing application rather than develop java applet or another.
thank u again.
pls reply .
Kirtan PatelPosted Aug 8, 2009, 5:03 AM
Client Computer Who is Accessing your chess through web having only Browser interface and due to limitation that it can't to load Windows Application . Microsoft Introduced New Technology Called Silverlight that can able to Run on Browser
so if you want to run that chess on Browser it need to be developed in Eaitherin Silverlight or java Applet Like Platform that is Runnable on Browser :)
Happy Coding :)
fitUOM UOMPosted Aug 8, 2009, 4:36 AM
the chess program should be in server machine. when client can move pieces and submit it. then server validate the movements . therefore it can't keep client machine as chess.exe.
thanks
Kirtan PatelPosted Aug 8, 2009, 4:21 AM
Hi ,
For that you can call Method As i Told before
but
Your Chess's Exe Files and all Should be There on Client Machine ar Specific path as you can see
" notepad.exe" is there on every windows computer so Everyone's Computer will Open notepad when clicking your Button
fitUOM UOMPosted Aug 8, 2009, 3:49 AM
i cnt clerly understand wt u say. it's my fault.
pls consider this.
think this as my chess project main method.
namespace WindowsApplication2
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
I have web service MyClass.cs
public class MyClass : System.Web.Services.WebService {
public MyClass () {
}
[WebMethod()]
public void runapplication()
{
Process.Start("Notepad.exe");
}
}
As well i have web page that view to client default.aspx