Odd error under VS2005 - 2GB ProjectAssemblies directory related

  • Thread starter Gustavo L. Fabro
  • Start date
G

Gustavo L. Fabro

Greetings.

I had an user control built on Visual Studio 2003 that I used in some forms
build also with Visual Studio 2003 (C++ was the language for both cases).

Now I'm trying to port this to VS 2005. The forms that use these specialized
..NET /CLR compiled controls will compile and run, but won't show in the
Design editor.

What happens is that when I double click the .h file to open it under the
design editor, the application freezes for about 30s (sometimes more) and
then shows the message:

"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. Clicking on each error will take you to the
line of code that caused it.

Could not find type 'QiVControls.PercentualEdit'. Please make sure that the
assembly that contains this type is referenced. If this type is a part of
your development project, make sure that the project has been successfully
built.

The variable 'edAddWeight' is either undeclared or was never assigned.

Hide

at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager
manager, String exceptionText, String helpLink)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager
manager, String name, CodeExpression expression)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager
manager, String name, CodeExpression expression)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager
manager, CodeStatement statement)
"

I noticed also that my hard drive space had vanished. After a good search I
found that, while in those 30s the program was trying to open the form under
the designer, it was eating up space creating folders under

C:\Documents and Settings\MyUserName\Local Settings\Application
Data\Microsoft\VCExpress\8.0\ProjectAssemblies\

All the folders had the same creation time as when VS was trying to load the
file. Inside each folder there was a copy of the DLL (and respective .PDB
file) *that hold the controls I was trying to load*. Is this mere
coincidence?

In one load attempt, it created 466 files, totalizing 218 MB! Is this right?

After a whole day of programming, the folder got as big as 2GB. After the
system restarted, it automatically cleaned up the folder a bit. What can be
going on?

..Fabro
 
G

Gustavo L. Fabro

"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. Clicking on each error will take you to
the line of code that caused it.

Could not find type 'QiVControls.PercentualEdit'. Please make sure that
the assembly that contains this type is referenced. If this type is a part
of your development project, make sure that the project has been
successfully built.

The variable 'edAddWeight' is either undeclared or was never assigned.

I found out one workaround for the problem. The workaround consists on
right-clicking the "Toolbox", selecting "Choose Items...", removing all
references to my user controls, hitting OK, doing this again, selecting
"Browse...", loading the DLL with the controls again and hitting OK.

This way, if I try to load the form under de designer it *will* load the
form and won't show the error message.

But as things in life, happiness doesn't last long.

The form will load during the particular VC session I did this. If I close
VC, run it again and try to load the form again, the problem strikes back!

Guess this is a Beta2 related issue... or do I smell DLL hell problems!?
hmmm...
I noticed also that my hard drive space had vanished. After a good search
I found that, while in those 30s the program was trying to open the form
under the designer, it was eating up space creating folders under

C:\Documents and Settings\MyUserName\Local Settings\Application
Data\Microsoft\VCExpress\8.0\ProjectAssemblies\

All the folders had the same creation time as when VS was trying to load
the file. Inside each folder there was a copy of the DLL (and respective
.PDB file) *that hold the controls I was trying to load*. Is this mere
coincidence?

In one load attempt, it created 466 files, totalizing 218 MB! Is this
right?

For this, though, I still do not have a reasonable explanation. Beta2
issues,
I suppose!

..Fabro
 
B

Boris Jabes [MSFT]

Hi Fabro,

It is possible that this issue comes from a Windows Forms setting that
we usually disable in the Visual C++ profile. Can you try going into
Tools \ Options \ Windows Forms Designer, then under the "Toolbox"
category, set the "AutoToolboxPopulate" property to False.

Thanks,
 

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