Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

ASP.NET C#: "object reference not set to an instance of an object" in ASPNETCOMPILER

Avatar of poultarp
poultarp asked on
.NET ProgrammingC#
10 Comments1 Solution1320 ViewsLast Modified:
Hi

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.
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscowFlag of Switzerland imageFreelance programmer / Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answers