Ticket #49 (closed defect: fixed)

Opened 16 months ago

Last modified 6 weeks ago

Error when using Title attribute in Page directive

Reported by: anonymous Owned by: serialseb
Priority: minor Milestone: 2.0 Beta 2
Component: Core - Codec Support Version:
Keywords: Cc:
Time remaining: 1d Blocked By:
Time spent: 1d Time planned: 1d
Blocking:

Description

There is some conflict between WebForms? Page Title attribute/prop & OpenRasta's title prop.

given following page directive:

<%@ Page Title="some title" Language="C#" MasterPageFile="~/Views/DefaultMaster.Master" AutoEventWireup="false"
	Inherits="OpenRasta.Codecs.WebForms.ResourceView<Home>" %>

when browsing to corresponding uri it throws:

OpenRasta encountered an error. An exception was thrown while processing a pipeline contributor 
System.Web.HttpParseException: Ошибка при обработке атрибута 'title': Тип 'OpenRasta.Codecs.WebForms.ResourceView`1[[RastaBlog.Resources.Web.Home, RastaBlog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' не содержит свойство с именем 'title'. 
---> System.Web.HttpParseException: Ошибка при обработке атрибута 'title': Тип 'OpenRasta.Codecs.WebForms.ResourceView`1[[RastaBlog.Resources.Web.Home, RastaBlog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' не содержит свойство с именем 'title'. 
---> System.Web.HttpException: Ошибка при обработке атрибута 'title': Тип 'OpenRasta.Codecs.WebForms.ResourceView`1[[RastaBlog.Resources.Web.Home, RastaBlog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' не содержит свойство с именем 'title'.
   в System.Web.UI.TemplateParser.ProcessError(String message)
   в System.Web.UI.TemplateControlParser.ProcessUnknownMainDirectiveAttribute(String filter, String attribName, String value)
   в System.Web.UI.PageParser.ProcessUnknownMainDirectiveAttribute(String filter, String attribName, String value)
   в System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective)
   в System.Web.UI.TemplateControlParser.ProcessMainDirective(IDictionary mainDirective)
   в System.Web.UI.PageParser.ProcessMainDirective(IDictionary mainDirective)
   в System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive)
   в System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive)
   в System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive)
   в System.Web.UI.PageParser.ProcessDirective(String directiveName, IDictionary directive)
   в System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
   --- Конец трассировки внутреннего стека исключений ---
   в System.Web.UI.TemplateParser.ProcessException(Exception ex)
   в System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
   в System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
   --- Конец трассировки внутреннего стека исключений ---
   в System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
   в System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath)
   в System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
   в System.Web.UI.TemplateParser.ParseInternal()
   в System.Web.UI.TemplateParser.Parse()
   в System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath)
   в System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
   в System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
   в System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
   в System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   в System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   в System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   в System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   в System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   в System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath)
   в System.Web.Compilation.BuildManager.GetCompiledType(String virtualPath)
   в OpenRasta.Codecs.WebForms.WebFormsCodec.WriteTo(Object entity, IHttpEntity response, String[] codecParameters) в d:\OSS\OpenRasta\src\core\OpenRasta.Server\Codecs\WebForms\WebFormsCodec.cs:строка 66
   в OpenRasta.Web.Pipeline.Contributors.ResponseEntityWriter.WriteResponse(ICommunicationContext context) в d:\OSS\OpenRasta\src\core\OpenRasta\Web\Pipeline\Contributors\ResponseEntityWriter.cs:строка 62
   в OpenRasta.Web.Pipeline.PipelineRunner.ExecuteContributor(ICommunicationContext context, ContributorCall call) в d:\OSS\OpenRasta\src\core\OpenRasta\Web\Pipeline\PipelineRunner.cs:строка 256

Attachments

Change History

Changed 16 months ago by serialseb

  • milestone set to 2.0 Beta 2

Indeed there's a conflict with the Title property on the directive and the title property that creates the HTML.

3 potential solutions:

  • Leverage the PageParserFilter? to fix that problem. Won't help for people not using the filter however.
  • Move all the html creation helpers on a specific property. So youd use h.div instead of div. Not sure if itd be a ncie thing or not.
  • Separate out the base types and the ones for markup in separate base types. This doesn't solve the problem however, but may be something else to think about.

Changed 14 months ago by serialseb

  • status changed from new to closed
  • resolution set to fixed

Fixed in a previous build

Changed 7 weeks ago by moskovskie shluhi

Changed 7 weeks ago by moskovskii intim dosug

Changed 6 weeks ago by Prostitutkimoskvy

Aloha!  http://shluhimoskvy.yolasite.com/ shluhi moskvy  http://prostitutki-m.yolasite.com/ moskovskie shluhi  http://individualki.yolasite.com/ moskovskii intim dosug hier.

Add/Change #49 (Error when using Title attribute in Page directive)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.