ASP.NET C#: "object reference not set to an instance of an object" in ASPNETCOMPILER
Posted on 2014-08-15
I have a website made in VS 2012. The site builds, complies and runs without problem on my localhost. However, when I try and publish the website I get this error:
"Oject reference not set to an instance of an object" in the file ASPNETCOMPILER.
I have searched the net for a solution, and I have found various solutions, but non of them have worked.
Here are some of the things I have tried so far:
- Deleting all dll files in the Bin folder with the extension .Compiled
- Deleting all dll files in the Bin folder with the extension .Refresh
- Disabling my anti virus
- Trying to compile the website from another computer
- Moving the website from the development server to my local computer and publish it from there
Anyone else how have had this problem and found a solution not mentioned above?
Thanks in advance.