Open Closed

How to Deploy to IIS on Windows Server 2016 #2730


User avatar
0
piseth created
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I am trying to deploy my abp applications on IIS. On IIS Manager, when I browse it as http://mywebsite.com or https://mywebsite.com:44346 , i get the following errors:

**1/ if I input Host Name in "Sites Bindings" HTTP Error 500.30 - ASP.NET Core app failed to start

2/ I do not input any host name => http://10.x.x.202/ The Website cannot display the page Most likely causes:

  • The website is under maintenance
  • The Website has a programming error.**

Please provide your email address, then i will send you the log.txt file to you


*2022-03-12 16:07:31.327 +03:00 [INF] Request starting HTTP/1.1 GET http://10.21.161.202/ - - 2022-03-12 16:07:31.651 +03:00 [ERR] GetHealthReport threw an exception when trying to get report from /health-status configured with name Asiacell Health Status. System.InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.


AUDIT LOG: [500: GET ] /Error

  • UserName - UserId : -
  • ClientIpAddress : 10.21.161.202
  • ExecutionDuration : 16
  • Actions:
    • Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (2 ms.) {}
  • Exceptions:
    • Could not find file '/libs/abp/core/abp.css' Volo.Abp.AbpException: Could not find file '/libs/abp/core/abp.css' at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileInfo(IBundlerContext context, String file) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetAndMinifyFileContent(IBundlerContext context, String fileName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileContentConsideringMinification(IBundlerContext context, String fileName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.Bundle(IBundlerContext context) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.<>c__DisplayClass16_0.<GetBundleFilesAsync>b__0() at System.Collections.Generic.AbpDictionaryExtensions.<>c__DisplayClass7_02.<GetOrAdd>b__0(TKey k) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at System.Collections.Generic.AbpDictionaryExtensions.GetOrAdd[TKey,TValue](ConcurrentDictionary2 dictionary, TKey key, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleCache.GetOrAdd(String bundleName, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetBundleFilesAsync(BundleConfigurationCollection bundles, String bundleName, IBundler bundler) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetStyleBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperStyleService.GetBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List`1 bundleItems, String bundleName)

at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request) at System.Net.Http.HttpClient.CheckRequestBeforeSend(HttpRequestMessage request) at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) at System.Net.Http.HttpClient.GetAsync(Uri requestUri) at HealthChecks.UI.Core.HostedService.HealthCheckReportCollector.GetHealthReport(HealthCheckConfiguration configuration) 2022-03-12 16:07:31.906 +03:00 [INF] Application started. Press Ctrl+C to shut down.*

Please help support me to deploy it


36 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    HI

    Can you try to set the Bundling Mode to Bundle?

    https://docs.abp.io/en/abp/latest/UI/AspNetCore/Bundling-Minification#bundling-mode

  • User Avatar
    0
    piseth created

    HI

    Can you try to set the Bundling Mode to Bundle?

    https://docs.abp.io/en/abp/latest/UI/AspNetCore/Bundling-Minification#bundling-mode

    Hi, Thanks so much. I am trying. I will come back to you.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok. : )

  • User Avatar
    0
    piseth created

    Hi,

    I tried all these options in MyProjectWebModule.cs, but still cannot help me.

    • Auto: Automatically determines the mode based on the environment.
    • None: No bundling or minification.
    • Bundle: Bundled but not minified.
    • BundleAndMinify: Bundled and minified.
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share your website URL? liming.ma@volosoft.com I will test it in IE.

  • User Avatar
    0
    piseth created

    hi

    Can you share your website URL? liming.ma@volosoft.com I will test it in IE.

    i did not publish it outside. How about if i zip the folder (which is located under C:\inetpub\wwwroot) and send to you? Then you put it in your PC under C:\inetpub\wwwroot and you can test it. May be my project is missing any important things

    **I already shared it with you. plz check **

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    OK, I will check it.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    HI

    Bootstrap v5: Internet Explorer is not supported. If you require Internet Explorer support, please use Bootstrap v4.

    https://getbootstrap.com/docs/5.0/getting-started/browsers-devices/#internet-explorer

  • User Avatar
    0
    piseth created

    HI

    Bootstrap v5: Internet Explorer is not supported. If you require Internet Explorer support, please use Bootstrap v4.

    https://getbootstrap.com/docs/5.0/getting-started/browsers-devices/#internet-explorer

    Thanks so much If i want to use the Bootstrap v4, i have to downgrade the version of Abp Commercial?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Yes, But I don't recommend to downgrade.

  • User Avatar
    0
    piseth created

    Yes, But I don't recommend to downgrade.

    Thanks so much

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11