Visual Studio error “Object reference not set to an instance of an object” after install of ASP.NET and Web Tools 2015

前端 未结 18 2283
名媛妹妹
名媛妹妹 2020-11-27 10:37

After installing the ASP.NET and Web Tools 2015 (RC1 update 1) I get the following error within ASP.NET MVC 4 projects when opening *.cshtml files:

18条回答
  •  忘掉有多难
    2020-11-27 11:06

    I was getting this exception every time I created a "new" project.

    My solution was:

    • Go menu Tools ? Extensions and Updates
    • Not check the "Updates" link...search "asp.net". There was an update to Microsoft ASP.NET and Web Tools. Get it as AspNetWebFrameworksTools2015_KB3137909.exe and install it.

    That fixed it for me.


    Unfortunately, I ran into another exception:

    "Exception has been thrown by the target of an invocation"

    I disabled the FIPS setting Enabled DWORD value to zero.

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy]
    Enabled=dword:00000000 And All fixed.
    

提交回复
热议问题