2013-10-14 52 views
1

我有.NET 4.5安裝在我的dev的機器: enter image description here.NET 4.5安裝,但在應用程序運行錯誤信息

不過,我得到這個消息時,我的應用程序運行:

enter image description here

我在我的app.config中有這個:

<supportedRuntime version="v4.5" sku=".NETFramework, version=v4.5"/> 

有什麼我需要做的嗎?

+1

如果你說'是'會發生什麼? – lunadir

+0

我的瀏覽器被重定向到Microsoft搜索頁面,並以我的應用程序的名稱作爲搜索詞。顯然它沒有找到任何東西 –

回答

3

我取代<supportedRuntime>節點與此:

<startup> 
    <supportedRuntime version="v4.0.30319"/> 
</startup> 

按照this MSDN上。它同時適用於.NET 4和4.5,它們的目標是相同版本的CLR v4.0.30319。

相關問題