Open Closed

The Resource Requested couldn't found on server #8084


User avatar
0
nabass created

hi i faced non logical error after build angular project and publish in IIS Server this error doesn't appear in development phase what is that and how to solve it note: i started new project for test (abp new projectName -u angular) and faced same error

  • ABP Framework version: v8.3 && v8.0
  • UI Type: Angular

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

    Could you share the full logs?

  • User Avatar
    0
    nabass created

    as i mention before this is new project without any logic without any code just generated project then test i got this error here is the log

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I can reproduce the problem, you can remove remoteEnv from environment.prod.ts to solve the problem.

    we will fix the problem in the next patch version and refund your ticket.

  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hi, do you have web.config in your angular prod folder ? If yes can you please add a custom rule for getEnvConfig endpoint like below

    <system.webServer>
     <rewrite>
      <rules>
       <rule name="Redirect" stopProcessing="true">
        <match url="getEnvConfig" />
        <action type="Redirect" url="dynamic-env.json" />
       </rule>
      </rules>
     </rewrite>
    </system.webServer>
    
  • User Avatar
    0
    improwise created

    Can confirm we are also seeing this problem but it seems like the source of it has been identified.

  • User Avatar
    0
    improwise created

    Hi, do you have web.config in your angular prod folder ? If yes can you please add a custom rule for getEnvConfig endpoint like below

    <system.webServer> 
     <rewrite> 
      <rules> 
       <rule name="Redirect" stopProcessing="true"> 
        <match url="getEnvConfig" /> 
        <action type="Redirect" url="dynamic-env.json" /> 
       </rule> 
      </rules> 
     </rewrite> 
    </system.webServer> 
    

    Why would there be a web.config in an Angular application?

  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Because if you gonna publish ng app to IIS, IIS needs web.config

    It is deployment step requirements. I'll try to get dynamic-env during first request.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09