cancel
Showing results for 
Search instead for 
Did you mean: 

Object reference not set to an instance of an object in ASPNET_COMPILER

Hi

When I create a web project in Visual Studio with an *.svc file for an WCF Web Service and activates MVC View precompilation I get the error:

"Object reference not set to an instance of an object." in ASPNETCOMPILER when I try to recompile my project.

To activate MVC View precompilation I add the following build target to myapp.csproj

  <Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">

    <AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />

  </Target>

There are apparently more people having the same problem, see http://thesoftwarepractice.net/development-things/object-reference-not-set-to-an-instance-of-an-obje...

If I turn off McAfee real time scanner the problem does not exist.

Is there any way to avoid McAfee VirusScan to crash my compilation?

3 Replies
exbrit
Level 21
Report Inappropriate Content
Message 2 of 4

Re: Object reference not set to an instance of an object in ASPNET_COMPILER

can you clarify exactly which McAfee product you are using so I can move this to the appropriate section?

Thanks.

---

Peter

Moderator

Re: Object reference not set to an instance of an object in ASPNET_COMPILER

Hi

Thanks for prompt attention:

It looks like VirusScan 8.8

virussccan.png

exbrit
Level 21
Report Inappropriate Content
Message 4 of 4

Re: Object reference not set to an instance of an object in ASPNET_COMPILER

OK thank you.  Have moved this to VSE for quicker support.

Good luck ;-)