Error with content management->texts

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Error occures when i try change "texts" in content management:
"The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup".
12 years ago
Do you mean localization or topics? It works fine out of the box as you can see on the demo store. I presume that you modified an appropriate cshtml file and use some wrong syntax
12 years ago
Здравствуйте, не совсем понимаю, что Вы имеете в виду под "localization or topics"? Дело в том, что из Visual Studio сайт работает отлично, проблема возникает после того как сайт размещен на хостинге. Может быть у меня неправильно указаны какие-то настройки?
Файлы представления chtml я не менял.
Вот полный текст ошибки из журнала в админ части приложения:

Краткое сообщение записи журнала.Краткое сообщение:

The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup.

Детальная информация записи журнала.Полное сообщение:

System.Web.HttpParseException (0x80004005): The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup. at System.Web.WebPages.Razor.RazorBuildProvider.EnsureGeneratedCode() at System.Web.WebPages.Razor.RazorBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at Nop.Web.Framework.Themes.ThemeableBuildManagerViewEngine.FileExists(ControllerContext controllerContext, String virtualPath) in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web.Framework\Themes\ThemeableBuildManagerViewEngine .cs:line 10 at Nop.Web.Framework.Themes.ThemeableVirtualPathProviderViewEngine.GetPathFromGeneralName(ControllerContext controllerContext, List`1 locations, String name, String controllerName, String areaName, String theme, String cacheKey, String[]& searchedLocations) in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web.Framework\Themes\ThemeableVirtualPathProviderViewEngine.cs:line 113 at Nop.Web.Framework.Themes.ThemeableVirtualPathProviderViewEngine.GetPath(ControllerContext controllerContext, String[] locations, String[] areaLocations, String locationsPropertyName, String name, String controllerName, String theme, String cacheKeyPrefix, Boolean useCache, Boolean mobile, String[]& searchedLocations) in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web.Framework\Themes\ThemeableVirtualPathProviderViewEngine.cs:line 79 at Nop.Web.Framework.Themes.ThemeableVirtualPathProviderViewEngine.FindThemeableView(ControllerContext controllerContext, String viewName, String masterName, Boolean useCache, Boolean mobile) in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web.Framework\Themes\ThemeableVirtualPathProviderViewEngine.cs:line 203 at Nop.Web.Framework.Themes.ThemeableVirtualPathProviderViewEngine.FindView(ControllerContext controllerContext, String viewName, String masterName, Boolean useCache) in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web.Framework\Themes\ThemeableVirtualPathProviderViewEngine.cs:line 255 at System.Web.Mvc.ViewEngineCollection.<>c__DisplayClassc.<FindView>b__a(IViewEngine e) at System.Web.Mvc.ViewEngineCollection.Find(Func`2 lookup, Boolean trackSearchedPaths) at System.Web.Mvc.ViewEngineCollection.FindView(ControllerContext controllerContext, String viewName, String masterName) at System.Web.Mvc.ViewResult.FindView(ControllerContext context) at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d() at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
12 years ago
AleksandrModestov wrote:
Здравствуйте, не совсем понимаю, что Вы имеете в виду под "localization or topics"?

Я привел ссылки на демо сайт в предыдущем посте.

Это надо знать, чтобы понять где именно происходит ошибка. Кстати, на странице из записи журнала есть поля Page URL и Referrer URL. Какие они у вас?
12 years ago
URL страницы:   http://www.my_site.ru/admin/topic/list
Referrer URL:   http://www.my_site.ru/Admin/OnlineCustomer/List
12 years ago
AleksandrModestov wrote:
URL страницы:   http://www.my_site.ru/admin/topic/list

Тогда скопируйте сюда с сервера следующий файл \Administration\Views\Topic\List.cshtml. Я посмотрю. Ошибка должна быть где-то там
12 years ago
Прощу прощения. Я сам разобрался. Большое спасибо, за Ваши ответы. Несколько раз выгружал сайт на сервер и, видимо, просто некоторые файлы представлений не полностью загрузились на сервер
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.