I was hoping it was a temporary glitch, so I changed debug back to false. Problem still occurs. How come no one else has this problem (and those that do never get an answer). I use the same code on another site and there are no issues, and also on other pages in the same site.
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322.2032
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\63f9fc51\3d007a0e\telq_wit.0.vb(1002) : error BC30560: 'mycontrol_ascx' is ambiguous in the namespace '_ASP'.
Dim __ctrl As _ASP.mycontrol_ascx
~~~~~~~~~~~~~~~~~~
F:\intranet\folder\default.aspx(238) : error BC30560: 'mycontrol_ascx' is ambiguous in the namespace '_ASP'.
__ctrl = New _ASP.mycontrol_ascx
~~~~~~~~~~~~~~~~~~
F:\intranet\folder\default.aspx(238) : error BC30560: 'mycontrol_ascx' is ambiguous in the namespace '_ASP'.
Protected MyControl As _ASP.mycontrol_ascx
The file 'telq_wit.0.vb' does not seem to exist (is it deleted when an error occurs?).
The exception:
System.Web.HttpException: External component has thrown an exception. ---> System.Web.HttpCompileException: External component has thrown an exception.
at System.Web.Compilation.BaseCompiler.ThrowIfCompilerErrors(CompilerResults results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, String sourceFile, String sourceString)
at System.Web.Compilation.BaseCompiler.GetCompiledType()
at System.Web.UI.PageParser.CompileIntoType()
at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()
--- End of inner exception stack trace ---
at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound)
at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()
at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)
at System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)