2016-12-30 52 views
1

這樣跑,他們都運行正常的而不是在VS 2013, 試圖運行項目時創建一個它成功地建立,但不會代替運行出現錯誤項目將無法格式化我的電腦我重新安裝的Visual Studio 2015和加載我的所有項目後的Visual Studio 2015年

無效指針

,這是一些挖我看了看活動日誌畢竟,我看到這個錯誤:

 <entry> 
    <record>795</record> 
    <time>2016/12/29 23:53:42.037</time> 
    <type>Information</type> 
    <source>VisualStudio</source> 
    <description>Begin package load [Microsoft.VisualStudio.TraceLogPackage.TraceLogPackage]</description> 
    <guid>{494B203E-3C94-40AB-B331-6CB32460B617}</guid> 
    </entry> 
    <entry> 
    <record>796</record> 
    <time>2016/12/29 23:53:42.037</time> 
    <type>Error</type> 
    <source>VisualStudio</source> 
    <description>CreateInstance failed for package [Microsoft.VisualStudio.TraceLogPackage.TraceLogPackage]Source: &apos;mscorlib&apos; Description: Exception has been thrown by the target of an invocation.&#x000D;&#x000A;System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.VisualStudio.Diagnostics.HubExtensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A; at Microsoft.VisualStudio.TraceLogPackage.TraceLogPackage..ctor()&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached, RuntimeMethodHandleInternal&amp; ctor, Boolean&amp; bNeedSecurityCheck)&#x000D;&#x000A; at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)&#x000D;&#x000A; at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)&#x000D;&#x000A; at System.Activator.CreateInstance(Type type, Boolean nonPublic)&#x000D;&#x000A; at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark&amp; stackMark)&#x000D;&#x000A; at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)&#x000D;&#x000A; at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A; at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A; at System.AppDomain.CreateInstance(String assemblyName, String typeName)System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.VisualStudio.Diagnostics.HubExtensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Microsoft.VisualStudio.Diagnostics.HubExtensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A; at Microsoft.VisualStudio.TraceLogPackage.TraceLogPackage..ctor()&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description> 
    <guid>{494B203E-3C94-40AB-B331-6CB32460B617}</guid> 
    <hr>80004005 - E_FAIL</hr> 
    <errorinfo></errorinfo> 
    </entry> 

沒有發現許多地方談論這個但從我發現我嘗試這些建議:

1)改名爲配置文件目錄

C:\用戶\布拉布拉\應用程序數據\漫遊\微軟\ VisualStudio的\ 14.0

2)刪除與錯誤GUID

相關的註冊表鍵,但沒有什麼工作的任何幫助,將不勝感激。

PS:我試圖加載的項目是Windows 8.1中內置應用程序用C#使用XAML

+0

您是否嘗試過修復用於JavaScript的Windows庫的Visual Studio擴展? – active92

+0

毫米我看不到連接該項目是一個Windows 8.1應用程序與C#與Xaml Visual Studio擴展Windows應用程序使用JavaScript的應用程序不應該有效果,但沒有傷害嘗試,我編輯帖子,以更好地顯示什麼項目我試圖運行謝謝 –

回答

0

儘量不要使用「用戶」文件夾。在C:\ Projects中創建一個....

+0

現在試過,但它沒有解決問題,雖然 –

+0

包拋出錯誤是NuGet的? –

+0

檢查就可以了: http://stackoverflow.com/questions/32270428/vs2015-error-while-trying-to-run-application-invalid-pointer –

相關問題