Open Closed

I have issue when I try to Publish On IIS #10431


User avatar
0
ttrahmo created

Dear Team,

I am Published the site in the HRBack it is working fine, but after I create Application and the site call "DataSharing" in IIS give me error as attached file he can't load API swagger. Please I need from your side to check what i miss from the configuration to allow the swagger working under the Site name "DataSharing" and Application.

Thanks

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

42 Answer(s)
  • User Avatar
    0
    ttrahmo created

    Dear Team,

    I sent eMail.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Your logs level still Info instad of Debug.

    Can you use the Zoom client app to join a meeting and share your screen?

    https://us05web.zoom.us/j/84753270199?pwd=TOgWscguZl2oIO3wYRwMyV8NqE4bIZ.1

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ttrahmo created

    Dear Team,

    I already join the meeting.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please use zoom windows app to join the meeting https://zoom.us/download?os=win

    https://us05web.zoom.us/j/86442867737?pwd=Ioq7oIc71V1AugwY0w3sMU4QcQro4d.1 Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please join again

    https://us05web.zoom.us/j/85322787279?pwd=X9wxa4ilbn4ekFtIJpnPkKTfuHa1jU.1

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try to change TokenCookie.Path of AbpAntiForgeryOptions to /?

    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        //...
        Configure<AbpAntiForgeryOptions>(options =>
        {
            options.TokenCookie.Path = "/";
        });
        //...
    }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ttrahmo created

    Dear Team,

    Still you have issue

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://us05web.zoom.us/j/85934722266?pwd=XJfv2RgTHITFKVzCoBwK2PhJhQuxiv.1

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I will check it again.

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi

    Can you share your Angular app source code? maybe you disabled the withNoXsrfProtection

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try adding a custom functional interceptor that reads the XSRF-TOKEN cookie and adds the RequestVerificationToken header to mutating requests? Then register it in app.config.ts?

    This ensures that the RequestVerificationToken header is always included in POST/PUT/DELETE requests, regardless of whether the URL is absolute or relative.

    // src/app/shared/xsrf-absolute-url.interceptor.ts
    import { HttpInterceptorFn } from '@angular/common/http';
    import { inject } from '@angular/core';
    import { DOCUMENT } from '@angular/common';
    
    export const xsrfAbsoluteUrlInterceptor: HttpInterceptorFn = (req, next) => {
      if (req.method === 'GET' || req.method === 'HEAD') {
        return next(req);
      }
      if (req.headers.has('RequestVerificationToken')) {
        return next(req);
      }
      const doc = inject(DOCUMENT);
      const cookie = doc.cookie
        .split(';')
        .map(c => c.trim())
        .find(c => c.startsWith('XSRF-TOKEN='));
      const token = cookie ? decodeURIComponent(cookie.substring('XSRF-TOKEN='.length)) : null;
      if (token) {
        req = req.clone({ headers: req.headers.set('RequestVerificationToken', token) });
      }
      return next(req);
    };
    
    import { provideHttpClient, withInterceptors } from '@angular/common/http';
    import { xsrfAbsoluteUrlInterceptor } from './shared/xsrf-absolute-url.interceptor';
    
    // inside providers array:
    provideHttpClient(withInterceptors([xsrfAbsoluteUrlInterceptor])),
    

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ttrahmo created

    Dear Team,

    The system can now save data but give me error as below in the consol.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try that?

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ttrahmo created

    Dear Team,

    Thanks for your support really thanks

    The below message now is normal ?

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Yes, the error no longer exists.

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ttrahmo created

    Dear Team,

    **Thanks for your Support **

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can also change your api url in Angular instead of adding a new one xsrfAbsoluteUrlInterceptor

    export const environment = {
      production: true,
      application: {
        baseUrl,
        name: 'RTA HR Training',
      },
      localization: {
        defaultResourceName: 'AbpUi',
      },
      oAuthConfig,
      apis: {
        default: {
          url: "/HRBack",
          rootNamespace: 'TNAPlanner',
        },
        AbpAccountPublic: {
          url: "/HRBack",
          rootNamespace: 'AbpAccountPublic',
        },
      },
      remoteEnv: {
        url: 'dynamic-env.json',
        mergeStrategy: 'deepmerge'
      }
    } as Environment;
    
    

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.