question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Child template just does not render in a couple of scenarios after .NET 2.0 upgrade

See original GitHub issue

Just upgraded to .NET 2.0 beta 1. It is working, compiling, etc. But in a couple of scenarios, my child HTML template just does not render. In the generated HTML there’s just nothing there, also no errors.

E.g. this used to work in 1.1, not anymore in 2.0:

<tr style="@(rs.ActivityBookings == null || rs.ActivityBookings.Count == 0 ? "display:inherit" : "display:none")">

And when using a foreach, I now have to check if there are more than zero items. Without that check, again nothing rendered.

This is quite frustrating as this is trial and error, with no clue why this is not working. Am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:35 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
sbinkertcommented, Jan 15, 2018

@toddams When do you guess the nuget package will be released for this fix?

3reactions
wik8wzcommented, Jun 5, 2019

@wik8wz , is your NoPoolingViewBufferScope work fine in production? Have you noticed any issues like high memory consumption or memory leak?

Nothing was reported until now. We do recycle our app pool everyday anyway. Our service is not very loaded at the moment. We are sending ~250 rendered email per month right now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why are Redirect Results not allowed in Child Actions ...
Some of these perform redirects after the forms in them have been processed. Now that I upgraded to Asp.Net MVC 2 RC it...
Read more >
ASP.NET 4 Breaking Changes
NET 4 Child Applications Fail to Start When Under ASP.NET 2.0 or ASP. ... The HtmlForm control does not render a name attribute....
Read more >
ASP.NET Core MVC Views not Resolving Partial ... - Rick Strahl
The scenario is the following: I have a EmailConfirmation View that's rendered as part of a ShoppingCartController; The View renders fine when ...
Read more >
What I wish I had known about single page applications
And the net result is that every page I wanted to cache, was really just caching the same template HTML. So when a...
Read more >
Using JavaScript with Ajax and Razor partial views
cshtml should not be included in production code. Including script library references and scripts at the end of the page improves page rendering...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found