Open Closed

Serve an ABP suite generated app from a virtual directory instead of a root directory #7678


User avatar
0
rwright-ruhealth created
  • ABP Framework version: v8.1.5
  • UI Type: MVC
  • Database System: EF Core (SQL Server, )
  • Tiered (for MVC) or Auth Server Separated (for Angular): NOT separated. Multiple project solution
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Create an bookstore app based on tutorial. Install Account and Identity sources. I need these for customizations for the logins, etc. and AD. Attempt to serve the bookstore app from a virtual directory i.e., https://myserver/bookstore can't login. Swagger breaks. images break. I have asked this question many times and still have not received a response.
Is this possible without a lot of headache. I had to jump through hoops to get a version 7.4 app working. It won't upgrade properly due to all of the mods I had to make. Can you provide a working solution that demonstrates running properly from a IIS virtual app directory? Thank you.


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

    hi

    Sorry for your bad experience.

    Can you try to test your app without IIS virtual app directory?

    can't login. Swagger breaks. images break.

    If you can share details, we will fix this problem asap.

  • User Avatar
    0
    rwright-ruhealth created

    hi

    Sorry for your bad experience.

    Can you try to test your app without IIS virtual app directory?

    can't login. Swagger breaks. images break.

    If you can share details, we will fix this problem asap.

    My app works swimmingly when it is deployed to as a root level application, i.e., https://localhost:44332/ or https://www.example.com/

    The problems happen when you try to add a subdirectory i.e., a virtual directory into the mix. as in https://localhost:44332/myapp or https://www.example.com/myapp That's when all the problems happen. It really gets bad if you try to include the Account Pro and Identity Pro source code. Try it and see for yourself. I can send you WEtransfer project where everything works with source code perfectly(Account PRO, Identity PRO, CHAT PRO, FileManager Pro, GDPR) source code projects until I try moving to a subdirectory or virtual directory. Then, it all breaks. As you know, it is a very unrealistic expectation that a web application is served solely as the root level application. Especially when working within an organization. Another Issue: ABP 8.2.1 has too many bugs in the source code installations. I could not log in if I used the Account Pro and Identity Pro source modules directly installed via ABP Pro in a tiered or multi-project app. CHAT Pro also fails. I downgraded to 8.1.5 as it seems to be the most stable version.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share your project source code?

    I will try to deploy it to the IIS virtual app directory and then fix the error I see.

    Thanks.

    liming.ma@volosoft.com

  • User Avatar
    0
    rwright-ruhealth created

    I emailed a WeTransfer project to you. Completely working without binaries. Requires RabbitMq and REDIS.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks. I will test it asap.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I have made it work

    Please invite me to your GitHub repository.

    GranTrakv4a.git

    http://localhost/authserver/ http://localhost/api/ https://localhost/web https://localhost/web-public

  • User Avatar
    0
    rwright-ruhealth created

    hi

    I have made it work

    Please invite me to your GitHub repository.

    GranTrakv4a.git

    http://localhost/authserver/ http://localhost/api/ https://localhost/web https://localhost/web-public

    This is really good news so far. I had to make many changes and I would like to see what can be done differently. I invited you as a collaborator on my GitHub account (RICKISWRIGHT).

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://github.com/RickIsWright/GranTrakv4a/pull/1

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15