安装Visual Studio Professional 2013更新2后,我收到以下错误:
"找不到给定选项名称的EditorOptionDefinition导出:Adornments/HighlichtCurrentLine/Enable参数名称:optionId"
ActivityLog包含以下错误:
<entry>
<record>883</record>
<time>2014/06/13 10:10:10.411</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Construction of frame content failed.
Frame identifier: ST:0:0:{0f887920-c2b6-11d2-9375-0080c747d9a0}
Frame caption: Find Results 1
Exception details:
System.ArgumentException: No EditorOptionDefinition export found for the given option name: Adornments/HighlightCurrentLine/Enable
Parameter name: optionId
 at Microsoft.VisualStudio.Text.EditorOptions.Implementation.EditorOptionsFactoryService.GetOptionDefinitionOrThrow(String optionId)
 at Microsoft.VisualStudio.Text.EditorOptions.Implementation.EditorOptions.SetOptionValue(String optionId, Object value)
 at Microsoft.VisualStudio.Text.EditorOptions.Implementation.EditorOptions.SetOptionValue[T](EditorOptionKey`1 key, T value)
 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.SetPropertiesToToolWindowDefaults()
 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Init_SetSite(Object pUnkSite)
 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.SetSite(Object pUnkSite)
 at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
 at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
 at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()</description>
</entry>
Run Code Online (Sandbox Code Playgroud)
在互联网上搜索此问题并未产生解决方案.
这个问题似乎无关: Visual Studio 2013在更新2后崩溃了吗?
任何帮助,将不胜感激.
我已经在Raspberry PI 3上安装了Ubuntu Core 16.04,并通过使用此处的说明并使用与ARM兼容的.NET Core版本1.2.0-beta-001291-00设法在其上运行.NET Core控制台应用程序芯片.
当我使用基本的ASP.NET核心应用程序执行相同操作时,我收到以下错误:
未处理的异常:System.IO.FileLoadException:无法加载文件或程序集'System.Component.Primitives,Version = 4.2.0.0,Cultire = Neutral,PublicKeyToken = b03f5f7f11d50a3a'.定位的程序集的清单定义与程序集引用不匹配.(来自HRESULT的异常:0x80131040)Microsoft的Microsoft.AspNetCore.Hosting.Internal.HostingEnvironmentExtensions.Initialize>(IHostingEnvironment hostingEnvironment,String appplicationName,String contentRootPath,WebHostOptions选项)中的Microsoft.Extensions.FileProviders.PhysicalFileError.CreateFileWatcher(String root).位于/home/freek/aspnetcore/program.cs中的Program.Main(String [] args)中的Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()的AspNetCore.Hosting.WebHostBuilder.BuildHostingServices():第12行已中止
这是program.cs的内容:
using System;
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World API!");
var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: true)
.Build();
var host = new WebHostBuilder()
.UseKestrel()
.UseConfiguration(builder)
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup<Startup>()
.Build();
host.Run();
}
}
Run Code Online (Sandbox Code Playgroud)
代码在运行.NET Core 1.1的Ubuntu的桌面上正常运行但在运行.NET Core 1.2.0-beta-001291-00的PI上出错.
在 Azure CDN 上的自定义域上打开 https 时,出现以下错误:
无法更新自定义域属性
此配置文件不支持提供的 CertificateType 值来启用 https。
该屏幕看起来与此处教程中的有所不同。
没有选择“证书管理类型”的选项