J
Jeff
I've created some code that takes some values off a database and
creates a customized Project 2003 Plan. When I run this code thru
using VS2005 it runs fine. However when I run the code outside of
VS2005 I get the following error.
Return argument has an invalid type.
Narrowing it down, this is the section of code that is throwing the
error.
foreach (msPrj.Task objTask in objProj.ActiveProject.Tasks)
{
if ((bool)objTask.Summary == false && (int)objTask.Duration != 0)
objTask.Duration = (int)objTask.Duration * ScalePercent;
}
In particular it's the objProg.ActiveProject.Tasks that is causing the
problem. I know this from trying to set a value of object to the task
collection and getting the same error.
Has anyone seen this? Have any ideas/solutions. The strange thing is
it works within VS2005.
Thanks
Jeff
creates a customized Project 2003 Plan. When I run this code thru
using VS2005 it runs fine. However when I run the code outside of
VS2005 I get the following error.
Return argument has an invalid type.
Narrowing it down, this is the section of code that is throwing the
error.
foreach (msPrj.Task objTask in objProj.ActiveProject.Tasks)
{
if ((bool)objTask.Summary == false && (int)objTask.Duration != 0)
objTask.Duration = (int)objTask.Duration * ScalePercent;
}
In particular it's the objProg.ActiveProject.Tasks that is causing the
problem. I know this from trying to set a value of object to the task
collection and getting the same error.
Has anyone seen this? Have any ideas/solutions. The strange thing is
it works within VS2005.
Thanks
Jeff