Monday, March 17, 2008

Migrating to VS2005 Web Application Project Problems

When I was trying to migrate to my VS2005 Web Site Project to VS2005 Web Application Project, I had a weird problem. I had one user control that uses asp.net ajax and a page that uses this control. While the control itself succeeded in Converto To Web Application operation (from the context menu of the project), the page did not. What solved the problem was adding a Register directive to the page (just for generating the designer file) and removing it after that:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

Another thing that took me some time was that I had to change manually the Build Action for all my files from App_Code from Content to Compile.

More for migrating from vs2005 web site project to vs2005 web app project can find here. If you want to migrate vs2003 web project to vs2005 web app project, see here.

No comments:

eXTReMe Tracker