Questions tagged [iis]

Microsoft developed Internet Information Services (IIS), a web server specifically designed for Microsoft Windows. It is essential to provide the version of IIS you are using, either by specifying it in your query or including a tag related to the specific version.

Deploy NextJs on an IIS server

Greetings! I have a colleague who has a node.js (next.js) website that runs smoothly when built and started through the console (npm run build and npm start). We have now hosted it on an Azure VM (Windows Server 2016 IIS, with iisnode and urlrewrite inst ...

"Error message 'querySelector' property or method is not supported on this object" is displayed when trying to access the website using the machine name in Internet Explorer 11

I am facing an issue with my AngularJS site deployed on IIS in a Windows Server 2012 R2 environment behind the firewall. When accessing the site through RDP on the server and typing in http://localhost/Foo in Internet Explorer 11, everything works fine ...

In production on IIS, Next.js displays a 404 error

After setting up a new Next.js application with a custom server and deploying it on IIS without making any modifications, I encountered an issue. While the application runs smoothly using 'npm run start' locally, it throws errors on IIS with messages such ...

How can I transform IIS rewrite rules into Nginx rewrite syntax?

I am in the process of converting an IIS rewrite rule into Nginx rewrite syntax. Specifically, I need to rewrite a URL such as /leaderboard to /pages.php?page=leaderboard. This is the current IIS Rewrite Rule I have: <match url="^([^/]+)/?$" / ...

Steps for Hosting a PHP Website on Windows Server 2008

Currently, I have a PHP website up and running successfully on my local system using XAMPP. However, I now have a Windows Server 2008 and would like to host the site on this server. Unfortunately, I am unsure of how to do this and would greatly appreciat ...

Encountering a 403 Forbidden error while attempting to access a website built with Next.js

Every time I try to access the Next.JS website that's been deployed on IIS using the HTTP address, I'm faced with this error message: Get http://...../_next/static/chunks/webpack-73760e2208a549db.js net:: ERR_ABORTED 403 (Forbidden) However, w ...

Streamlining the deployment process of Angular applications on IIS through automation tools such as Docker and Jenkins

I am currently manually deploying my Angular application on an IIS server by copying the build from my system to a specific location on the server. The code for my application is stored in a TFS repository. My application's backend is powered by Mulesoft ...

Issue with IIS due to incorrect file inclusion

Here is the directory-file structure I am currently working with: /index.php /head.inc (upper) /subdir/page.php /subdir/head.inc (lower) Within /subdir/page.php, there is a redirection to the upper level index.php: header("location: ../index.php"); In ...

Failed to load module chunk: Please update to angular 7

I am encountering an issue with my application hosted on IIS after upgrading to Angular 7. The error message "Loading chunk module failed" indicates that instead of fetching files from the dist/ folder, it is attempting to fetch them from the root folder. ...

The React application's route is not functioning properly following deployment on IIS

Hey there, I'm a beginner in the world of reactjs and currently struggling with deploying my react app on IIS. After running npm run build, a build folder is generated. I then transferred this folder to my IIS server. However, when I try to access the pag ...

My node.js server is causing IIS to display a 404 error

I'm currently working on a website using Node JS and IIS. I am facing an issue where the site is accessible within the internal IP, but I want to make sure it can also be accessed from the external IP address. I already have an IP address assigned and I am ...

Access Denied - NodeJS

Currently facing an issue with my MEAN stack application on AWS - Windows. I've set port 3000 for the Node server and IIS is using the default port 80. When trying to retrieve data using Angular via Node, I encounter an error while making a GET request li ...

Having trouble deploying NodeJS app on Azure platform

After successfully installing the SDK, I proceeded to try out the Hello World example. However, when I reached the Publish-AzureService command, it encountered an error: PS C:\code\node\tasklist\WebRole1> Publish-AzureService -name ...

Setting up a Next.js app on IIS as a secondary sub application

I am looking to set up my Next.js application as a sub-application under an existing IIS website. Although I have successfully hosted the Next.js app as a standalone website, I need assistance in configuring it as a sub-app. The reason for this setup is th ...

The iisnode encountered an issue with HRESULT 0x6d resulting in a status code of 500 and a substatus of 1013

Despite trying multiple solutions, none seemed to work for my Node.js website hosted on Windows IIS with iisnode. Everything was running smoothly until today when I encountered an interesting situation. Let's say my domain is cdn1.site.com and it's throwin ...

What could be causing my ajax post to be cut short?

After making enhancements to my MVC service with more thorough error handling and logging, I have encountered a persistent error multiple times without being able to reproduce it. Unterminated string. Expected delimiter: ". Path 'Breadcrumbs[18].Params', ...

How to make an Ajax "POST" request to the server using jQuery or AngularJS without sending any parameter data

"Execute a 'POST' request to the server by using the code provided below However, the parameter data is not being sent to the server. I have attempted both the jQuery Way and var request = $.ajax({ url: baseUrl, type:'post', data: 'userId=userabcd ...

The server encountered an issue with starting the ANCM Out-Of-Process, resulting in HTTP Error 502

We currently have two projects in progress. One involves a Web API built on .NET Core 2.2.6 and an Angular 8 Single Page Application integrated within .NET Core 2.2.6. Both projects have been deployed on IIS 7 with the Web API functioning properly, but the ...

Deploying Nuxt with IIS: A Step-by-Step Guide

I am struggling to deploy Nuxt in IIS using IIS Node. The npm run start command works on my server, but since I have other projects like admin and API (.net) running on port 80, it is occupied. However, the structure works fine in IIS. Here is the code sn ...

Request form could not be read for .NET 6 API due to exceeding the multipart body length limit

Before simply flagging this as a duplicate, I want to clarify that I have already gone through various discussions on the topic of Multipart body length limit exceeded exception. Unfortunately, none of the solutions provided in those threads have resolved ...

What steps should I take to resolve the "You do not have authorization to access this directory or page" error in Azure App Services?

Currently, I am attempting to deploy my Next.js 13 application to AppServices using Github Actions. The compilation process on Github was successful, however, I am encountering an issue where my application does not seem to be deploying or starting up prop ...

One server hosts several Angular applications on an IIS website

Is it possible to host multiple independent angular applications on a single IIS virtual directory? For instance: mysite.com/admin mysite.com/sales mysite.com/inventory The issue arises when hosting with folders as the URLs to inner pages do not ...

Implementing HTTPS Signed Certificates with IIS on Express for Production Environments

When it comes to managing API (HTTPS) certs in a development environment compared to production in an Express application running on a Node.js/Angular setup deployed to Windows IIS, the process can be a bit confusing. While proxy rewrites have been suggest ...

Tips for resolving problems with React builds

Having made some updates to my React application, I attempted to rebuild the changes and redeploy to IIS. Strangely enough, the build process is failing once again. Despite trying everything to resolve this issue, none of my attempts have been successful. ...

The curious case of jQuery.parseJSON() failing to decode a seemingly valid Json string on a Windows-based server

I am currently running a WordPress JavaScript function code on a Linux server that also includes a PHP function called "get_form_data". jQuery.ajax({ type: "POST", url: MyAjax.ajaxurl, data: {action: "get_fo ...

Configuring IIS Rewrite can be easily achieved by following these simple

My project utilizes PHP and Angular, hosted on IIS. I have enabled the html5Mode in Angular, allowing me to use routes like localhost/home instead of locahost/#/home. The issue arises when I copy and paste the URL (for example: http://localhost/home) into ...

Setting up dynamic environment variables for a Next.js app deployed on IIS: A step-by-step guide

Deploying a static Next.js app (next export) on local Windows IIS has been challenging for me. This web app interacts with a RestFul API server that's also deployed on the same network. The issue lies in the address of the RestFul API server, which is so ...

The requested resource does not have the 'Access-Control-Allow-Origin' header

Currently, I am working on an application that utilizes Angular for the client side and NodeJs for the backend. The application is being hosted with iis and iisnode. Recently, I implemented windows authentication to the application in order to track which ...

After deploying DRF, the CSS in Django admin is not displaying

After developing a web application using Django Rest Framework and React, I faced an issue during deployment on IIS. While the deployment is successful, I encountered a problem with the Django Admin where the styles were not displaying properly. This led t ...

Executing Angular within a Virtual Directory on IIS

My query pertains to Angular2+ (not AngularJS) We are facing an issue while trying to host our Angular site under a virtual directory within a website on IIS. The specific setup involves a Website named Development located at: C:inetpubwwwrootDevelopm ...

These specific resources don't have a cache expiration set. Wondering how to properly set a cache expiration for a JavaScript file

I am working on a web application that utilizes external JavaScript files. Upon running Google's page speed tool, I realized that several resources are missing cache expiration settings, including images and CSS files. Can you provide examples of how to s ...

Is there a way to set up IIS to host my NodeJS REST API on a unique URL without having to expose any additional ports?

Recently, my organization provided me with a Windows Server running Windows Server 2019 and IIS. I have successfully configured PHP and MySQL to host my website on this server using IIS. However, I have now developed a new service using Node.js that serve ...

C#: Issues with loading static content in MVC on various environments with IIS

Within my C# MVC 4.5 Website, I recently introduced a new folder to host CMS-type applications separately from the main site. While everything seemed fine during local testing, issues arose after deploying the updates to the DEV environment. A closer look ...

The loading of script files is not working properly in an AngularJS web API application

After developing an application in angularjs that utilizes angular routing for calling web api services, everything functions properly when run from visual studio. However, upon deploying the application on an IIS web server, the script files fail to load ...

Is it Mission Impossible to Combine NodeJs, Restify, SQL Server, TypeScript, and IIS?

Starting a Rest API project using NodeJS with Restify on a Windows environment (local server with IIS and SQLServer) while also using Typescript may seem like a difficult task. Is it an impossible mission? Does anyone have any helpful guides, documentatio ...

Configuring web.config for Angular Universal deployment

I am trying to deploy Angular 4 Universal on Azure Web, but I am encountering some issues with the web.config file. The server.js file is located in the dist folder, so I set the path in the web.config as "dist/server.js". However, when the server.js runs ...

Configuring IIS routing for seamless integration with Angular routing

After deploying my front-end Angular application on an IIS server and my back-end ASP.NET web API application on a separate server, I encountered an issue. Even though I can access the web page when visiting the Angular application's URL and navigate ...

Configure the IIS HttpCompression settings to compress only JSON responses, specifically those coming from asynchronous JavaScript and

I've been tinkering with the "applicationHost.config" file located in the directory "C:\Windows\System32\inetsrv\config." Everything seems to be going smoothly, but I just want to confirm something: <httpCompression directory=" ...

Fixing the IISNode HTTP 500 substatus 1002 error when processing requests

I encountered the following error while attempting to host an application on Windows IIS using IISNode: An error occurred while processing the request with iisnode. HRESULT: 0x2 HTTP status: 500 HTTP subStatus: 1002 HTTP reason: Internal Server Error ...

Start with Angular routing, then switch to mvc routing if needed

My project utilizes Angular and node.js on IIS 7.5 for the frontend, and a .NET Web API for backend calls. The Angular routing and API routing are working smoothly when testing with Visual Studio/IIS Express and ng serve. However, they run on separate por ...

PHP web application experiencing delays in response time following the execution of a PowerShell script

I'm currently developing a PHP web application on an IIS web server, and my goal is to create a read-only PowerShell live web console. Here's how the setup works: 1) On the main "console" page, there is a div element along with some buttons. I ...

Encountering HTTP 404 Errors in Specific Directories when Accessing Server Hostname Using Chrome and Internet Explorer (PHP running on IIS)

I am encountering an issue where I am unable to access specific directories on my website due to URL corruption, but this problem only occurs with certain browsers when addressing the server hostname instead of 'localhost'. My PHP web application is hoste ...

Displaying ASP.Net Core Application on local IIS - Unable to locate content

I started a new project in Visual Studio Code by running the following command: dotnet new angular --use-local-db Afterwards, I upgraded Angular from version 8 to 10 and completed the project. To test it, I used dotnet watch run Everything was running ...

IIS is unable to locate modules within Node, but they are easily found from the command prompt

After installing modules using npm install <module>, I have encountered issues when running my app under IIS with iisnode. The errors displayed are: Application has thrown an uncaught exception and is terminated: Error: Cannot find module 'form ...

The iisnode module is having difficulty in initializing the node.exe process

My iisnode module is having trouble starting the node.exe process. I need to ensure that the node.exe executable is located where it should be according to the system.webServer/iisnode/@nodeProcessCommandLine element in the web.config file. Typically, node ...

The request to http://localhost:3000 received a 500 Internal Server Error response in 197ms

I have implemented backend CORS middleware, but it doesn't seem to affect anything. When I try a POST request with Postman, it works fine. However, when I attempt to add a teacher through my front-end, I encounter an error. const express = require("ex ...

Having an issue with Vue.js displaying a blank page post running `npm run serve` and configuring it with IIS

Error Message on Empty Page Despite not using History mode and trying numerous solutions, the issue remains unsolved. I initialized a vuejs project with the command vue create my_project. Following that, I attempted to run npm run serve, which successful ...