visual studio 2008/asp.net: Generation of designer file failed: Could not

looking4m0are

New member
load file or assembly? full error:

"Generation of designer file failed: Could not load file or assembly 'AssemblyName', Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

what i am working with is a solution containing two web projects and a couple other class library projects containing business objects used by the web projects. this error seems to occur only when i am referencing classes from another assembly within a user control (ascx). so if my class library project has a class called Employee and i need to reference that class from a user control contained in a web project, i will occasionally get the aforementioned error.

we all know visual studio has had a life-long track record of its designer just deciding to stop generating. i've discovered that deleting the designer and selecting "convert to web application" generally tends to work perfectly. if it doesn't, excluding the aspx/cs/designer files from the project and including them again also sometime works. however, when it comes to the aforementioned error, i can't find ANY solution that works reliably. all i know is that rebooting my pc is the only thing that SEEMS to help, but it mostly just seems to boil down to visual studio arbitrarily deciding to start working again when it feels like it.

does anyone know what could be causong this issue?
 
Back
Top