Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
AnswerRe: SMTPServer and ProcessStartInfo Pin
Peter Josefsson Sweden21-May-08 13:56
Peter Josefsson Sweden21-May-08 13:56 
I found a Swedish article with someone running into a similar problem. I don't know the exact wording of the message - he only wrote something about the code "not being able to access the CDO.Message object" (in Swedish), which may or may not boil down to the same message.

In any case - he solved the problem by recursively looking at the InnerException of the exception thrown and so on. Turned out to be a really simple mistake (missing e-mail address), but the original exception was a bit misleading.

Try do something like this:

try
{
    // whatever you want to try...
}
catch (Exception ex)
{
    Response.Write(ex.ToString()); // shows inner exceptions as well
    Response.End();
}


(note: written as if it were a web app, which your exe probably isn't. Response.Write won't do you any good then, of course - use whatever's appropriate)

Later,

--
Peter

QuestionError message- Expected class delegate,enum,interface or struct Pin
Angelinna20-May-08 14:07
Angelinna20-May-08 14:07 
AnswerRe: Error message- Expected class delegate,enum,interface or struct Pin
carbon_golem20-May-08 14:19
carbon_golem20-May-08 14:19 
AnswerRe: Error message- Expected class delegate,enum,interface or struct Pin
Guffa20-May-08 14:20
Guffa20-May-08 14:20 
AnswerRe: Error message- Expected class delegate,enum,interface or struct Pin
Gareth H20-May-08 14:26
Gareth H20-May-08 14:26 
AnswerDid nobody spot the obvious? Pin
Anthony Mushrow20-May-08 14:34
professionalAnthony Mushrow20-May-08 14:34 
GeneralRe: Did nobody spot the obvious? Pin
Angelinna20-May-08 14:55
Angelinna20-May-08 14:55 
GeneralRe: Did nobody spot the obvious? Pin
Anthony Mushrow20-May-08 15:10
professionalAnthony Mushrow20-May-08 15:10 
QuestionRe: Did nobody spot the obvious? [modified] Pin
Angelinna20-May-08 15:49
Angelinna20-May-08 15:49 
AnswerRe: Did nobody spot the obvious? Pin
Christian Graus20-May-08 18:00
protectorChristian Graus20-May-08 18:00 
AnswerRe: Error message- Expected class delegate,enum,interface or struct Pin
Nouman Bhatti20-May-08 21:46
Nouman Bhatti20-May-08 21:46 
AnswerRe: Error message- Expected class delegate,enum,interface or struct Pin
DaveyM6921-May-08 0:11
professionalDaveyM6921-May-08 0:11 
GeneralRe: Error message- Expected class delegate,enum,interface or struct Pin
Angelinna21-May-08 2:24
Angelinna21-May-08 2:24 
GeneralRe: Error message- Expected class delegate,enum,interface or struct Pin
DaveyM6921-May-08 3:22
professionalDaveyM6921-May-08 3:22 
QuestionHow Can My Program Take StartUp Arguments? Pin
That Asian Guy20-May-08 13:35
That Asian Guy20-May-08 13:35 
AnswerRe: How Can My Program Take StartUp Arguments? Pin
Gareth H20-May-08 13:52
Gareth H20-May-08 13:52 
GeneralRe: How Can My Program Take StartUp Arguments? Pin
That Asian Guy20-May-08 14:09
That Asian Guy20-May-08 14:09 
AnswerRe: How Can My Program Take StartUp Arguments? Pin
PIEBALDconsult20-May-08 14:46
mvePIEBALDconsult20-May-08 14:46 
GeneralRe: How Can My Program Take StartUp Arguments? Pin
Vikram A Punathambekar20-May-08 18:51
Vikram A Punathambekar20-May-08 18:51 
GeneralRe: How Can My Program Take StartUp Arguments? Pin
PIEBALDconsult21-May-08 13:06
mvePIEBALDconsult21-May-08 13:06 
QuestionThe directive 'servicehost' is unknown Pin
Member 391904920-May-08 9:54
Member 391904920-May-08 9:54 
AnswerRe: The directive 'servicehost' is unknown Pin
Expert Coming20-May-08 10:21
Expert Coming20-May-08 10:21 
QuestionReturn a row count Pin
mreynol520-May-08 8:56
mreynol520-May-08 8:56 
AnswerRe: Return a row count Pin
led mike20-May-08 9:10
led mike20-May-08 9:10 
AnswerRe: Return a row count Pin
Miszou20-May-08 9:21
Miszou20-May-08 9:21 

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.