Click here to Skip to main content
15,894,287 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:

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.

XML
<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>
Posted
Updated 18-Aug-12 12:29pm
v4
Comments
Kenneth Haugland 12-Aug-12 18:26pm    
This thing can happen if you copy large sections of code... So if you start a completely new WPF document do you get the same error. BTW: We need the error code...
Sergey Alexandrovich Kryukov 12-Aug-12 21:14pm    
Do you mean that we would need the source code? -- that would be true.
--SA
loger21 13-Aug-12 1:44am    
I say , have problem with all wpf application
Sergey Alexandrovich Kryukov 13-Aug-12 13:51pm    
I understand that, no need to repeat, but then you would need to make a code sample to reproduce the problem and show it to us, using "Improve question" above.
--SA
loger21 13-Aug-12 2:01am    
I not finding error code but you can error pic in this link : http://file123.persiangig.com/Error.PNG

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
...
 
Share this answer
 
Comments
abmgmxat 26-Aug-13 16:57pm    
Thx. Saved my problem with the designer too, but the program-file was from my mongo-db installation... very strange...
Babak Ansari 30-Sep-14 20:43pm    
It worked, that was weird!
Thanks a lot.
Subhash Lama 1-Dec-15 12:28pm    
Thanks a lot. You saved my life.
Member 11532547 10-Feb-16 4:17am    
Thanks. I had the same problem. After deleting the file the designer worked.
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 :)
 
Share this answer
 
v2
Comments
loger21 18-Aug-12 5:21am    
no , the Expression Blend not uninstalled . I supposed the specefic dll
may be lost and reinstall Expression Blend and vs 2012 , but not solved this problem
AquaGeneral 26-May-13 9:50am    
I think that file was put there after Canon drivers failed to install. It did complain about the "Program" file on C:\. At the time I had no idea what it was talking about, now I know it's the root of the designer throwing out exceptions.
This class generates error in design-time mode:
C#
class MyClass
{
   public MyClass MyProperty { get { return new MyClass(); } }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900