IdentityServer / IdentityServer3.AspNetIdentity

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

[Question] Site.css not found in self hosted application #60

Closed reisv closed 8 years ago

reisv commented 8 years ago

I am trying to override the styles in the login, logoff, etc.. html templates in IdentityServer3 and it seems not to be working. I read ALL the other issues can could not find an answer.

In the startup.cs file I have the following code:

       var viewServiceConfig = new DefaultViewServiceOptions();
        viewServiceConfig.Stylesheets.Add("/Content/styles.css");
        viewServiceConfig.CacheViews = false;
        factory.ConfigureDefaultViewService(viewServiceConfig);

In my project solution off the root of the project I have a folder called Content and a file called styles.css

When I inspect the rendered html I see the file, but the styles do not take affect

<link href ="/Content/styles.css" rel="stylesheets"

when I try to navigate to that path in the browser, I get a 404. I check the directory in bin/Debug of the output and the Content directory and the file are there. Any suggestions ?

Thanks