I have been developing an ASP.NET site in a folder using Visual Studio 2005 with no project or solution file. Occasionally I get very odd problems relating to two user controls such that I have to remove the user controls, re-create them (ultimately with identical names & code) and use "add existing item" before the site will build with no errors and allow me to test. I can also eliminate the problem by removing the registration of the user controls and references to them in offending forms or excluding those forms from the site.
Similar problems re-appear if I duplicate the folder contents (for a working version of the site) in a folder with a different name then try and open that site instead of the original. Again I can get it working by re-creating the user controls in the new folder.
Just for the hell of it, I tried creating the project on a USB stick, recreating the user controls in the appropriate folder on the stick until it ran without errors. I then swapped the USB stick to another PC running Visual Studio 2010 and tried to open the site but again got problems and could not build.
How can I get this project "clean" and in a state where I can copy it to other folders without incident?
When I re-introduce the registration of one of the problematic user controls in one form, it triggers 40 build errors, the vast majority of which are deemed to be in "App_Web_km2camqp.0.vb" which is presumably generated code of some sort.
Similar problems re-appear if I duplicate the folder contents (for a working version of the site) in a folder with a different name then try and open that site instead of the original. Again I can get it working by re-creating the user controls in the new folder.
Just for the hell of it, I tried creating the project on a USB stick, recreating the user controls in the appropriate folder on the stick until it ran without errors. I then swapped the USB stick to another PC running Visual Studio 2010 and tried to open the site but again got problems and could not build.
How can I get this project "clean" and in a state where I can copy it to other folders without incident?
When I re-introduce the registration of one of the problematic user controls in one form, it triggers 40 build errors, the vast majority of which are deemed to be in "App_Web_km2camqp.0.vb" which is presumably generated code of some sort.