IdentityServer / IdentityServer3.AspNetIdentity

ASP.NET Identity support for Thinktecture IdentityServer3
Apache License 2.0
64 stars 51 forks source link

Site.css not found #42

Closed dmason511 closed 9 years ago

dmason511 commented 9 years ago

I am trying to add some custom styling to this sample. Tried adding the code as per documentation

var viewOptions = new DefaultViewServiceOptions(); viewOptions.Stylesheets.Add("/Content/Site.css");

var factory = new IdentityServerServiceFactory(); factory.ConfigureDefaultViewService(viewOptions);

when I step through the code "viewOptions" has it listed idSvrFactory.ConfigureDefaultViewService(viewOptions);

I keep getting a 404 error.

Thanks

brockallen commented 9 years ago

Do you have a ~/content/site.css on your server? Also, I'd look at the rendered HTML to ensure the custom .css file is listed in the HTML.

jsmith037982374 commented 7 years ago

So should a custom stylesheet have its own <link> entry in the html page?