More Convertion Woes in Visual Studio
Good day, Converting from Web Site Projects to Web Application Projects is not as straightforward as we would like. One specific problem is with control that were under App_Code in the Web Site project. When you are trying to 'Convert to Web Application', i.e. create the xyz.designer.cs file in the new project, you will get errors such as: unknown server tag 'abc'. Barring such obvious issues like not registering the control in %lt;%Register%$gt; or in the web.config, the problem comes from the fact that the control is not yet compiled and will not be compiled until you can generate all the designer files. What came first: the chicken or the egg? There are more details here: Steven Smith's blog. But also know that if you move your controls to a library and get your site to generate all the designer files and compile, you can then put the control files back in your Web Application project! I find it easier myself to keep all the controls and pages under the same part of the solution tree.
Labels: asp.net convert code

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