none
Visual Basic and Task.Duration1Estimated exception RRS feed

  • Question

  • When using Visual Basic 2010 to read an MSP 2010 file, I get "A problem occured while reading the file" exceptions thrown when attempting to read the task.Duration1Estimated field.  Is this a corruption problem?
    Monday, January 2, 2012 3:58 AM

Answers

  • In addition to Brian's questions, when you use Project 2010 and attempt to open the file, do you do it successfully?  If yes, then the file is unlikely to be corrupted. If no, then pay attention to the error message and accept the possibility it has become corrupted.  Corruption is caused by something; you'll need to think about what the cause might be.  If you need to fix a corrupted file, see http://project.mvps.org/faqs.htm#Handling_project_file_corruption_and/or_bloat, and if that does not work, then abandon that file and use a recent backup.
    --rms www.rmschneider.com
    Monday, January 2, 2012 5:25 AM

All replies

  • How are you reading it? What is the code that is giving the error? Is this an Addin to Project 2010 or a stand alone app that is trying to open a MPP file?
    Brian Kennemer – DeltaBahn Senior Architect
    endlessly obsessing about Project Server…so that you don’t have to.
    Blog | Twitter | LinkedIn
    Monday, January 2, 2012 4:03 AM
    Moderator
  • In addition to Brian's questions, when you use Project 2010 and attempt to open the file, do you do it successfully?  If yes, then the file is unlikely to be corrupted. If no, then pay attention to the error message and accept the possibility it has become corrupted.  Corruption is caused by something; you'll need to think about what the cause might be.  If you need to fix a corrupted file, see http://project.mvps.org/faqs.htm#Handling_project_file_corruption_and/or_bloat, and if that does not work, then abandon that file and use a recent backup.
    --rms www.rmschneider.com
    Monday, January 2, 2012 5:25 AM