Closed atak946 closed 4 years ago
I can't reproduce your problem. Can you use the CLI to create a simple project to reproduce this problem?
I can't reproduce your problem. Can you use the CLI to create a simple project to reproduce this problem? @liangshiw
im aldready created sample project with cli for this issue.
i have one difference in sample code.
i created _Layout.cshtml in Pages folder and changed İndex.cshtml => Layout = "_Layout.cshtml";
if i delete Layout.cshtml in project deploy is not have Any error, but i need change basic layout for one page.
Please show your _Layout.cshtml
@liangshiw im copied in basic theme layout and changed html.
@using Volo.Abp.AspNetCore.Mvc.AntiForgery
@using Volo.Abp.AspNetCore.Mvc.UI.Components.LayoutHook
@using Volo.Abp.AspNetCore.Mvc.UI.Layout
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Bundling
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Themes.Basic.Components.MainNavbar
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Themes.Basic.Components.PageAlerts
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components
@using Volo.Abp.AspNetCore.Mvc.UI.Theming
@using Volo.Abp.AspNetCore.Mvc.UI.Widgets.Components.WidgetScripts
@using Volo.Abp.AspNetCore.Mvc.UI.Widgets.Components.WidgetStyles
@using FinansPanel.Web.Pages.Components.Layout.Menu;
@using FinansPanel.Web.Pages.Components.Layout.TopNav;
@inject IAbpAntiForgeryManager AbpAntiForgeryManager
@inject IBrandingProvider BrandingProvider
@inject IPageLayout PageLayout
<!DOCTYPE html>
<html lang="en">
<!-- begin::Head -->
<head>
<base href="">
<meta charset="utf-8" />
<title>@ViewBag.Title</title>
<meta name="description" content="Updates and statistics">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--begin::Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700|Roboto:300,400,500,600,700">
<!--end::Fonts -->
<!--begin::Page Vendors Styles(used by this page) -->
@await RenderSectionAsync("styles", false)
<!--end::Page Vendors Styles -->
<!--begin::Global Theme Styles(used by all pages) -->
<abp-style-bundle>
<abp-style src="/assets/plugins/global/plugins.bundle.css" />
<abp-style src="/assets/css/style.bundle.css" />
<abp-style src="/libs/toastr/toastr.css" />
</abp-style-bundle>
<!--end::Global Theme Styles -->
<!--begin::Layout Skins(used by all pages) -->
<abp-style-bundle>
<abp-style src="/assets/css/skins/header/base/light.css" />
<abp-style src="/assets/css/skins/header/menu/light.css" />
<abp-style src="/assets/css/skins/brand/dark.css" />
<abp-style src="/assets/css/skins/aside/dark.css" />
<abp-style src="/Pages/Layout.css" />
</abp-style-bundle>
@await Component.InvokeAsync(typeof(WidgetStylesViewComponent))
@await Component.InvokeLayoutHookAsync(LayoutHooks.Head.Last, StandardLayouts.Application)
<!--end::Layout Skins -->
<link rel="shortcut icon" href="~/assets/media/logos/favicon.ico" />
</head>
<body class="kt-quick-panel--right kt-demo-panel--right kt-offcanvas-panel--right kt-header--fixed kt-header-mobile--fixed kt-subheader--enabled kt-subheader--fixed kt-subheader--solid kt-aside--enabled kt-aside--fixed kt-page--loading">
<!-- begin:: Header Mobile -->
@(await Component.InvokeAsync<TopNavComponent>("MobileHeader"))
<!-- end:: Header Mobile -->
<div class="kt-grid kt-grid--hor kt-grid--root">
<div class="kt-grid__item kt-grid__item--fluid kt-grid kt-grid--ver kt-page">
<!-- begin:: Navigation -->
@(await Component.InvokeAsync<MenuComponent>())
<!-- end:: Navigation -->
<div class="kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor kt-wrapper" id="kt_wrapper">
@(await Component.InvokeAsync<TopNavComponent>("MasterHeader"))
<div class="kt-content kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
@(await Component.InvokeAsync<TopNavComponent>("ContentHeader"))
<!-- begin:: Content -->
<div class="kt-container kt-container--fluid kt-grid__item kt-grid__item--fluid">
@RenderBody()
</div>
<!-- end:: Content -->
</div>
<!-- begin:: Footer -->
<div class="kt-footer kt-grid__item kt-grid kt-grid--desktop kt-grid--ver-desktop" id="kt_footer">
<div class="kt-container kt-container--fluid ">
<div class="kt-footer__copyright">
2020 © <a href="https://www.terakod.com" target="_blank" class="kt-link">Finans Paneli v1.0</a>
</div>
</div>
</div>
<!-- end:: Footer -->
</div>
</div>
</div>
<!--begin::Global Theme Bundle(used by all pages) -->
<abp-script-bundle>
<abp-script src="/assets/plugins/global/plugins.bundle.js" />
<abp-script src="/assets/js/scripts.bundle.js" />
<abp-script src="/libs/abp/core/abp.js" />
<abp-script src="/libs/abp/jquery/abp.jquery.js" />
<abp-script src="/libs/lodash/lodash.min.js" />
<abp-script src="/libs/toastr/toastr.min.js" />
<abp-script src="/libs/luxon/luxon.min.js" />
<abp-script src="/libs/timeago/jquery.timeago.js" />
<abp-script src="/libs/abp/aspnetcore-mvc-ui-theme-shared/toastr/abp-toastr.js" />
<abp-script src="/libs/abp/aspnetcore-mvc-ui-theme-shared/jquery/jquery-extensions.js" />
<abp-script src="/libs/abp/aspnetcore-mvc-ui-theme-shared/jquery-form/jquery-form-extensions.js" />
<abp-script src="/libs/abp/aspnetcore-mvc-ui-theme-shared/jquery/widget-manager.js" />
<abp-script src="/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/dom-event-handlers.js" />
<abp-script src="/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/modal-manager.js" />
<abp-script src="/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js" />
<abp-script src="/libs/abp/aspnetcore-mvc-ui-theme-shared/sweetalert/abp-sweetalert.js" />
<abp-script src="/libs/timeago/locales/jquery.timeago.tr.js" />
<abp-script src="/Pages/Layout.js" />
</abp-script-bundle>
<script src="~/Abp/ApplicationConfigurationScript"></script>
<script src="~/Abp/ServiceProxyScript"></script>
<!--begin::Page Scripts(used by this page) -->
@RenderSection("scripts", false)
</body>
</html>
The problem stems from your custom layout, I suggest you check your layout file. In addition, please upload the reproduce project you created using the CLI to the github repository.
@liangshiw
can you explain my error? how i resolve.
i didn't see any error.
Use
<script src="/assets/plugins/global/plugins.bundle.js"></script>
<script src="/assets/js/scripts.bundle.js"></script>
Instead of
<abp-script src="/assets/plugins/global/plugins.bundle.js" />
<abp-script src="/assets/js/scripts.bundle.js" />
@liangshiw , Yes, I saw that there was a problem with the scripts while testing everything line by line. Thank you very much for everything, you have been very helpful.
Hi,
i'm deployed project on my server but doesn't work.
i see this log on https://finans.terakod.com
how i resolve this problem ?
this project running on localhost.