Comment 2 for bug 1292567

Revision history for this message
shahid khan (shahid-mrd) wrote :

@Peder chr.Norgaard

I ran your application from bug #1293481 page, Although i have fixed the bug #1293481 in my installation, it gave me the following exception

System.Web.Compilation.ParseException
The file '~/controls/MonoSamplesHeader.ascx' does not exist

Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.
Details: The file '~/controls/MonoSamplesHeader.ascx' does not exist
Error origin: Parser
Error source file: /var/www/html/app/index.aspx
Exception stack trace:

at System.Web.UI.BaseParser.ThrowParseException (System.String message, System.Object[] parms) [0x00000] in <filename unknown>:0
  at System.Web.UI.BaseParser.ThrowParseFileNotFound (System.String path, System.Object[] parms) [0x00000] in <filename unknown>:0
  at System.Web.UI.TemplateParser.RegisterCustomControl (System.String tagPrefix, System.String tagName, System.String src) [0x00000] in <filename unknown>:0
  at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, IDictionary atts) [0x00000] in <filename unknown>:0
  at System.Web.UI.PageParser.AddDirective (System.String directive, IDictionary atts) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.AspGenerator.TagParsed (ILocation location, TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.AspParser.Parse () [0x00000] in <filename unknown>:0
  at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, Boolean doInitParser) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].Parse () [0x00000] in <filename unknown>:0
  at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].get_LanguageName () [0x00000] in <filename unknown>:0
  at System.Web.Compilation.TemplateBuildProvider.get_LanguageName () [0x00000] in <filename unknown>:0
  at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].get_CodeCompilerType () [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManagerDirectoryBuilder.GetBuildProviderCodeDomType (System.Web.Compilation.BuildProvider bp) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManagerDirectoryBuilder.AssignToGroup (System.Web.Compilation.BuildProvider buildProvider, System.Collections.Generic.List`1 groups) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManagerDirectoryBuilder.Build (Boolean single) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManager.GetCompiledType (System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.Web.VirtualPath virtualPath, System.Type requiredBaseType) [0x00000] in <filename unknown>:0
  at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00000] in <filename unknown>:0
  at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) [0x00000] in <filename unknown>:0
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x00000] in <filename unknown>:0
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] in <filename unknown>:0
  at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0

Error source context:
Error lines: 3, 3
1: <%@ language="C#"%>
2: <%@ Import namespace="System.IO" %>
3: <%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" src="~/controls/MonoSamplesHeader.ascx" %>
4: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5: <html>

It is clear from the above exception that their are no samples installed or they are not the correct version , in my case i have not installed the samples, if you have installed the samples of the correct version , and applied the fix to but #1293481 , you should be able to run your code.