Last post Jan 30, 2008 10:40 PM by Benson Yu - MSFT
Jan 25, 2008 06:13 AM|calcium|LINK
Hi (my 1st post in 2.5 years - hah what has been going on??)
I'm converting a VS2003 web application (3 web projects and 5 class libs) to VS 2005 Pro.
I created new blank WebSite and added in each web project using the 'IIS tab' and each class lib by locating each .csproj thru the file system.
I have compiled and get various errors, one of which is
Error 12 C:\...\...\...\BlendListAdmin.aspx: ASP.NET runtime error: Ambiguous match found.
The error points at a Register directive (bolded below) which references a User Control from a nested Virtual Directory which holds User Controls shared between the 2 websites (MIS Common Controls2).
<%@ Register TagPrefix="uc1" TagName="DateAndTimeControl" src="MIS Common Controls2/DateAndTimeControl.ascx" %>
<%@ Page language="c#" Codebehind="BlendListAdmin.aspx.cs" AutoEventWireup="false" Inherits="MIS.RestrictedWeb.BlendListAdmin" %>
<%@ Register TagPrefix="uc1" TagName="PageHeader" src="MIS Common Controls2/PageHeader.ascx" %>
I note that the path appears correct (and no warnings on all other similar pages) but there is no .aspx.designer.cs file present for this ASPX page.
This page did have a lot of HTML errors which I have already corrected and I'm guessing that it was in such a state that the conversion process couldn't parse out the controls for the partial class???
Can I re-create a partial class for this page using a built-in tool in VS 2005 Pro?? Or anything else I could do?
Hope you can help..
Jan 30, 2008 10:40 PM|Benson Yu - MSFT|LINK
For missing designer file issue, you probably need to confirm whether you have chosen the “Convert to Web Application" menu item: Right click on the root web project node within the solution explorer and choose the "Convert to Web Application" menu item.
For more information about this scenario, please refer to the step 8 in the following link:
Upgrading VS 2003 Web Projects to be VS 2005 Web Application Projects
Step 8: Convert to Partial Classes
In addition, the “Ambiguous Match Found” error can be caused by ambiguous control field declaration in the code behind file. You can view more detailed information in the following link:
Ambiguous Match Found when running Precompiled Application