Thursday, July 5, 2007

When deploying to .net 2.0 web application project to production, looks for .cs file

Problem: when deploying to production, the web application is looking for the .cs file after the cs files were deleted. The cs files should have been wrapped in the assembly but didn't.
Solution: Codefile was specified in the directive. Use 'Codebehind' instead. Codebehind should have been converted automatically when you convert the website to a Web Application. Somehow if it didn't, it will look for the codefile specified.