tahirjadoon — 2012-03-22T02:27:37-04:00 — #1
I have referenced the class library in web.config under pages -> namespaces. Why do i have to reference these again on my individual pages?
I think i have missed some thing critical due to which reason i have to do this. Any help with this will be greatly appreciated.
tahirjadoon — 2012-03-22T02:30:44-04:00 — #2
I had my references under the global web.config. I need to move these to individual areas web.config also. But why?
wwb_99 — 2012-03-22T08:25:01-04:00 — #3
Pages.Namespaces is a tool for WebForms and the WebForms view engine. Razor doesn't look there but rather to it's own more localized configuration. It was a [good] design decision.
tahirjadoon — 2012-03-22T22:29:57-04:00 — #4
serenarules — 2012-03-27T00:43:03-04:00 — #5
Go into your /Views folder and edit the web.config there, then see if your razor views doesn't pick it up. =)
tahirjadoon — 2012-03-27T16:34:50-04:00 — #6
Thats the first thing i did, after global web.config. Views under my areas don't pick these up. I had to moves these to area web.config also.
mittineague — 2014-09-17T23:23:41-04:00 — #7
This topic is now archived. It is frozen and cannot be changed in any way.