Web Client Software Factory Add View ( with Presenter ) Error? - Try Deleting .gpState File
Source: David Hayden ( Florida MVP C# ), Filed: Web Client Software Factory
Over the past week I have been creating a new Add View ( with Presenter ) Recipe that I can use in my development without the need of the WCSF. Once in awhile I get that pain in the ass Add View ( with presenter ) Error that continues to plague my projects well after I applied the “fix” provided by the Web Client Software Factory Team. Suffice to say that “fix” is not a fix.
Anyway, when I delete the .gpState File associated with the solution it temporarily fixes the problem each time - until it happens again :) This confirms what I always suspected - the error is often solution specific and might be traced to that .gpState File.
When you delete the .gpState file and re-open the solution, the WCSF Guidance Package will have to be re-enabled for use with the solution. Just go to your Tools Menu and select Guidance Package Manager. There is a button, called Enable / Disable Packages... that will allow you to pick the Web Client Development or Web Client Development (WAP) Guidance Package depending on your needs. You should then be able to use all the recipes.
Unfortunately, when that Add View ( with presenter ) Error starts occuring in your application even after you applied the bogus WCSF Fix ( which really doesn't work ), there is no other known way to fix this problem. When your back is up against the wall, I say delete the .gpState file ( keep a backup in case ) and see if it fixes the problem. I have been pleasantly surprised each time that it fixes the problem.
News Feed: David Hayden ( Florida MVP C# )
Filed: Web Client Software Factory