Base solution for your next web application

Activities of "ofir1234"

Hi. I'm working with the angularjs+entity framework template. I would like to have the following site structure :

http://mysite/london/trends
http://mysite/paris/trends

inside App/Main/views I'll have the folders :

/london
   /paris

and each folder will have a trends.cshtml file.

If the user opened the address <a class="postlink" href="http://mysite/london">http://mysite/london</a> he will see the same navigation bar. Now, if he will choose 'trends' from the menu, it will navigate to <a class="postlink" href="http://mysite/london/trends">http://mysite/london/trends</a>. If he was inside <a class="postlink" href="http://mysite/paris">http://mysite/paris</a> and chose 'trends', it should navigate to <a class="postlink" href="http://mysite/paris/trends">http://mysite/paris/trends</a>

Is there a support for this in the navigation provider cs file ? The angular routing is preety easy:

.state('londontrends', {
                    url: '/london/trends',
                    templateUrl: '/App/Main/views/london/trends/trends.cshtml'
                })
.state('paristrends', {
                    url: '/london/trends',
                    templateUrl: '/App/Main/views/paris/trends/trends.cshtml'
                })

But how should I modify the NavigationProvider cs file to support this scenario? Any documentation for such case ? Thanks.

(btw. if you're asking, when all of this will work, I'll just create a '/' routing which routes to a "select city" page) (I've also read this post, and that's not what I want : #471@40a31a81-8c1b-48d9-9693-c3e17a1b1210)

Hi. I have the following class signatures :

public interface IConfigurationManager : IApplicationService {...}
public class ConfigurationManager : IConfigurationManager, ISingletonDependency {...}

I also have this controller in the WebApi project :

public class TrendsController: AbpApiController

And it has a constructor which receives an IConfigurationManager argument.

What I've noticed is that for every api request from TrendsController, The ConfigurationManager class is recreated. But I wanted a single instance for the whole project runtime (therefore I use ISingletonDependency, as written in the documentation here: <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Dependency-Injection">http://aspnetboilerplate.com/Pages/Docu ... -Injection</a>). I know that because I placed a Logger.info call inside the ConfigurationManager constructor, and I see it's recreated for every api call.

Can you please tell me what have I missed ?

Thanks.

Question

Hi. I am new to ASP.Net Boilerplate and I think it's a very cool project. I am currently using Boilerplate Module Zero for my web application. When I'm launching the project from my Visual Studio using Ctrl+F5, The icons are shown and everything is cool. When I publish my web project to my IIS 8.5 server and then surfing into my website, I'm getting the following errors in my console (and all of the fontawesome icons aren't working...I see some weird squares instead) :

http://mysite/Bundles/App/fonts/fontawesome-webfont.woff2?v=4.4.0 Failed to load resource: the server responded with a status of 404 (Not Found)
http://mysite/Bundles/App/vendor/famfamfam-flags.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://mysite/Bundles/App/fonts/fontawesome-webfont.woff?v=4.4.0 Failed to load resource: the server responded with a status of 404 (Not Found)
http://mysite/Bundles/App/fonts/fontawesome-webfont.ttf?v=4.4.0 Failed to load resource: the server responded with a status of 404 (Not Found)

I tried the Mime workarounds here : <a class="postlink" href="http://stackoverflow.com/questions/25796609/font-face-isnt-working-in-iis-8-0">http://stackoverflow.com/questions/2579 ... in-iis-8-0</a> <a class="postlink" href="http://stackoverflow.com/questions/4015816/why-is-font-face-throwing-a-404-error-on-woff-files">http://stackoverflow.com/questions/4015 ... woff-files</a>

But nothing helped. Any suggestions ?

Thanks.

Showing 11 to 13 of 13 entries