All --
Please help.
When I use >Build, >Publish Web Site, I keep getitng the following compile time erors (CTEs)...
Error 1 The file 'src' is not a valid here because it doesn't expose a type. C:\Code\Abc\WebPartUserControls\Abc.WebPartUserControls.Core\Default.aspx 3
Error 2 Unknown server tag 'uc1:urltester'. C:\Code\Abc\WebPartUserControls\Abc.WebPartUserControls.Core\Default.aspx 12
Why is this happening and what can be done to prevent it from happening?
Please advise.
Here are some details about the project.
- The project was created with Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600).
- The project was created by using >File, >New, >Web Site, Location="File System".
- The project has a single ASPX page and a single User Control, both of which use the code-behind method of coding.
- The ASPX page has the User Control on it.
- The project compiles fine with no CTEs using >Build, >Build Solution.
- The project runs fine in Debug mode from the IDE and the User Control works as expected.
- The options used for >Build, >Publish Web Site, are--
TargetLocation="C:\PrecompiledWeb\MyWeb",
Updatable = unchecked,
Fixed Naming = true,
Strong Naming = true,
use key file = true,
Key = C:\MyKey.snk,
delay signing = unchecked,
mark assemblies = true.
- The assembly is decorated with the Attribute [assembly: AssemblyCulture("")] in the User Control's code-behind class.
- The KB article http://support.microsoft.com/kb/924731 does not help.
- The project uses C#.
- The code is very simple, just a HelloWorld sample for now.
- If the User Control is removed from the ASPX page entirely, then the "Publish Web Site" process runs without any errors.
Do you have any suggestions?
Please advise.
Thank you.
-- Mark Kamoski