This of course is for both C# and VB, you can remove the non-used language section. The reason this is needed is that when you have a website, individual pages are compiled when requested, which requires the CodeDom to know which version of the framework you want to use. If you use a Web Application project this setting is not needed since an assembly is pre-compiled for all pages in your project.
Friday, March 12, 2010
Web Sites and the CodeDom
If you are using a WebSite (as opposed to Web Application project), and upgrade to .Net 3.5 (so you can use features like LINQ), you will need to add the following config section to your web.config:
This of course is for both C# and VB, you can remove the non-used language section. The reason this is needed is that when you have a website, individual pages are compiled when requested, which requires the CodeDom to know which version of the framework you want to use. If you use a Web Application project this setting is not needed since an assembly is pre-compiled for all pages in your project.
This of course is for both C# and VB, you can remove the non-used language section. The reason this is needed is that when you have a website, individual pages are compiled when requested, which requires the CodeDom to know which version of the framework you want to use. If you use a Web Application project this setting is not needed since an assembly is pre-compiled for all pages in your project.
Labels:
3.5,
CodeDom,
Linq,
Web Application Project,
WebApplication,
WebSite
Subscribe to:
Comments (Atom)