Global.asax Application_start is launched with every action

I am working on an MVC project and the performance was excellent.

In application_start, the database is indexed to search for lucene.net (and the index expands with each change to the object). But application_start is triggered for every action that I invoke on the page.

Why does he run application_start more than once? I will send any code when I know where to look;)

I am not sure if web.config can cause this behavior ...

Solution: Lucene.net wrote its index in the bin folder after changing the path in which the application no longer melts my face :)

+5
source share
2

, , Lucene , (web.config, global.asax, bin folder ..), AppDomain.

+8

, web.config - .
, " " web.config , - .

web.config, , sobfolders .

+1

All Articles