Form is shown as HTML in the designer.

T

Thore Berntsen

I have rather big VS2005, .NET CF 2.0 project. There have I for som reason
got problems with some of my forms. When I want to change them i the VS
designer they show up as HMTL instead of the graphic. Does anyone know how I
can fix this?

Thore

Here is a sample of what I get:

<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma;
font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma;
font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0;
line-height: 100%; float: left; margin-top: 0; margin-bottom:
0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align:
left; margin-left: 20; text-indent: 0}.StackStyleHidden { display:none;
font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20;
text-indent: 0}</style></head><body><DIV class="DetailsStyle"
width="100%"><table border="0" width="100%" id="table1" height="100%"
cellspacing="0" cellpadding="0"><tr><td height="40" bgcolor="#FF9999"
width="8%" style="letter-spacing: 0" align="center"><img border="0"
src="C:\Users\thore.berntsen\AppData\Local\Temp\1959467.tmp" width="35"
height="35" alt="ErrorImage" ></td><td height="40" bgcolor="#FF9999"
width="91%" style="vertical-align: top; letter-spacing: 0"
align="left"><b><font size="2" face="Arial" fontsize="70%">One or more
errors encountered while loading the designer. The errors are listed below.
Some errors can be fixed by rebuilding your project, while others may
require code changes.</font><font size="2"
face="Arial"></font></b></td></tr><tr><td colspan="2" align="left"
valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span
style="font-weight: 600"><br>ReflectionOnlyAssemblyResolve handlers must
return Assemblies loaded for reflection only. </span><br><a href=""
id="details0">Hide</a><font
color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp</font></DIV> </td> </tr> <tr><td
colspan="2" align="left" valign="top"><DIV id="div20"
class="StackStyleVisible" width="100%"><br> at
System.Reflection.Assembly._GetType(String name, Boolean throwOnError,
Boolean ignoreCase)<br> at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.AssemblyEntry.Search(String
fullName, String typeName, Boolean ignoreTypeCase, Boolean reflectionBased,
Assembly& assembly, String description)<br> at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.SearchNormalEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Boolean
reflectionBased, Assembly& assembly)<br> at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.SearchEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Boolean
reflectionBased, Assembly& assembly)<br> at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.GetDeviceType(String
typeName, Boolean throwOnError, Boolean ignoreCase)<br> at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType
refType)<br> at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String
name, Boolean throwOnError, Boolean ignoreCase)<br> at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String
name, Boolean throwOnError)<br> at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.GetType(ITypeResolutionService
trs, String name, Dictionary`2 names)<br> at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.FillStatementTable(IDesignerSerializationManager
manager, IDictionary table, Dictionary`2 names, CodeStatementCollection
statements, String className)<br> at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager
manager, CodeTypeDeclaration declaration)<br> at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
manager)<br> at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
serializationManager)<br> at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32
fReload)</DIV></td></tr></table></div></body></html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top