Base solution for your next web application
Open Closed

REG - IIS Deploy layout file #2350


User avatar
0
avanekar02 created

sorry brother i copied the wrong file below is the correct file

@using System.Web.Optimization @using Abp.Timing @using Abp.Web.Mvc.Extensions @using Samit.CmsProTest.Localization @using Samit.CmsProTest.Web.Bundling @{ Layout = null; SetAntiForgeryCookie(); } <!DOCTYPE html>

<html lang="en" dir=@(CultureHelper.IsRtl ? "rtl" : "")>

<head> <meta charset="utf-8" /> <title>CmsProTest</title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1.0" name="viewport" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8">

@* Fill these meta tags upon your project specification *@
&lt;meta content=&quot;CmsProTest&quot; name=&quot;description&quot; /&gt;
&lt;meta content=&quot;CmsProTest&quot; name=&quot;keywords&quot;&gt;
&lt;meta content=&quot;CmsProTest&quot; name=&quot;author&quot; /&gt;

&lt;link rel=&quot;shortcut icon&quot; href=&quot;~/favicon.ico&quot; /&gt;

&lt;link href=&quot;~/Content/fonts-open-sans.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;

@Html.IncludeStyle(StylePaths.FontAwesome)
@Html.IncludeStyle(StylePaths.Simple_Line_Icons)
@Html.IncludeStyle(CultureHelper.IsRtl ? StylePaths.BootstrapRTL : StylePaths.Bootstrap)
@Html.IncludeStyle(StylePaths.JQuery_Uniform)
@Html.IncludeStyle(StylePaths.Toastr)
@Html.IncludeStyle(StylePaths.SweetAlert)
@Html.IncludeStyle(StylePaths.FamFamFamFlags)

@Html.IncludeStyle("~/metronic/assets/global/css/components-md" + (CultureHelper.IsRtl ? "-rtl" : "") + ".css")
@Html.IncludeStyle("~/metronic/assets/global/css/plugins-md" + (CultureHelper.IsRtl ? "-rtl" : "") + ".css")
@Html.IncludeStyle("~/metronic/assets/admin/layout/css/layout" + (CultureHelper.IsRtl ? "-rtl" : "") + ".css")
@Html.IncludeStyle("~/metronic/assets/admin/layout/css/themes/default" + (CultureHelper.IsRtl ? "-rtl" : "") + ".css")

@Styles.Render("~/Bundles/Common/css")

@Html.IncludeStyle("~/Views/Account/_Layout" + (CultureHelper.IsRtl ? "-rtl" : "") + ".css")

@RenderSection("Styles", false)

&lt;script type=&quot;text/javascript&quot;&gt;
    @* This is used to get the application's root path from javascript.
    It's useful if you're running application in a virtual directory under IIS. *@
    var abp = abp || {}; abp.appPath = '@ApplicationPath';
&lt;/script&gt;

</head> <body class="page-md login"> <div class="menu-toggler sidebar-toggler"> </div> <div class="logo"> <a href="~/"> <img src="~/Common/Images/app-logo-on-dark.png" alt="" width="149" height="35" /> </a> </div> <div class="content"> @RenderBody() </div> @Html.Action("Languages", "Account") <div class="copyright"> @Clock.Now.Year © CmsProTest. </div>

@Html.IncludeScript(ScriptPaths.Json2)
@Html.IncludeScript(ScriptPaths.JQuery)
@Html.IncludeScript(ScriptPaths.JQuery_Migrate)
@Html.IncludeScript(ScriptPaths.Bootstrap)
@Html.IncludeScript(ScriptPaths.JQuery_BlockUi)
@Html.IncludeScript(ScriptPaths.JQuery_Uniform)
@Html.IncludeScript(ScriptPaths.JQuery_Cookie)
@Html.IncludeScript(ScriptPaths.Toastr)
@Html.IncludeScript(ScriptPaths.SpinJs)
@Html.IncludeScript(ScriptPaths.SpinJs_JQuery)
@Html.IncludeScript(ScriptPaths.SweetAlert)
@Html.IncludeScript(ScriptPaths.Abp)
@Html.IncludeScript(ScriptPaths.Abp_JQuery)
@Html.IncludeScript(ScriptPaths.Abp_BlockUi)
@Html.IncludeScript(ScriptPaths.Abp_SpinJs)
@Html.IncludeScript(ScriptPaths.Abp_Toastr)
@Html.IncludeScript(ScriptPaths.Abp_SweetAlert)

&lt;script type=&quot;text/javascript&quot;&gt;
    abp.localization.defaultSourceName = '@LocalizationSourceName';
&lt;/script&gt;


&lt;script src=&quot;~/AbpScripts/GetScripts?v=@(Clock.Now.Ticks)&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

@Html.IncludeScript(ScriptPaths.JQuery_Validation)
@Html.IncludeScript(ScriptPaths.JQuery_Validation_Localization)

@Html.IncludeScript("~/metronic/assets/global/scripts/app.js")
&lt;script type=&quot;text/javascript&quot;&gt;
    App.setAssetsPath(abp.appPath + 'metronic/assets/');
&lt;/script&gt;

@Scripts.Render("~/Bundles/Common/js")

@Html.IncludeScript("~/metronic/assets/admin/layout/scripts/layout.js")

@RenderSection("Scripts", false)

&lt;script&gt;
    jQuery(document).ready(function () {
        if (CurrentPage) {
            CurrentPage.init();
        }
    });
&lt;/script&gt;

</body> </html>


7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks, I noticed that but it is better to take a look at tis problem on your machine I think. Please reply to my latest email.

    Thanks.

  • User Avatar
    0
    velu created

    Hi,

    I am getting below mentioned error. Please help me on this.

    The name 'SetAntiForgeryCookie' does not exist in the current context

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    Are you using MVC 5.x or ASP.NET Core ? Can you also explain where do you get this error ?

    Thanks

  • User Avatar
    0
    velu created

    Hi,

    We are using ASP.NET MVC 5.X + ANGULARJS 1.X.

    Application Deployed on IIS. After the Submit on login page we are getting below mentioned error.

    "The name 'SetAntiForgeryCookie' does not exist in the current context" and Chrome console "Failed to load resource: the server responded with a status of 500 (Internal Server Error)".

    But working properly on development system.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @velu can you check it this web.config <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Web/App/web.config">https://github.com/aspnetzero/aspnet-ze ... web.config</a> is published to App folder ?

  • User Avatar
    0
    velu created

    Hi,

    Thanks, Issue has been resolved.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Great :)