设计师错误vs2012 [英] Designer error vs2012

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

问题描述





我使用vs 2012并且我对所有wpf应用程序都有问题。设计师不工作

并显示这个错误:




错误图片: http:// file123 .persiangig.com / Error.PNG [ ^ ]



详情:

System.Runtime.Remoting.RemotingException

[]设计师流程意外终止!

。在Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain.Microsoft.Expression.DesignHost.Isolation.IIsolationDomain.CreateInstance(字符串的AssemblyName,字符串assemblyCodeBase,字符串的typeName)

at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()

at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance [T](Type type)
$米的b $ b crosoft.Expression.DesignHost.Isolation.IsolatedExportProvider.Initialize()

。在Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateExportProvider(IIsolationTarget isolationTarget,ICatalogFactory catalogFactory,IExportFilter滤波器)

。在Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
$在Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget,的CancellationToken cancelToken,DesignerServiceEntry&放b $ b;条目)

。在Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(的CancellationToken cancelToken)在Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture [T]

(的CultureInfo文化,Func`2 FUNC,的CancellationToken cancelToken)

。在Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler<> c__DisplayClassa`1< starttask> b__6()

at System.Threading.Tasks.Task`1.InnerInvoke()

at System.Threading.Tasks.Task.Execute()









已经Desginer运行良好而不是问题,但现在发生此异常。

你对如何解决问题有一个很好的想法吗?




这是一个没有自定义布局或代码隐藏的测试项目。



 <  窗口  

xmlns = http://schemas.microsoft.com/winfx/2006/xaml/演示文稿

xmlns:x = http ://schemas.microsoft.com/winfx/2006/xaml

x:Class = WpfApplication2.MainWindow

x:名称 = 窗口

标题 = MainWindow

宽度 = 640 高度 = 480 >

< 网格 x:名称 = LayoutRoot / >
< / Window >

解决方案

I现在这个问题持续了一个星期,它几乎让我发疯了。试过我在网上发现的每一个建议 - 没有帮助。然后我注意到我的c:驱动器根目录中的一个名为Program的文件。奇怪......我把它删除了,令我惊讶的是它修复了我的设计师问题!



这个文件的内容与OpenGL有关。有谁知道它是什么以及它是如何到达那里的?顺便说一句,我在Windows 8 Pro上安装了Visual Studio Premium。



这是程序文件的开头:

// - -------------------------------------------------- --------------

// OpenGL纹理对象

//



纹理ID 1

GL_TEXTURE_2D 800 600

GL_RGBA

GL_RGBA - 0x1908

Mem 1875 KiloBytes

内存1.83105 MegaBytes

...


此类在设计时模式下生成错误:

  class  MyClass 
{
public MyClass MyProperty { get { return new MyClass(); }}
}


由于错误开始于:Microsoft.Expression我将假设你在你的上面安装了卸载的Expression Blend或Web MAtrix电脑。这将使您已经重新启用的dll文件不再存在于您的计算机上。



这里同样的问题?

http://social.msdn.microsoft.com/Forums/en- US / toolsforwinapps / thread / a4be92da-7c8f-44ac-8986-7de7f5cfbe4d / [ ^ ]



值得一试:)


hi
I using vs 2012 and i have problem with all wpf application .Designer not working
and show this error:


Error pic : http://file123.persiangig.com/Error.PNG[^]

Details:
System.Runtime.Remoting.RemotingException
[] Designer process terminated unexpectedly!
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain.Microsoft.Expression.DesignHost.Isolation.IIsolationDomain.CreateInstance(String assemblyName, String assemblyCodeBase, String typeName)
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.Expression.DesignHost.Isolation.IsolatedExportProvider.Initialize()
at Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateExportProvider(IIsolationTarget isolationTarget, ICatalogFactory catalogFactory, IExportFilter filter)
at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<starttask>b__6()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()




already Desginer working well and not problem , but now occur this exception.
Do you have a good idea of how to solve problem?


this is test project with out custom layout or codebehind.

<Window

	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

	x:Class="WpfApplication2.MainWindow"

	x:Name="Window"

	Title="MainWindow"

	Width="640" Height="480">

	<Grid x:Name="LayoutRoot"/>
</Window>

解决方案

I was having this issue for a week now and it almost drove me crazy. Tried every suggestion I found on web - no help. Then I noticed a file in root of my c: drive named "Program". Strange... I removed it and to my surprise it fixed the designer issue for me!

The content of this file is related to OpenGL. Does anyone know what is it and how it got there? BTW I have Visual Studio Premium on Windows 8 Pro.

Here is the beginning of the "Program" file:
// ------------------------------------------------------------------
// OpenGL Texture Objects
//

Texture ID 1
GL_TEXTURE_2D 800 600
GL_RGBA
GL_RGBA - 0x1908
Mem 1875 KiloBytes
Mem 1.83105 MegaBytes
...


This class generates error in design-time mode:

class MyClass
{
   public MyClass MyProperty { get { return new MyClass(); } }
}


Since the error starts with: Microsoft.Expression Im going to assume that you heave either uninstalled Expression Blend or Web MAtrix on your computer. This would make the dll files you have refenrenced, no longer exists on your computer.

Same problem here?
http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/a4be92da-7c8f-44ac-8986-7de7f5cfbe4d/[^]

Its worth a try :)


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

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