Problem with execution of an extern program from an asp.net application.
From: Per Andersen (pna@novenco.dk)
Date: 08/26/02
- Next message: Brad Kingsley: "Re: ASP .net forms auth against DB"
- Previous message: Kevin Spencer: "Re: memory cache"
- Next in thread: Willy Denoyette [MVP]: "Re: Problem with execution of an extern program from an asp.net application."
- Reply: Willy Denoyette [MVP]: "Re: Problem with execution of an extern program from an asp.net application."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Per Andersen" <pna@novenco.dk> Date: Mon, 26 Aug 2002 14:52:37 +0200
My problem is as follows :
The DllImport function is used to implement an extern function defined in
MyDll.dll.
[DllImport("MyDll.dll")]
[return:MarshalAs(UnmangedType.LPStr)]
public static extern string strProgramActivation();
In MyDll.dll is declared as shown bellow.
char* __stdcall strProgramActivation()
{
...
int nRes = _spawnl( _P_WAIT, MyProgram.exe, args[1], NULL);
...
return ...;
}
When _spawnl is activated MyProgram.exe is present in the taskmanager.
However MyProgram.exe doesn't start.
It seems that asp.net application dosn't allow the activated MyProgram.exe
program to execute !.
Thanks, Per
- Next message: Brad Kingsley: "Re: ASP .net forms auth against DB"
- Previous message: Kevin Spencer: "Re: memory cache"
- Next in thread: Willy Denoyette [MVP]: "Re: Problem with execution of an extern program from an asp.net application."
- Reply: Willy Denoyette [MVP]: "Re: Problem with execution of an extern program from an asp.net application."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]