Unable to catch exception in MSP 2007 + Vista

A

Anubhav Mishra

Hi All,
I am facing very strange issue with this combination.
i have code which reads like this-
try
Call method 1;

catch ex as exception
-- do something in case of exception.

method 1 returns some exception in some of the scenarios. With MSP
2007 + Vista combination - the MSP closes directly after this
exception and does not go to catch block at all..i did the remote
debugging and found it .. but on the other combinations like Vista +
MSP 2003 and XP + MSP 2007, it always goes to my catch block..so i am
not able to find what is wrong with this particular combination..any
help suggestions how to proceed , what to check are highly welcome..
thanks
anubhav
 
S

Stephen Sanderlin

In your post, you cite "catch ex as exception". However, in your actual
code, are you actually doing this or are you looking for a specific type
of exception? If you are looking for a specific type of exception, try
checking for just Exception and make sure that the exception object is
of the expected type between XP and Vista.

--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 
A

Anubhav Mishra

In your post, you cite "catch ex as exception". However, in your actual
code, are you actually doing this or are you looking for a specific type
of exception? If you are looking for a specific type of exception, try
checking for just Exception and make sure that the exception object is
of the expected type between XP and Vista.

--

Stephen Sanderlin

Principal Consultant

MSProjectExperts

For Project Server Consulting:http://www.msprojectexperts.com

For Project Server Training:http://www.projectservertraining.com

Read my blog at:http://www.projectserverhelp.com/

Join the community at:http://forums.epmfaq.com

thanks for the reply.
infact i have catch for specific exceptions and at the end a default
catch ex as exception to make sure that i catch everything..but its
not working in this combo..
rgds
anu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top