Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Strongly typed view won't render, fails silently

$
0
0

Here is what I have in my Configure Method:

app.UseIISPlatformHandler();

app.UseMvcWithDefaultRoute();

app.UseStaticFiles();

if(_environment.IsDevelopment())
{
    app.UseDeveloperExceptionPage();
}

I have a _Layout view and an Index.cshtml view that renders fine.

I tried to make the Index View strongly typed.

@model MyApp.Web.Services_Util.MetaBuilder

I get no exception page I get nothing actually. When I view the page source it's completely empty. just to test I tried to

use just type string >>  @model string

It fails just the same

thanks in advance!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>