Q

VB.NET console app that sends e-mails isn't working when called by ASP.NET

I have written a VB.NET console application that sends e-mails to users. I need to call this app from ASP.NET after a user clicks on submit. I called my .exe from ASP.NET directly, but there were no e-mails. I also tried to call the .exe through DLL, which is called by ASP.NET, but to no avail. I am not getting any error but no output. It calls the .exe but does nothing further -- it just exists. The .exe is working fine; I have tested it.
Testing a .exe by directly running it is different than running it under the ASP.NET process account. I'd say you have a security problem, and probably the .exe is swallowing the exception. Have you tried logging EVERY exception that could happen? By the way, why don't you use System.Web.Mail?
This was first published in September 2003

Dig deeper on ASP.NET development best practices

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close