Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / March 2007

Tip: Looking for answers? Try searching our database.

Can't load form in Design mode: Projectitem unavailable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dan Cooperstock - 06 Mar 2007 14:49 GMT
All of a sudden, I can't load one of my forms in design mode. I've been
working on making it Localizable, but haven't done any direct editing of
the resource files or the formname.designer.cs file.

What I'm seeing in VS.NET 2005 is an error window saying:

----------------------------------------------------
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.

Projectitem unavailable.

at EnvDTE.ProjectItem.get_FileCount()
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.GetF
ileNameForProjectItem(ProjectItem item)
at Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.BuildType
()
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.GetObjectTyp
e()
at Microsoft.VisualStudio.Shell.Design.GlobalType.get_ObjectType()
at Microsoft.VisualStudio.Shell.Design.GlobalObject.GetHashCode()
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GlobalKey.GetHash
Code()
at System.Collections.Generic.ObjectEqualityComparer`1.GetHashCode(T obj)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value,
Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Microsoft.VisualStudio.Shell.Design.GlobalObjectService.TrackGlobal
(GlobalObjectProvider p, GlobalType g)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects
(Type baseType)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects
()
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResoluti
onService.GetTypeFromGlobalObjects(String name, Boolean throwOnError,
Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResoluti
onService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResoluti
onService.GetType(String name, Boolean throwOnError)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.GetType
(ITypeResolutionService trs, String name, Dictionary`2 names)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.FillStat
ementTable(IDesignerSerializationManager manager, IDictionary table,
Dictionary`2 names, CodeStatementCollection statements, String className)
at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserial
ize(IDesignerSerializationManager manager, CodeTypeDeclaration
declaration)
at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformL
oad(IDesignerSerializationManager manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoad
er.PerformLoad(IDesignerSerializationManager serializationManager)
at
System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad
(IDesignerLoaderHost host)
-------------------------------------

Help! How do I fix this?

---------------------------
Dan Cooperstock
DONATION web site: http://www.FreeDonationSoftware.org
DONATION Support forums: http://forums.FreeDonationSoftware.org
E-mail: mailto:info@FreeDonationSoftware.org
Home Phone: 416-423-9064
Dan Cooperstock - 06 Mar 2007 15:09 GMT
> All of a sudden, I can't load one of my forms in design mode. I've
> been working on making it Localizable, but haven't done any direct
[quoted text clipped - 11 lines]
> tF ileNameForProjectItem(ProjectItem item)
> ...

NEVER MIND! I just exited VS.NET and restarted it, and the problem went
away. Argh!

However, if anyone has any insight about this, I'd still be interested.

---------------------------
Dan Cooperstock
DONATION web site: http://www.FreeDonationSoftware.org
DONATION Support forums: http://forums.FreeDonationSoftware.org
E-mail: mailto:info@FreeDonationSoftware.org
Home Phone: 416-423-9064

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.