I have a web deployment project that creates and buttons a web application project. I get a lot of errors when I create WDP as follows:
Error 73 The file '/Foo.csproj/Properties/Administration/Modules/ACL.ascx' does not exist. /Foo.csproj/Properties/Administration/ACL.aspx
Error 74 Unknown server tag 'foo: ACL' ./ Foo.csproj / Properties / Administration / ACL.aspx
These errors come from the Web Deployment Project, not the WAP. Errors always follow the same pattern: first, an .ascx error is detected, and then a related error indicating that the server tag associated with the previous ascx is unknown (this obviously makes sense).
There are no errors or warnings in ascx or aspx.
Controls are registered using the <%@ Register %>
(as opposed to registering in web.config)
What can cause such a symptom?
UPDATE
Errors come from aspnet_compiler.exe
, which starts with the following command:
C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_compiler.exe -v "/Foo.csproj" -p "C: \ Projects \ Foo \ Foo" -u -f -d obj \ Staging \ TempBuildDir
and produces the following errors:
Utility for precompiling an ASP.NET application
Copyright (C) Microsoft Corporation. All rights reserved. /Foo.csproj/Properties/Administration/ACL.aspx(5): ASPPARSE Error: The file '/Foo.csproj/Properties/Administration/Modules/ACL.ascx' does not exist.
/Foo.csproj/Properties/Administration/ACL.aspx(7): ASPPARSE error: Unknown server tag 'foo: ACL'.
in foo.csproj ACL.aspx is declared as
<Content Include="Administration\ACL.aspx" /> <Compile Include="Administration\ACL.aspx.cs"> <DependentUpon>ACL.aspx</DependentUpon> <SubType>ASPXCodeBehind</SubType> </Compile> <Compile Include="Administration\ACL.aspx.designer.cs"> <DependentUpon>ACL.aspx</DependentUpon> </Compile>
and ACL.ascx as
<Content Include="Administration\Modules\ACL.ascx" /> <Compile Include="Administration\Modules\ACL.ascx.cs"> <DependentUpon>ACL.ascx</DependentUpon> <SubType>ASPXCodeBehind</SubType> </Compile> <Compile Include="Administration\Modules\ACL.ascx.designer.cs"> <DependentUpon>ACL.ascx</DependentUpon> </Compile>
I cannot figure out where the /Properties/
paths element is from the paths in error! It is not in the project file and is not served on aspnet_compiler.exe
.
The solution file and the project files are identical (apart from the project names) for the working solution.