When I try to localize any text in the view (see below) i get the following errros. Am I suppose to register the view "SAAppsWebViewPageBase" with the IOC, but since it's an abstract class you would not do this. Please advise.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'L' does not exist in the current context
Source Error:
Line 243: Line 244:} Line 245:@L("UsersHeaderInfo") Line 246: Line 247:@*<div class="row margin-bottom-5">
1 Answer(s)
-
0
Hi,
Normally, all of your views should be derived from SAAppsWebViewPageBase (YourProjectNameWebViewPageBase) and AspNet Zero template is configured to be like that. This is configured in web.config file like that: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Web/App/web.config#L13">https://github.com/aspnetzero/aspnet-ze ... config#L13</a> (this is not the main web.config, but the one in views folder or app folder based on SPA or MPA).
Can you check if your project has it?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)