wwwroot doesn't exist in inetpub - iis

I installed IIS on my computer, but when I try to load localhost on google chrome it's says
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x80070003
Config Error Cannot read configuration file
Config File \?\C:\inetpub\wwwroot\web.config
Requested URL http://localhost:80/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
I also don't have wwwroot in my inetpub folder and I think that's why the error above appears. I created then my wwwroot folder in the ineptpub folder, but I have a new error: HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
What can I do in this situation?

Related

How can I fix IISNode internal server error? listen EACCESS permission denied

I added a node application as a website on IIS with a web config file and whenever I try to browse the website it gives this error:
Error on web browser.
I have tried using the taskkill command to stop the process listening to this port and I also tried giving IIS_IUSRS user full permission on the root folder, but this issue persists
web.config file:
config file image
So I was able to find my way around this issue. I removed the application from IIS and I used pm2 to start the node application and I didn't encounter any error after using this approach.

Angular Universal Deployment to IIS server giving error

I have an angular universal project. After the production build dist folder was generated successfully. After putting the content in the server root folder it's displaying the following error -
iisnode encountered an error when processing the request.
HRESULT: 0x2
HTTP status: 500
HTTP subStatus: 1002
HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/#devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The node.exe process has not written any information to stderr or iisnode was unable to capture this information. Frequent reason is that the iisnode module is unable to create a log file to capture stdout and stderr output from node.exe. Please check that the identity of the IIS application pool running the node.js application has read and write access permissions to the directory on the server where the node.js application is located. Alternatively you can disable logging by setting system.webServer/iisnode/#loggingEnabled element of web.config to 'false'.
My main.js and web.config file are under the project directory with the dist folder and I gave all users full control permission in the root folder but still there is no luck.
Any help will be appreciated. Thanks in advance.
Please make sure the permissions to give the IIS_IUSRS group write permissions to that folder
Go into the advanced settings menu and under Process Model -> Identity change the user account to a user that already has write permissions.
And this link provide the steps to set node JS in IIS:
https://www.hanselman.com/blog/InstallingAndRunningNodejsApplicationsWithinIISOnWindowsAreYouMad.aspx
Maybe you need to check whether the static content feature in turn windows features on or off/IIS/world wide web service/http common feature/static content has been installed.

Getting 404 - File or directory not found when downloading a file

I have hosted a web API which written in laravel on the IIS server. There is one "versionUpgrate" API where the app asks the server to send the link to an apk file to download if there is any version is out.
"
But when I execute the below URL in the browser, I am getting "404 - File or directory not found". I am expecting the file should get downloaded here.
https://xxxx.xxxx/apk/beta_4_22_2.apk
Don't know what is blocking it here?
--------------EDIT --------------------
I believe laravel is not blocking it because this apk folder exists in the public folder. So URL is accessible.
You can try to add the type to IIS MIME Types.
Open IIS Manager
Selection "MIME Type" feature
Add...
type Extension ".apk" and MIME type "application/vnd.android.package-archive"
OK

Plesk NodeJS is showing 404 Page Not Found Error

I am running NodeJS on one of my subdomains on plesk panel.
I set the application directory and startup file correctly but when I open the subdomain url on my browser, I get a 404 error which says page not found.
In my logs, I see this error
.732 [INFO] [188.158.19.112:8597] Index file is not available in [/var/www/vhosts/domain.com/hello-world/public/]
It seems that it is looking for index file instead of running the NodeJS app.js file

"Unable to perform" issue in IIS Manager (localhost)

When I'm trying to open any app in IIS Manager (local machine) like CGI, Handler mappings etc. I got an error There was an error while performing this operation:
I'm unable to find out this issue.
I installed the hosting bundle again. i.e. repair and then checked if the iis_usr has all access for the wwwroot folder.
This resolved the problem for me.

Resources