Hi,
I am trying to invoke an external email management
program from my
ASP.NET web application. For testing purposes I created a
very simple
webform that has a single button. The code behind has the
following:
Sub btnGo_Click(ByV al sender as System.Object, ByVal e as
System.EventArg s) Handles btnGo.Click
Dim objInfo As New ProcessStartInf o()
objInfo.FileNam e = "c:\program files\gammadyne
mailer\gm.exe"
objInfo.Argumen ts = "/t e:\temp\cba\eec m.txt"
Dim objProc As New Process()
objProc.Start(o bjInfo)
End Sub
When I click on the Go button, I can see gm.exe in the
Task Manager,
but nothing happens. The program doesnt send out the
email like it's
supposed to. When I use the same piece of code in a
Windows
Application or a Windows Service it works just fine.
I know this has to do with the security of the ASPNET
user, but I have
also tried executing the webform and the web application
under a
different user that belongs to the Administrators group,
but with the
same result. So I don't know what to do, please advice.
Regards,
Nibha
I am trying to invoke an external email management
program from my
ASP.NET web application. For testing purposes I created a
very simple
webform that has a single button. The code behind has the
following:
Sub btnGo_Click(ByV al sender as System.Object, ByVal e as
System.EventArg s) Handles btnGo.Click
Dim objInfo As New ProcessStartInf o()
objInfo.FileNam e = "c:\program files\gammadyne
mailer\gm.exe"
objInfo.Argumen ts = "/t e:\temp\cba\eec m.txt"
Dim objProc As New Process()
objProc.Start(o bjInfo)
End Sub
When I click on the Go button, I can see gm.exe in the
Task Manager,
but nothing happens. The program doesnt send out the
email like it's
supposed to. When I use the same piece of code in a
Windows
Application or a Windows Service it works just fine.
I know this has to do with the security of the ASPNET
user, but I have
also tried executing the webform and the web application
under a
different user that belongs to the Administrators group,
but with the
same result. So I don't know what to do, please advice.
Regards,
Nibha