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.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
Bilal IqbalPosted Jan 22, 2015, 9:31 AM
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