Open Closed

support publish to IIS #3971


User avatar
0
sunivycsm created

I am doing publishing project to iis. I just publish the xxx.WEB project and put it in the inetpub/wwwroot folder at drive C. Then I will use IIS to point to the folder. Usually mvc projects I will do the same. But now I can't show the web, so can you guide me so I can publish the project?

  • ABP Framework version: v6.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace: Showing 404 when uploading to iis of windows server
  • Steps to reproduce the issue: Publish project xxx.WEB. Attached image is my project folder.

5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    ABP is a typical ASPNET Core application, you can follow the Microsoft document: https://learn.microsoft.com/en-us/aspnet/core/tutorials/publish-to-iis?view=aspnetcore-6.0&tabs=visual-studio

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    What's the error log?

    BTW, I see you are using bookstore.com , do you have local host DNS?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    License code not found! Ensure that your appsettings.json or appsettings.secrets.json has "AbpLicenseCode" key with your license code.

    Can you check it?

    Usually, when you create a new project, you can see the AbpLicenseCode in the appsettings.secrets.json file.

  • User Avatar
    0
    sunivycsm created

    Hi,

    I have fixed the above error but provided that the machines running windows are fine. And when I upload to iis of windows server, the same error occurs. Tell me is there any difference? And I'll have to double-check it properly

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    And I'll have to double-check it properly

    Can you share some screenshots? thanks.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11