Microsoft Visual Web Express错误 [英] Microsoft Visual Web express error

查看:46
本文介绍了Microsoft Visual Web Express错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天一切正常。 今天当我打开VWE 10并尝试加载网站时,我收到了以下错误:Visual Studio遇到异常。 这可能是由扩展引起的。 请检查日志文件
.......

Yesterday everything worked fine.  today when I open up VWE 10 and try to load a site, I get the followint error: Visual Studio has encountered an exception.  This may be caused by an extension.  please examin the log file located .......

当我查看日志文件时,我有3行看起来像这样:

when i look at the log file i have 3 lines that look like this:

< record> 196< / record>

    < time> 2010/10/27 11:09:24.272< / time>

    < type> 错误< / type>

    < source>编辑或编辑扩展< / source>

    < description> System.IO.FileNotFoundException:无法找到指定的文件。&#x000D;&#x000A;   在MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32 hr)&#x000D;&#x000A;  
at MS.Internal.Text.TextInterface.Font.CreateFontFace()&#x000D;&#x000A;  在MS.Internal.Text.TextInterface.Font.AddFontFaceToCache()&#x000D;&#x000A;  在MS.Internal.Text.TextInterface.Font.GetFontFace()&#x000D;&#x000A;   System.Windows.Media.GlyphTypeface..ctor(字体字体)&#x000D;&#x000A;  
在MS.Internal.FontFace.PhysicalFontFamily.GetGlyphTypeface(FontStyle样式,FontWeight权重,FontStretch伸展)&#x000D;&#x000A;  在MS.Internal.FontFace.PhysicalFontFamily.MS.Internal.FontFace.IFontFamily.GetTypefaceMetrics(FontStyle
风格,fontWeight设置重量,FontStretch拉伸)及#x000D;&安培;#x000A;&NBSP;&NBSP;在System.Windows.Media.Typeface.ConstructCachedTypeface()&#x000D;&#x000A;  在System.Windows.Media.Typeface.get_CachedTypeface()&#x000D;&#x000A;  
在System.Windows.Media.Typeface.CheckFastPathNominalGlyphs(CharacterBufferRange charBufferRange,双emSize,双scalingFactor,双widthMax,布尔keepAWord,布尔numberSubstitution,CultureInfo的CultureInfo的,TextFormattingMode textFormattingMode,
布尔isSideways,的Int32&放大器;放大器; stringLengthFit)及#x000D;&安培;#x000A;&NBSP;&NBSP;在MS.Internal.TextFormatting.SimpleRun.CreateSimpleTextRun(CharacterBufferRange charBufferRange,TextRun textRun,TextFormatterImp格式化器,的Int32 widthLeft,布尔
emergencyWrap)及#x000D;&安培;#x000A;&NBSP;&NBSP;在MS.Internal.TextFormatting.SimpleRun.Create(FormatSettings设置,CharacterBufferRange charstring类型,TextRun textRun,CP的Int32,的Int32 cpFirst,游程长度的Int32,的Int32 widthLeft)及#x000D;&安培;#x000A;&NBSP;&NBSP;
at MS.Internal.TextFormatting.SimpleTextLine.Create(FormatSettings settings,Int32 cpFirst,Int32 paragraphWidth)& #x000D;&#x000A;  在MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(TextSource textSource,Int32 firstCharIndex,
Int32 lineLength,Double paragraphWidth,TextParagraphProperties paragraphProperties,TextLineBreak previousLineBreak,TextRunCache textRunCache)& #x000D;&#x000A;  在MS.Internal.TextFormatting.TextFormatterImp.FormatLine(TextSource textSource,
的Int32 firstCharIndex,双paragraphWidth,TextParagraphProperties paragraphProperties,TextLineBreak previousLineBreak)及#x000D;&安培;#x000A;&NBSP;&NBSP;在System.Windows.Media.FormattedText.LineEnumerator.FormatLine(TextSource textSource,的Int32 textSourcePosition,
双击maxLineLength,TextParagraphProperties paraProps,TextLineBreak换行符)及#x000D;&安培;#x000A;&NBSP;&NBSP;在System.Windows.Media.FormattedText.LineEnumerator.MoveNext()&#x000D;&#x000A;  在System.Windows.Media.FormattedText.DrawAndCalculateMetrics(DrawingContext
dc,Point drawingOffset,Boolean getBlackBoxMetrics)&#x000D;&#x000A;  在System.Windows.Media.FormattedText.get_Metrics()&#x000D;&#x000A;  在System.Windows.Media.FormattedText.get_Height()&#x000D;&#x000A;  
at Microsoft.VisualStudio.Text.Formatting.Implementation.TextInfoCache.GetTextInfo(TextRunProperties key)&#x000D;&#x000A;  在Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedTextSourceFactoryService.Create(ITextSnapshot sourceTextSnapshot,
ITextSnapshot visualBufferSnapshot,Int32 tabSize,Double baseIndentation,Double wordWrapWidth,Double maxAutoIndent,Boolean useDisplayMode,IClassifier aggregateClassifier,ITextAndAdornmentSequencer sequencer,IClassificationFormatMap classificationFormatMap,
布尔值isViewWrapEnabled)&#x000D;&#x000A;  在Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot,ITextSnapshot newVisualSnapshot,SnapshotPoint anchorPosition,Double verticalDistance,
ViewRelativePosition relativeTo,Double effectiveViewportWidth,Double effectiveViewportHeight)&#x000D;&#x000A; &NBSP;&NBSP;在Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot,ITextSnapshot newVisualSnapshot)&#x000D;&#x000A;  
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshot(TextSnapshotChangedEventArgs e)&#x000D;&#x000A;  在Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshotOnUIThread(TextSnapshotChangedEventArgs
e)&#x000D;&#x000A;  在Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.OnVisualBufferChanged(Object sender,TextContentChangedEventArgs e)&#x000D;&#x000A;  在Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent [TArgs](对象
发件人,EventHandler`1 eventHandlers,TArgs args)< / description>

 

<record>196</record>
    <time>2010/10/27 11:09:24.272</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.IO.FileNotFoundException: Unable to find the specified file.&#x000D;&#x000A;   at MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32 hr)&#x000D;&#x000A;   at MS.Internal.Text.TextInterface.Font.CreateFontFace()&#x000D;&#x000A;   at MS.Internal.Text.TextInterface.Font.AddFontFaceToCache()&#x000D;&#x000A;   at MS.Internal.Text.TextInterface.Font.GetFontFace()&#x000D;&#x000A;   at System.Windows.Media.GlyphTypeface..ctor(Font font)&#x000D;&#x000A;   at MS.Internal.FontFace.PhysicalFontFamily.GetGlyphTypeface(FontStyle style, FontWeight weight, FontStretch stretch)&#x000D;&#x000A;   at MS.Internal.FontFace.PhysicalFontFamily.MS.Internal.FontFace.IFontFamily.GetTypefaceMetrics(FontStyle style, FontWeight weight, FontStretch stretch)&#x000D;&#x000A;   at System.Windows.Media.Typeface.ConstructCachedTypeface()&#x000D;&#x000A;   at System.Windows.Media.Typeface.get_CachedTypeface()&#x000D;&#x000A;   at System.Windows.Media.Typeface.CheckFastPathNominalGlyphs(CharacterBufferRange charBufferRange, Double emSize, Double scalingFactor, Double widthMax, Boolean keepAWord, Boolean numberSubstitution, CultureInfo cultureInfo, TextFormattingMode textFormattingMode, Boolean isSideways, Int32&amp; stringLengthFit)&#x000D;&#x000A;   at MS.Internal.TextFormatting.SimpleRun.CreateSimpleTextRun(CharacterBufferRange charBufferRange, TextRun textRun, TextFormatterImp formatter, Int32 widthLeft, Boolean emergencyWrap)&#x000D;&#x000A;   at MS.Internal.TextFormatting.SimpleRun.Create(FormatSettings settings, CharacterBufferRange charString, TextRun textRun, Int32 cp, Int32 cpFirst, Int32 runLength, Int32 widthLeft)&#x000D;&#x000A;   at MS.Internal.TextFormatting.SimpleTextLine.Create(FormatSettings settings, Int32 cpFirst, Int32 paragraphWidth)&#x000D;&#x000A;   at MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(TextSource textSource, Int32 firstCharIndex, Int32 lineLength, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)&#x000D;&#x000A;   at MS.Internal.TextFormatting.TextFormatterImp.FormatLine(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak)&#x000D;&#x000A;   at System.Windows.Media.FormattedText.LineEnumerator.FormatLine(TextSource textSource, Int32 textSourcePosition, Double maxLineLength, TextParagraphProperties paraProps, TextLineBreak lineBreak)&#x000D;&#x000A;   at System.Windows.Media.FormattedText.LineEnumerator.MoveNext()&#x000D;&#x000A;   at System.Windows.Media.FormattedText.DrawAndCalculateMetrics(DrawingContext dc, Point drawingOffset, Boolean getBlackBoxMetrics)&#x000D;&#x000A;   at System.Windows.Media.FormattedText.get_Metrics()&#x000D;&#x000A;   at System.Windows.Media.FormattedText.get_Height()&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Formatting.Implementation.TextInfoCache.GetTextInfo(TextRunProperties key)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedTextSourceFactoryService.Create(ITextSnapshot sourceTextSnapshot, ITextSnapshot visualBufferSnapshot, Int32 tabSize, Double baseIndentation, Double wordWrapWidth, Double maxAutoIndent, Boolean useDisplayMode, IClassifier aggregateClassifier, ITextAndAdornmentSequencer sequencer, IClassificationFormatMap classificationFormatMap, Boolean isViewWrapEnabled)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot, ITextSnapshot newVisualSnapshot, SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportWidth, Double effectiveViewportHeight)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot, ITextSnapshot newVisualSnapshot)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshot(TextSnapshotChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshotOnUIThread(TextSnapshotChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.OnVisualBufferChanged(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description>
 

从昨天到今天唯一改变的是我昨天下午晚些时候安装了Visio 2010试用版。

the only thing that changed from yesterday to today is i installed Visio 2010 trial late in the afternoon yesterday.

推荐答案

万一其他人遇到此问题,我设法通过更改Visual Studio设计器界面中使用的字体来解决它。 这似乎是造成错误的原因。  consolas字体决定从我的系统中消失。

Just in case anyone else comes across this issue, I managed to resolve it by changing the font used in the Visual Studio designer interface.  This seems to be what was causing the error.  The consolas font had decided to disappear form my system.

工具>环境>字体和颜色。

Tools > Environment > Fonts and colors.


这篇关于Microsoft Visual Web Express错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆