View Single Post
 
Old July 19th, 2007, 03:04 PM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Gonzalo,

MS started ASP.NET 2.0 with just the website model to eliminate the whole dependency on IIS but got so much flak from the developer community that they had to re-create the web project model. I, for one, much prefer a project based model as it makes working with web apps or libraries or win apps or console app much more consistent.

Lawrence,

ASP.NET 2.0 automatically compiles any CS files in the App_Code directory. If the web app conversion process left the files in there, you would get class instantiation problems because the classes would be compiled in both the main project DLL (precompiled) as well as the assembly dynamically compiled at runtime from the files present in the app_code folder.

Just because the directory is called "old_app_code" doesn't mean the code doesn't get compiled. You could have a folder called "please_do_not_compile" and as long as the files in it are items in the web app project file they will compile. I believe the various descriptions of web app projects and certainly Scott Guthrie's conversion instructions explain some if not all of this.

The easy solution may be to put the files you moved to the second project back in the main project and see if it all works. From your error message, you are missing a reference to the ajax library. Yes they may be installed, but your second project might be missing a reference to them.

-Peter