Issue
While publishing the build Object reference not set to an instance of an object error
Resolution
Disable the McAfee antivirus and it works.
Here is the link to refer:
Hope it will help others if they are getting the error.
Object reference not set to an instance of an object While publishing the build from VS 2010.
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyFeatured eBookClaude for AI-Native BuildersDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Bilal IqbalPosted Jan 22, 2015, 4:31 AM EST
It could be temp directory issue. I resolved this issue many times by using reboot solution of visual studo, but today it was not getting resolved so i found another solution given here https://community.mcafee.com/thread/66019?start=0&tstart=0 Adding tempDirectory attribute to compilation tag in web.config and set it to other than default directory. No need of diabling McAfee