Converting Web Site Project to Web Application Project
Good day, There is a lot of good information about conversion, but I hit a problem when I tried to move my project from Web Site Projects to Web Application Projects with Visual Studio 2008. The project would compile properly but when executing, it would throw errors that there were "unknown server tags". Whhaaat? But it just compiled fine! After much fudging around I discovered that the problem was with the following tag in my web.config file: <pages> <controls> <add tagprefix="comp" namespace="Competition.WebUI.Controls"> The above line works fine in Web Site Projects, but the new Web Application Projects wouldn't accept it. Change it to: <add tagprefix="comp" namespace="Competition.WebUI.Controls" assembly="MyAssembly"> to fix the problem. Basicly, you need to define the assembly. I believe that it should be done in Web Site projects as well, but that it let you get away with it if you don't. Anyway, hopefully it can be helpful to someone else.
Labels: asp.net code prog

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home