Solution for ASPNETCOMPILER ASPRUNTIME error: Object reference not set to an instance of an object

If you’re using Web Deployment project and during build getting errror “Object reference not set to an instance of an object” error from ASPNETCOMPILER, check the BIN folder of the project you’re compiling. Chances are, there’re some *.compiled files there. Remove them and your deployment will go thru.

13 replies on “Solution for ASPNETCOMPILER ASPRUNTIME error: Object reference not set to an instance of an object”

  1. thank you for a great post. I was already wasted so many hours and couldn’t resolve this issue until now. Thank you again…

  2. Thanks allot buddyy…its like a life jacket for me..

    again thank . Great solution

  3. tnx dude! Im just wondering! what is the connection *.compiled files to the error..

    anyway! Thanks again and Great solution!

  4. this a fantastic solution as i was scrubbing my head for past hours to overcome this issue.

  5. Thank you very much, you saved us a lot of time. By the way what is the reason for this fail?

  6. I don’t have *.compiled files over there but still i am getting this issue … m stuck

  7. When select publish, in the settings section -> File Publish Options check “Exclude files from the App_Data folder”. Work for me.

  8. well i am using FTP deploy and there are no .complied in my bin folder. any other option ?

Leave a Reply

Your email address will not be published. Required fields are marked *