Click here to Skip to main content
15,921,959 members
Home / Discussions / Web Development
   

Web Development

 
GeneralWeb Development Pin
Anonymous29-Jun-05 4:09
Anonymous29-Jun-05 4:09 
QuestionMap ASP.NET / PHP types to JavaScript objects? Pin
Stan Angeloff29-Jun-05 1:53
Stan Angeloff29-Jun-05 1:53 
GeneralIIS virtual dir problem Pin
monageasmear28-Jun-05 23:30
monageasmear28-Jun-05 23:30 
GeneralRe: IIS virtual dir problem Pin
Guffa29-Jun-05 10:39
Guffa29-Jun-05 10:39 
GeneralArticles about Usability (I needdd!!) Pin
__Charly__28-Jun-05 17:42
__Charly__28-Jun-05 17:42 
GeneralRe: Articles about Usability (I needdd!!) Pin
fakefur29-Jun-05 14:01
fakefur29-Jun-05 14:01 
GeneralRe: Articles about Usability (I needdd!!) Pin
DavidNohejl2-Jul-05 7:04
DavidNohejl2-Jul-05 7:04 
GeneralNewbie: Running Process from Webservice. Doesn't work. Pin
PhrankBooth28-Jun-05 17:34
PhrankBooth28-Jun-05 17:34 
Hi,

I would be greatful if I could get some help regarding the following:

I'm a newbie at WebServices and I'm just setting up a simple service to get my feet web.

I used MS' web servive walkthrough as a template:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vbwlkWalkthroughBuildingWebServiceWithManagedCode.asp

So, when I run the service as they say to set it up, it works fine; returns the temp conversion as expected.

However when I add some Process code to the main method, like this:
// C#
[WebMethod(Description="This method converts a temperature in " +
"degrees Fahrenheit to a temperature in degrees Celsius.")]
public double ConvertTemperature(double dFahrenheit)
{

using (Process proc1=new Process())
{
proc1.StartInfo.FileName = @"c:\folder1\folder2\testapp.exe";
proc1.start();
}

return ((dFahrenheit - 32) * 5) / 9;
}

All the testapp.exe does is create a file locally. This test app works on its own.

So when I run this, nothing happens, the testapp doesn't run and the temp isn't returned. When I tweaked it some more, the app still didn't run and IE kept coming back with a page not found because the name of the method was being appended to the end of the URL, and that obviously doesn't exit.

So, does anyone know why this is not working as expected, am I missing something? It looks simple enough and I am running this straight on the server itself.

Any help is appreciated, thank you!
--PhB.

PhrankBooth
GeneralRe: Newbie: Running Process from Webservice. Doesn't work. Pin
Guffa30-Jun-05 17:26
Guffa30-Jun-05 17:26 
GeneralSelect Box Expansion Pin
Anonymous28-Jun-05 10:26
Anonymous28-Jun-05 10:26 
GeneralRe: Select Box Expansion Pin
Guffa29-Jun-05 10:45
Guffa29-Jun-05 10:45 
GeneralSubmitting Data Pin
RichardS28-Jun-05 1:19
RichardS28-Jun-05 1:19 
GeneralRe: Submitting Data Pin
Ian Darling28-Jun-05 2:03
Ian Darling28-Jun-05 2:03 
GeneralRe: Submitting Data Pin
fakefur29-Jun-05 14:06
fakefur29-Jun-05 14:06 
GeneralWeb service returning a DataSet Pin
ShugMagoo27-Jun-05 12:38
ShugMagoo27-Jun-05 12:38 
GeneralRe: Web service returning a DataSet Pin
Guffa30-Jun-05 17:31
Guffa30-Jun-05 17:31 
GeneralRe: Web service returning a DataSet Pin
ShugMagoo1-Jul-05 13:48
ShugMagoo1-Jul-05 13:48 
GeneralRe: Web service returning a DataSet Pin
Guffa2-Jul-05 6:42
Guffa2-Jul-05 6:42 
Questionwhat do u mean by dynamic page??? Pin
Anonymous27-Jun-05 4:21
Anonymous27-Jun-05 4:21 
AnswerRe: what do u mean by dynamic page??? Pin
btoyer27-Jun-05 5:39
btoyer27-Jun-05 5:39 
GeneralScript for password protection of website Pin
akayoku26-Jun-05 16:40
akayoku26-Jun-05 16:40 
GeneralRe: Script for password protection of website Pin
Christian Graus26-Jun-05 17:07
protectorChristian Graus26-Jun-05 17:07 
GeneralRe: Script for password protection of website Pin
Yasin Xp4-Jul-05 20:08
sussYasin Xp4-Jul-05 20:08 
Generalimages in a webform Pin
cmarmr25-Jun-05 7:41
cmarmr25-Jun-05 7:41 
GeneralRe: images in a webform Pin
Guffa29-Jun-05 5:15
Guffa29-Jun-05 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.