Error Creating Debug Information - Code Won't Compile

前端 未结 19 2100
深忆病人
深忆病人 2021-02-18 15:04

I\'m using VS 2008. When ever I make a change in my code and try to compile I get the following error:

Error 7 Unexpected error creating debug informa

相关标签:
19条回答
  • 2021-02-18 15:29

    The only thing that worked for me is to remove the optimizeCompilations="true" attribute from on the compilation element in my Web.Config file.

    Compilation time may be a little longer, but it worked well.

    0 讨论(0)
  • 2021-02-18 15:29

    This problem started occurring for me after changing from Cassini to IIS Express as my platform for debugging.

    Cassini was much better than IIS Express but doesn't properly support the Integrated pipeline. IIS Express is hopeless.

    This seems to be some sort of race condition in Visual Studio or IIS Express. It is nothing to do with one project locking another project - the locks are coming solely from the activity of the web application's build process.

    Anyways, none of the above solutions worked for me. Unlocker doesn't seem to be supported for Windows 8 anymore. So instead I tried LockHunter. What I do is keep the LockHunter app open all day. If I get a complaint about some file being locked I copy and paste the file path into LockHunter then try again. This usually sorts out the problem but sometimes takes a few attempts.

    0 讨论(0)
  • 2021-02-18 15:30

    Not need to restart or delete the file.Deleting will not be possible , you will get error message. Just rename the file and that is enough. VS2010 will create another file for you as it wont find the origional. :)

    0 讨论(0)
  • 2021-02-18 15:35

    This worked for me. What I done was that close my visual studio and delete the .suo file and then re-open the solution. The locking should be disappeared now. Cheers.

    0 讨论(0)
  • 2021-02-18 15:35

    I had the same issue from time to time. Usually no problem but once in a while... This particular time, it was impossible to work. I would shut the application down, and even that didn't work most of the time. I saw this post and a person said they had no issues until they started a WPF application. I was playing music (radio station) in the background with Windows 8 "Music" app. I had the idea that it was a Microsoft App built with Visual Studio. Once I stopped playing music, I never encountered the error. If you are reading this, see if you have any Microsoft apps running.

    0 讨论(0)
  • 2021-02-18 15:36

    When I have problems with locked files, I use Unlocker. (If you tried everything and it's not working, try this ;)

    In case of broken link, here's a mirror.

    0 讨论(0)
提交回复
热议问题