Home > .NET, 2010, Visual Studio > Unable to write to output file [FileName] .pdb: Unspecified error Visual Studio

Unable to write to output file [FileName] .pdb: Unspecified error Visual Studio

Today I had a very weird problem with visual studio 2010 SP1. Whenever I build the solution I keep getting “Unable to write to output file [FileName] .pdb: Unspecified error” for one of the projects.
I tried cleaning the solution, deleting files in the obj and bin folders and rebuilt, made sure that the files are not readonly. That didn’t help.

Figured out that there was a missing file in one of the projects. To know which file it is:

Close visual studio

Reopen the solution (DON’T build)

Check the Errors List

You should see

Error    1    Unable to open module file [FileName].vb : The system cannot find the file specified.    [FileName] [Project]

Categories: .NET, 2010, Visual Studio Tags: ,
  1. John
    December 6, 2011 at 9:23 am

    Thanks very much, this worked for me and it was a module missing.

  2. Mike
    June 12, 2012 at 5:42 am


  3. ChandraSekhar K
    July 17, 2012 at 5:03 am

    Thanks, it was very helpful

  4. bibin
    July 30, 2012 at 7:13 am

    Thanks its works…

  5. Bruno Alves
    August 24, 2012 at 12:00 pm


  6. Greats0ft
    November 22, 2012 at 2:56 am

    Thanks your suggestion to close VS then open and check Error List helped me to resolve the issue.

  7. Tenison
    December 19, 2012 at 7:36 pm

    Thanks very much.. It worked for me..

  8. Prithvi
    December 27, 2012 at 5:45 am


  9. Jelani
    April 2, 2013 at 7:06 pm

    You are awesome. Thanks!!

  10. Jean F.
    August 19, 2013 at 11:33 am

    Worked fo rme too. Thanks for sharing.

  11. Natiq
    September 27, 2013 at 2:03 am

    thanks man. It worked for me.

  12. Patricia
    October 2, 2013 at 11:00 am

    Very helpful, thanks!

  13. Jim Benson
    March 7, 2014 at 6:09 pm

    Nailed it! Thanks!

  14. March 25, 2014 at 10:00 pm

    Thanks it worked. Because of missing file. I removed it then work.!

  15. Poorva
    March 26, 2014 at 5:00 pm

    THANKS A LOT.. IT WORKED!!!! 🙂 🙂 🙂

  16. April 7, 2014 at 1:49 pm

    thank you

  17. Mahesh Tripathi
    July 5, 2014 at 7:55 am

    Thanks very much.. It worked for me..

  18. Senthilkumar
    October 30, 2014 at 12:44 pm

    Thanks a lot, this really helped a lot.

  19. Aryaa
    November 19, 2014 at 5:42 am

    Thanks for help…..

  20. Cameron
    January 14, 2015 at 9:59 am

    Thank you so much. I had this issue and it was driving me crazy. This post told me exactly what to do. I appreciate it.

  21. Himanshu
    March 10, 2015 at 12:56 am

    Heads OFF

  22. Joan Carles Vilà
    May 19, 2016 at 5:36 am

    thank-you very much.

    the file was corrupted, I delete it and then at restarting the vb.net the sistem restore the file

  23. August 7, 2016 at 2:39 am

    Awesome !! Big thanks.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: