logo       

Re: is program running?: msg#00021

org.user-groups.dotnet.padnug

Subject: Re: is program running?


Try outputing Exception.ToString() instead of just the
Message. There's sometimes an InnerException that's
more descriptive. The output would look something
like InvalidOperationException: some message -> inner
exception name: better message.


--- Justin Collum <justin@xxxxxxxxxxxxxxxx> wrote:

> I looked at what you suggested but I'm getting a
> different exception
> type. I'm getting System.InvalidOperationException.
>
> Nick Hebb wrote:
>
> >What kind of exception did it throw?
> >
> >
> >--- Justin Collum <justin@xxxxxxxxxxxxxxxx> wrote:
> >
> >
> >
> >>Here's where it gets weird. I decided to start
> with
> >>a clean slate. I
> >>made a new solution with a class library
> (containing
> >>all the code that
> >>investigates the processes etc.) and a console app
> >>in the same solution
> >>that ran the class library. It all worked fine.
> >>
> >>Then I added those two projects to the solution
> that
> >>contained an
> >>installer and my web forms projects. Bam:
> exception.
> >>Keep in mind that I
> >>added the projects, not the code. So all things
> >>being equal it won't
> >>work if it's part of one solution but will work as
> >>part of another. ???
> >>
> >>-- Justin
> >>
> >>Ted Kubaska wrote:
> >>
> >>
> >>
> >>
> >
> >
>
>




__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise