打开WPF设计器时出现C运行时库错误 [英] C runtime library error when opening WPF designer

查看:143
本文介绍了打开WPF设计器时出现C运行时库错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我在Windows Vista Ultimate SP1(32位)上使用Visual Studio 2008 Professional SP1和.NET Framework 3.5 SP1。

当我双击XAML时解决方案中的文件探索以打开WPF设计器,消息对话显示标题为"Microsoft Visual C ++运行时库"。说

Hi, all.

I'm using Visual Studio 2008 Professional SP1 with .NET Framework 3.5 SP1 on Windows Vista Ultimate SP1 (32bit).

When I double-click a XAML file in solution explore to open WPF designer, a message dialogue shows with title "Microsoft Visual C++ Runtime Library" saying

运行时错误!

程序:C:\Progr ...

R6034
应用程序试图加载C运行库库不正确。
请联系应用程序的支持团队获取更多信息。
Runtime Error!

Program: C:\Progr...

R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.


和VS停止响应。

和sxstrace说


and VS stops responding.

And sxstrace says

= ================
开始激活上下文生成。
输入参数:
Flags = 0
ProcessorArchitecture = x86
CultureFallBacks = en-US ; en; ja-JP; ja
ManifestPath = C:\ Windows \assembly\GAC_32\PresentationCore \3.0.0.0__31bf3856ad364e35\PresentationCore.dll
AssemblyDirectory = C:\ Windows \ assembly\GAC_32\PresentationCore \3.0.0.0__31bf3856ad364e35 \
应用程序配置文件=
-----------------
信息:解析清单文件C:\Windows\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\PresentationCore.dll < br> INFO:Manifest Definition Identity是PresentationCore,processorArchitecture =" X86",type =" win32",version =" 1.0.0.0"。
INFO:参考:Microsoft.VC80.CRT,processorArchitecture =" ; x86",publicKeyToken =" 1fc8b3b9a1e18e3b",type =" win32",version =" 8.0.50727.1830"
INFO:解析引用Microsoft.VC80.CRT,processorArchitecture =" x86",publicKeyToken =" ; 1fc8b3b9a1e18e3b",type =" win32",version =" 8.0.50727.1830"。
INFO:解析ProcessorArchitecture x86的引用。
INFO:解析文化中性的引用。
INFO:应用绑定策略。
信息:在C:查找发布者策略:\\ n \\ _Sindows \ WinSxS \\\ifeifests \ x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.1801_none_516953ad0f4d16c4.manifest
INFO:没有绑定策略重定向d。
INFO:开始汇编探测。
INFO:在WinSxS中找不到程序集。
INFO:尝试在C:\ Windows \assembly\GAC_32\Microsoft.VC80探测清单.CRT \8.0.50727.1830__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL。
INFO:尝试在C:\ Windows \assembly \ GAC_32 \ PresentationCore \3.0.0.0__31bf3856ad364e35 \探测清单Microsoft.VC80.CRT.DLL。
INFO:尝试在C:\ Windows \assembly \ GAC_32 \ PresentationCore \3.0.0.0__31bf3856ad364e35\Microsoft.VC80.CRT.MANIFEST探测清单。
信息:尝试在C:\\ _Windows\assembly\GAC_32 \ PresentationCore \3.0.0.0__31bf3856ad364e35 \ Microsoft.VC80.CRT \ Microsoft.VC80.CRT.DLL中探测清单。
INFO:尝试亲显示在C:\ Windows \assembly\GAC_32 \ PresentationCore \3.0.0.0__31bf3856ad364e35\Microsoft.VC80.CRT\Microsoft.VC80.CRT.MANIFEST。
INFO:未找到清单culture ALLutral。
INFO:End assembly probing。
错误:无法解析引用Microsoft.VC80.CRT,processorArchitecture =" x86",publicKeyToken =" 1fc8b3b9a1e18e3b",type =" win32",version =" ; 8.0.50727.1830"。

错误:激活上下文生成失败。
结束激活上下文生成。
=================
Begin Activation Context Generation.
Input Parameter:
    Flags = 0
    ProcessorArchitecture = x86
    CultureFallBacks = en-US;en;ja-JP;ja
    ManifestPath = C:\Windows\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\PresentationCore.dll
    AssemblyDirectory = C:\Windows\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\
    Application Config File =
-----------------
INFO: Parsing Manifest File C:\Windows\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\PresentationCore.dll.
    INFO: Manifest Definition Identity is PresentationCore,processorArchitecture="X86",type="win32",version="1.0.0.0".
    INFO: Reference: Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.1830"
INFO: Resolving reference Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.1830".
    INFO: Resolving reference for ProcessorArchitecture x86.
        INFO: Resolving reference for culture Neutral.
            INFO: Applying Binding Policy.
                INFO: Find publisher policy at C:\Windows\WinSxS\manifests\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.1801_none_516953ad0f4d16c4.manifest
                INFO: No binding policy redirect found.
            INFO: Begin assembly probing.
                INFO: Did not find the assembly in WinSxS.
                INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_32\Microsoft.VC80.CRT\8.0.50727.1830__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL.
                INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\Microsoft.VC80.CRT.DLL.
                INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\Microsoft.VC80.CRT.MANIFEST.
                INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\Microsoft.VC80.CRT\Microsoft.VC80.CRT.DLL.
                INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\Microsoft.VC80.CRT\Microsoft.VC80.CRT.MANIFEST.
                INFO: Did not find manifest for culture Neutral.
            INFO: End assembly probing.
    ERROR: Cannot resolve reference Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.1830".
ERROR: Activation Context generation failed.
End Activation Context Generation.


VS2008中没有SP1 + .NET Framework 3.5没有SP1同样的事情发生
它不依赖于特定的XAML文件,它发生在一个新的简单WPF项目上。
除WPF之外的所有东西都能正常工作。

我认为这个问题是由VC80.CRT在文章中讨论得出的:


The same thing happens in VS2008 WITHOUT SP1 + .NET Framework 3.5 WITHOUT SP1
It doesn't depend on specific XAML files, it happens on a new simple WPF project.
Everything except WPF works fine.

I think this problem results from VC80.CRT discussed on an article:

HTTP:// www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.vsnet.setup&tid=fa0d9d92-66b4-447f-b3fa-e5cca548ce07&cat=en_US_e0ba2117-6f93-4d68-85a6- 71138aa34e53 <= en& cr = US& sloc =& p = 1


所以我重新安装了3.5 SP1,但无济于事。

我试过" sfc / scannow"但是没有用。

这个问题可能与以下这些文章有关:


So I reinstalled 3.5 SP1 but to no avail.

I tried "sfc /scannow" but without avail.

This problem might have something to do with these articles below:

http://social.msdn.microsoft.com/forums/en-US/windowsworkflowfoundation/thread/5d57e3b1-80c0-43c2-8eab-0b7c4fe168e2/

http://www.eggheadcafe.com/software /aspnet/33140441/vs2008-sp1-problems.aspx

http://channel9.msdn.com/forums/Coffeehouse/421846-SIDEbySIDE-Errors-With-VS2008/

但其中一些文章没有回答,另一篇文章没有回答不帮我。

有没有人有任何建议?

谢谢。


But some of these articles are not answered and the other does not help me.

Does anybody have any suggestions ?

Thanks.


推荐答案

我刚开始得到同样的错误。我已经重新应用了服务包1,但没有帮助。

任何想法?
i just started getting the same error.  i have reapplied service pack 1, but no help.

any ideas?


这篇关于打开WPF设计器时出现C运行时库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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