2013-04-18 39 views
16

我的asp.net MVC4應用程序出現這個錯誤的頻率很高。該項目沒有生成確定,但它在輸出中顯示一條消息。生成後出現錯誤 - Web Essentials 2012

18/04/2013 3:17:57 p.m.: Object reference not set to an instance of an object. 
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder() 
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder() 

我正在使用VS2012更新1. Web Essentials 2012版本2.6。

這不是主要,但煩惱。請幫忙。

+0

似乎是一個Web Essentials錯誤。如果您在解決方案資源管理器中選擇一個項目,然後構建,它不會顯示錯誤。請參閱https://github.com/madskristensen/WebEssentials2013/issues/61。 – ctc

+0

我得到這個並關閉所有我打開的標籤/文件似乎爲我修復它。 – chrisb

回答

2

這是一個較老的問題,但在Google上名列前茅。所以這是我的答案。我發現這是由於Visual Studio和Web Essential 2012 Extension中的一些版本衝突或早期錯誤而發生的。通過Visual Studio 2012的RTM安裝和最新的Web Essentials(本文發佈時的版本3.2),我可以重現此錯誤。

安裝Visual Studio的最新更新已解決了我的問題。更新

要確認你正在運行的版本的Visual Studio,轉到Help -> About

Update 3或更大的應該解決這個問題

微軟的Visual Studio 2012最終
版本11.0.60610.01更新3

這是Microsoft網站上的Visual Studio update的鏈接

+1

VS 11 Update 4,Web Essentials 3.8。問題仍然存在:( – Motti

+0

有點相同的問題,除了我只有當我打開項目的屬性選項卡時纔會出現錯誤,只要關閉項目的屬性選項卡並重新構建,一切都很好,以下是我的版本: 'Win7 x64 SP1' 'VS Pro 2013 - v12.0.31101.00 Update 4' '.NET Framework - v4.5.51209' 'Web Essentials 2013 for Update 4 - v2.5.4' –

2

這是舊的,但我會加我的問題。

它發生在VS2012與Web Essentials 只有當選擇一個文件夾並且我請求構建(CTRL + SHIFT + B)時纔會發生。 如果我選擇一個項目,錯誤消失。

13/04/2015 01:42:47: Parâmetro incorreto. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) 
    at EnvDTE.Properties.Item(Object index) 
    at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder() 
    at EnvDTE.Properties.Item(Object index) 
    at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder() 
13/04/2015 01:42:47: Parâmetro incorreto. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) 
    at EnvDTE.Properties.Item(Object index) 
    at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder() 
    at EnvDTE.Properties.Item(Object index) 
    at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder() 
13/04/2015 01:42:47: Parâmetro incorreto. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) 
    at EnvDTE.Properties.Item(Object index) 
    at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder() 
    at EnvDTE.Properties.Item(Object index) 
    at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder() 
相關問題