<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.asp.net/15.aspx</link><description>The perfect forum for ASP.NET novices. No question too simple! &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=21&amp;amp;c=17" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Publish Web Site Error - file 'src' is not a valid here because it doesn't expose a type</title><link>http://forums.asp.net/thread/1580755.aspx</link><pubDate>Thu, 15 Feb 2007 18:16:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1580755</guid><dc:creator>SWarren</dc:creator><author>SWarren</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1580755.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1580755</wfw:commentRss><description>&lt;p&gt;Mark --&lt;/p&gt;
&lt;p&gt;My sympathies!&amp;nbsp; This is perhaps the least helpful error I've ever encountered in .NET -- I'm sorry you are seeing it too.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;It's my belief that this error indicates a failure of runtime compilation (without actually showing the compilation error &lt;img src="http://forums.asp.net/emoticons/emotion-39.gif" alt="Super Angry" /&gt;).&amp;nbsp; In my case it was hiding a problem with the AssemblyCulture attribute; I think it's hiding a different problem in your case.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I don't use file-based webs myself, so I don't have a complete picture of all the pieces that get compiled or partially compiled before and during a publish.&amp;nbsp; But in your shoes I'd try to the following to debug the issue:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Clear the ASP.NET compiliation cache: usually C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files&lt;/li&gt;
&lt;li&gt;Publish to a different location&lt;/li&gt;
&lt;li&gt;Set the Publish option to delete old files from the target location upon Publish.&amp;nbsp; (I dunno if this is supported for file-based web; it is for project-based webs.)&lt;/li&gt;
&lt;li&gt;Change the other Publish option, especially if you guess they will change the way the web is compiled.&amp;nbsp; In particular, try publishing without signing the assembly.&lt;/li&gt;
&lt;li&gt;Try a different user control&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Hope this helps -- post back and let us know if you find the answer!&lt;/p&gt;
&lt;p&gt;Susan&lt;/p&gt;</description></item><item><title>Re: Publish Web Site Error - file 'src' is not a valid here because it doesn't expose a type</title><link>http://forums.asp.net/thread/1580712.aspx</link><pubDate>Thu, 15 Feb 2007 17:41:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1580712</guid><dc:creator>mkamoski</dc:creator><author>mkamoski</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1580712.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1580712</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;bobby169:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Try reinstalling IIS metabase using following command on command prompt&lt;/p&gt;
&lt;p&gt;cd C:\WINNT\Microsoft.NET\Framework\v2.0.50727\&lt;/p&gt;
&lt;p&gt;aspnet_regiis -i&lt;/p&gt;
&lt;p&gt;This might help ....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;bobby169 -- &amp;nbsp;&lt;/p&gt;
&lt;p&gt;That was a good idea-- but, it did not help.&lt;/p&gt;
&lt;p&gt;If you have other ideas, then please post them.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;-- Mark Kamoski&lt;/p&gt;</description></item><item><title>Re: Publish Web Site Error - file 'src' is not a valid here because it doesn't expose a type</title><link>http://forums.asp.net/thread/1580703.aspx</link><pubDate>Thu, 15 Feb 2007 17:36:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1580703</guid><dc:creator>bobby169</dc:creator><author>bobby169</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1580703.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1580703</wfw:commentRss><description>&lt;p&gt;Try reinstalling IIS metabase using following command on command prompt&lt;/p&gt;
&lt;p&gt;cd C:\WINNT\Microsoft.NET\Framework\v2.0.50727\&lt;/p&gt;
&lt;p&gt;aspnet_regiis -i&lt;/p&gt;
&lt;p&gt;This might help ....&lt;/p&gt;</description></item><item><title>Publish Web Site Error - file 'src' is not a valid here because it doesn't expose a type</title><link>http://forums.asp.net/thread/1580602.aspx</link><pubDate>Thu, 15 Feb 2007 16:40:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1580602</guid><dc:creator>mkamoski</dc:creator><author>mkamoski</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1580602.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1580602</wfw:commentRss><description>&lt;p&gt;All --&lt;/p&gt;
&lt;p&gt;Please help.&lt;/p&gt;
&lt;p&gt;When I use &amp;gt;Build, &amp;gt;Publish Web Site, I keep getitng the following compile time erors (CTEs)...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error&amp;nbsp;1&amp;nbsp;The file 'src' is not a valid here because it doesn't expose a type.&amp;nbsp;C:\Code\Abc\WebPartUserControls\Abc.WebPartUserControls.Core\Default.aspx&amp;nbsp;3&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error&amp;nbsp;2&amp;nbsp;Unknown server tag 'uc1:urltester'.&amp;nbsp;C:\Code\Abc\WebPartUserControls\Abc.WebPartUserControls.Core\Default.aspx&amp;nbsp;12&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Why is this happening and what can be done to prevent it from happening?&lt;/p&gt;
&lt;p&gt;Please advise.&lt;/p&gt;
&lt;p&gt;Here are some details about the project.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The project was created with Microsoft Visual Studio 2005 Version 8.0.50727.762&amp;nbsp; (SP.050727-7600).&lt;/li&gt;
&lt;li&gt;The project was created by using &amp;gt;File, &amp;gt;New, &amp;gt;Web Site, Location="File System".&lt;/li&gt;
&lt;li&gt;The project has a single ASPX page and a single User Control, both of which use the code-behind method of coding.&lt;/li&gt;
&lt;li&gt;The ASPX page has the User Control on it.&lt;/li&gt;
&lt;li&gt;The project compiles fine with no CTEs using &amp;gt;Build, &amp;gt;Build Solution.&lt;/li&gt;
&lt;li&gt;The project runs fine in Debug mode from the IDE and the User Control works as expected.&lt;/li&gt;
&lt;li&gt;The options used for &amp;gt;Build, &amp;gt;Publish Web Site, are-- &lt;br /&gt;TargetLocation="C:\PrecompiledWeb\MyWeb", &lt;br /&gt;Updatable = unchecked, &lt;br /&gt;Fixed Naming = true, &lt;br /&gt;Strong Naming = true, &lt;br /&gt;use key file = true, &lt;br /&gt;Key = C:\MyKey.snk, &lt;br /&gt;delay signing = unchecked, &lt;br /&gt;mark assemblies = true.&lt;/li&gt;
&lt;li&gt;The assembly is decorated with the Attribute &lt;font size=2&gt;[assembly: &lt;/font&gt;&lt;font color=#2b91af size=2&gt;AssemblyCulture&lt;/font&gt;&lt;font size=2&gt;(&lt;/font&gt;&lt;font color=#a31515 size=2&gt;""&lt;/font&gt;&lt;font size=2&gt;)] in the User Control's code-behind&amp;nbsp;class. &lt;/font&gt;&lt;/li&gt;
&lt;li&gt;The KB article &lt;a href="http://support.microsoft.com/kb/924731"&gt;http://support.microsoft.com/kb/924731&lt;/a&gt;&amp;nbsp;does not help.&lt;/li&gt;
&lt;li&gt;The project uses C#.&lt;/li&gt;
&lt;li&gt;The code is very simple, just a HelloWorld sample for now.&lt;/li&gt;
&lt;li&gt;If the User Control is removed from the ASPX page entirely, then the "Publish Web Site" process runs without any errors.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Do you have any suggestions?&lt;/p&gt;
&lt;p&gt;Please advise.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-- Mark Kamoski&lt;/p&gt;</description></item></channel></rss>