Click here to Skip to main content
15,890,527 members
Everything / Web Development / IIS

IIS

IIS

Great Reads

by Max Paulousky
This article presents the techniques and caveats of building Silverlight applications that can be notified about database state changes via polling duplex. WSHttp binding and CLR triggers are used to implement the solution as well.
by Bert O Neill
Query Hadoop using Microsoft oriented technologies (C#, SSIS, SQL Server, Excel etc.)
by Monjurul Habib
How to: ASP.NET 4.0 Routing and Ext.NET.
by Bill Seddon
Shows how a .NET based WebDAV server can be created by combining two Open Source projects. The example implementation returns files from a file system, but you can extend it to return resources from any repository.

Latest Articles

by Lance Ford
Use an IIS module to identify the node that served a request in a web farm environment.
by Lance Ford
Step-by-step guide to enable an ASP.NET web application to override date, time, currency and number formats.
by Lance Ford
A walkthrough to enable request/response logging to an ASP.NET web application (or web service) by using an IIS module.
by ToughDev
How to install Microsoft Web Deploy on Win7

All Articles

Sort by Updated

IIS 

28 Feb 2024 by Richard Deeming
Assuming it's the "Add trailing slash" rule that's causing the problem, your match is missing the "start of line" anchor: should be:
27 Feb 2024 by Member 14703094
We have an ASP.NET Core 7 MVC app hosted on Azure and IIS. For some purposes, like adding a trailing slash, we use URL rewrites. But this rule appears to cause a problem with unwanted redirects from URL parameter, so for example,...
15 Feb 2024 by Lance Ford
Use an IIS module to identify the node that served a request in a web farm environment.
18 Jan 2024 by Lance Ford
Step-by-step guide to enable an ASP.NET web application to override date, time, currency and number formats.
12 Jan 2024 by Lance Ford
A walkthrough to enable request/response logging to an ASP.NET web application (or web service) by using an IIS module.
14 Aug 2023 by Robert E Campbell
The best (and only) way I have found to do this is to bind that one application to its own AppPool and then stop the app pool
14 Aug 2023 by Telstra
I have specific Site on IIS. Under that many application are deployed. Now I want to stop only one particular application under that specific Site. When I right click on that application folder it is not showing stop option. But wen I right click on that specific Site it is showing stop option....
10 Aug 2023 by Tyson3264
Is there a way within web.config or IIS 7 settings that will stop the login prompts and just force the user to the 401 error upon being denied due to URL Authorization rule? Right now, it successfully restricts access to the page, but doesn't...
19 Jun 2023 by RAHUL(10217975)
I am trying to deploy Python flask app in IIS python Code from flask import Flask # Create a Flask application instance app = Flask(__name__) # Define a route and a corresponding function @app.route('/') def hello(): return 'Hello, World!'...
19 Jun 2023 by Richard MacCutchan
Check that your settings match those that are listed at https://medium.com/@dpralay07/deploy-a-python-flask-application-in-iis-server-and-run-on-machine-ip-address-ddb81df8edf3[^].
30 May 2023 by stdout
Hi all, i need to deploy a .NET Core WebApi project to an dedicated VM with IIS. The build step works and puts all into a .zip package. The VM and WebDeploy Agent is configured and works well deploying via msdeploy from my local...
28 May 2023 by $ultaNn
I have deployed the application in IIS Version 10 of Windows server 2019 the session is getting null when the page is redirected to another page from login. In Windows 11 IIS it's working fine here is my Web.config code For more information...
24 May 2023 by Gaby94
I'm trying to make an auto installer in command prompt for an app (FUXA : https://github.com/frangoteam/FUXA ). Everything works fine until I reboot the machine that was installed on, after that it gives me this error in the browser: iisnode...
23 May 2023 by Andre Oosthuizen
Been here before, it seems that your file system permissions or log file creation for the IIS app pool running the Node.js app is the culprit. You can try the following if not yet done - Check that the identity of the IIS app pool assigned to...
11 May 2023 by Roland M Smith
httpPlatformHandler doesn't pass REMOTE_USER as a request header. I was hoping to use URL Rewrite but the interface is being difficult. I keep getting a message that there are data errors but it doesn't tell me what is wrong. What I have tried: ...
7 May 2023 by ToughDev
How to install Microsoft Web Deploy on Win7
21 Mar 2023 by Alessandro Terzi
I have a web application done in c#, when I start it from visual studio, it works without problems, however when I try to upload it to IIS and open it via localhost it gives me this problem. https://imgur.com/Eij19uo What I have tried: ...
21 Mar 2023 by Alessandro Terzi
In reality it gives me the impression that the error says nothing, also because starting the web app from visual studio it works perfectly, however I went to the "Event Viewer", "Windows Logs", "Application" setting and you should find the error...
20 Mar 2023 by OriginalGriff
Read the error message: it gives you explicit instructions on what to do to get the actual error information. You cannot solve this problem from that error message - nobody can - you need the actual error information that caused the system to...
14 Mar 2023 by ayush agrawal May2021
we have a customer with last name muxsi, and when receiving request from IIS we are receiving only "mu i" somehow xsi keyword is replaced by space. i i dont have clue where to check for this issue. What I have tried:
2 Mar 2023 by RickZeeland
In addition to Griffs advice, if you are self-hosting IIS you probably need to install the ASP.NET Core Runtime 5 Hosting Bundle: Download .NET 5.0 (Linux, macOS, and Windows)[^] Or maybe you can try this: publish-net-core-5-0-api-to-iis[^] ...
2 Mar 2023 by huynhminh97
I have a Rest API using NET5 and I want to host it in IIS. But after created new website in IIS, it is error HTTP Error 500.30 - ASP.NET Core app failed to start[^] when I run What I have tried: I open logs file and see the error...
2 Mar 2023 by OriginalGriff
It means that whatever version of .NET you built the project for is not installed or supported on the web server. Talk to the tech support people at your hosting service - they can tell you what versions they support or make recommendations as...
22 Feb 2023 by Andre Oosthuizen
You can use URL rewriting techniques to convert the dynamic URLs into static URLs by changing it'd format. In your .htaccess file you can use something like this - RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond...
22 Feb 2023 by Member 13934081
Hi, I’m using php/mysql on Windows shared hosting and have 1000 individual items to display on 1000 versions of the dynamically generated detail page which currently shows, for example, as: http://www.mydomain.com/folder/detail.php?ID=3...
19 Oct 2022 by Judah91
My IIS subsite take the web.config from the main site. How to avoid it? I want my subsite just read its own web.config and works as independent site This is how it looks in IIS: https://i.stack.imgur.com/T615B.png[^] What I have tried: ...
19 Oct 2022 by Richard Deeming
You can't. You can wrap some sections from the main site config in elements; but some sections don't allow you to prevent inheritance. In some cases, there will be a syntax to remove or clear the...
20 Sep 2022 by koolprasad2003
Dear team we have implemented WebDav using asp.net and deployed it on IIS. Now when we try to edit any file on client machine with Word 2013/2016 then word prompts security warning as "The application experienced an internal error loading the SSL...
22 Aug 2022 by Raj Kumar79
Create a new task and set up a IIS restart using Windows 10 Task Scheduler
9 Aug 2022 by Luis M. Rojas
Hello, i just created the example of web api in vs 2019 (the weather), I just published it (after tons of errors) but when i use the IIS server and browser it: Only the list of files on the folder is displayed, not the page with the temparautes....
9 Aug 2022 by OriginalGriff
Normally, this kind of web-related-it-works-in-dev-but-fails-in-prod problem is down to one of two things: 1) User / permissions. In dev, you C# code runs as you on your machine, and can access anywhere you can. In prod, it runs under a specific...
6 Jul 2022 by GoJo Vana
My application is MVC.we deploy the code through azure pipelines. IIS server. In local my code changes are working fine. Verified by debugging but the same is not working after we deploy. Verified in server. The pushed changes are available. ...
6 Jul 2022 by #realJSOP
When you deploy new javascript code, sometimes you have to clear the browser's cache data in order for it to re-load the .js file. Sometimes, doing a Ctrl-F5 will perform the reload without clearing the cache.
27 Jun 2022 by Waseem Khan Mar2021
After depolying website on IIS server when i browse the site it shows error "Hmm... cannot reach this page" What I have tried: I have tried many options but to no avail
1 Jun 2022 by Member 7513082
I am getting below exception "The application attempted to perform an operation not allowed by Security Policy while deploying a build in IIS as a fix. Exception Details: Request for the permission of type 'System.web.AspNethostingPermission,...
1 Jun 2022 by Aravindba
Hi Glo to iis, and select application pool which used by your application, and click Advanced Setting and find out "Load User Profile" and make as True. Ss -- https://prnt.sc/WFqYvwhX0H4s Refer this url...
18 May 2022 by DrgIonuţ
In my MVC app I want to get website's physical path on IIS server. This old post is about it, but I'm using a newer version of IIS (10.0.19041.1). Is there another way of accomplishing this task? I was trying the accepted solution from the above...
18 May 2022 by Richard Deeming
If site is null, then you do not have a site configured with an ID of 2. Open IIS Manager, select the Sites node, and check the ID column to see the IDs of the site(s) you have configured.
17 Mar 2022 by Senthilkumar C 2022
Hi Team, can someone help me to solve the security headers Access-Control-Allow-Origin in IIS. I have one webserver and 1 app server. In the webserver using to redirect the public hit to app server with help of URLRewrite module. We are using...
3 Mar 2022 by spyke1
When installing fonts on a server, NEVER double click them to install, otherwise it only installs for the current user. Instead you should right click the font file and select "Install for all users". The font will then be available right away...
23 Feb 2022 by JaekiLee
you must update AjaxPro.2 in nuget package manger. latest version 6.10.6.2
17 Feb 2022 by Michaelred54
Using visual studio 2022 and IIS Express to write and modify a lot of code that requests a user to select a certificate. Using IIS Express works perfectly but when I run the site from within IIS manager the website does not prompt for the...
17 Feb 2022 by Richard Deeming
Your code is running on the server. You are displaying a prompt on the server, where nobody will ever see it, to select a certificate from the server's local certificate store. It might appear to work when you debug it in IIS Express. But that's...
16 Feb 2022 by Member 13427811
Hi Guys, I have to website in IIS that can accessed by Static IP and port, like:175.75.75.75:387, 175.75.75.75:456. I Want to create a high level login form, and after authentication, users can view link of my both of websites. the users might...
16 Feb 2022 by M Imran Ansari
According to your requirement, You should write an separate Login Application which should first verify the user with high level credentials and than you can redirect on either first site or on another on the basis of rights and privileges....
16 Nov 2021 by saxenaabhi6
I got a website working on http and https bothbut mywebsite.com/xyz.svc only works with http not with https.solution tried:added binding below: ...
7 Nov 2021 by Member 15421434
Step : 1 Go to folder where you want to upload photo Step : 2 Right click on folder and select properties Step : 3 Than select security tab and select on Edit button Step : 4 Window will appear in which , press button "Add" Step : 5 And in...
25 Oct 2021 by sanjayv.gade
Hi All,I am getting below error message:"401 - Unauthorized: Access is denied due to invalid credentials"When i trying to login our website remotly it gives access denied error.if i changed authentication mode "Windows" in IIS7.5 on our staging server then i can logged into...
1 Oct 2021 by jar8695
I inherited a .NET web app within a company and I have had to migrate the app to another server running Windows 2019 server and IIS. I have checked all settings are exactly the same as the app on old server (windows 2012 r2) and we have the DNS...
22 Sep 2021 by Roland M Smith
We have a C# ASP.Net web app running on Windows/IIS 10. We also have an ISAPI Extension written in C++. I wrote the ISAPI Extension and someone else wrote the C# web page. Both need to read files located on a different computer on the network. ...
22 Sep 2021 by Dave Kreskowiak
It sounds like you gave the IIS server machine account permissions to the share (bad idea by the way) but did not give the ASP.NET account your app pool is using permissions to the share. It's a better idea to create a user account, specifically...
29 Jul 2021 by abhimestry
Application is hosted successfully. But users are complaining that they are unable make login into system. Application Pool is did not stopped. SQL services also did not stopped. What I have tried: Checked whether application pool is working or...
29 Jul 2021 by OriginalGriff
Since it's a live system, you can't really use a debugger - so you will have to fall back on older, more long winded debugger techniques. Start by "peppering" the appropriate code with logging statements: to a file, or a DB, or whatever is...
1 Jul 2021 by Lucio Flavio
Check if the user has access granted to the folder. In my case, the trouble was because someone has removed the group SERVER\Users (that contains DOMAIN\Users inside group) from folder.
30 Jun 2021 by Tomer W
It is probably due to IIS running in "Session0" and not allowing any UI to be utilized. (if you didn't do that already in the last 10 years :) you can see more info and ways to resolve @ c# - Run a process/URI from IIS in a desktop session -...
9 May 2021 by AkashDaniel
I have a sql stored procedure to upload the group of files. when I run that procedure from front end half of the files are uploaded and the procedure is stopped suddenly. but when I run it from backend its running.I don't know the exact reason....
9 May 2021 by ScarryJerry
Check your web config settings to make sure the timeout value is set high enough to process all the files, or spawn a file upload process for each file, so the timeout parameter does not have to be really large.
15 Mar 2021 by Maciej Los
Richard Deeming is right! Please, see: MSDN wrote: Important Windows Authentication is much more secure than SQL Server Authentication. You should use Windows Authentication whenever possible. OPENDATASOURCE should not be used with explicit...
15 Mar 2021 by Medo-I
Hi we are facing issue on connecting database on another machine on LAN. the code connection works fine while we run in from vs project and it make effect on other pc database, but throw error when we host it on iis on local machine. we try many...
15 Mar 2021 by Richard Deeming
The problem is not in your SQL code; it is in your application code, which is connecting using Windows authentication. When you run the project in Visual Studio, it runs under your user account. The connection to SQL uses your Windows account,...
19 Feb 2021 by Member 12564127
I have an iis website that has been coded in asp and each piece of code is linked to an IP address. There are multiple servers in the setup so they all need doing. Literally thousands of files. I’ve inherited a right mess! Is there a...
19 Feb 2021 by Richard MacCutchan
Something like: Get-ChildItem -Path "FILETYPE" -Recurse | ForEach { (Get-Content -Path $_ | ForEach { $_ -replace "192.168.1.200", "DNSREF"}) | Set-Content $_ } FILETYPE should be of the form "*.xxx", where xxx is the file extension of the...
28 Jan 2021 by IamWsk
I have few weak ciphers on my windows server 2012 but when I disable them my website stop working which is hosted on that server. Can anyone help me what should I do that my website should be working after removing these ciphers. Here are my all...
28 Jan 2021 by Richard Deeming
It's not clear what you mean by your application breaking. But if you want to disable weak ciphers, the simplest option is to use the IIS Crypto tool: Nartac Software - IIS Crypto[^] You'll probably need to reboot your server after making...
13 Jan 2021 by Richard Deeming
Use the tag in your config file: ...
13 Jan 2021 by scorpzonex
i want to allow maximum request length for specific method instead of global setting in webconfig. What I have tried: [setmaximumrequestlenght()]...
4 Jan 2021 by Alessio A.
Hi there,� i have a service .svc hosted on a machine whit windows server 2019 on IIS 10, im tryng to send a POST request whit postman sending a json whit the following headers: Postman-Token: �calculated when request is sent> Content-Lenght:...
4 Jan 2021 by Dave Kreskowiak
Quote: The HyperText Transfer Protocol (HTTP) 406 Not Acceptable client error response code indicates that the server cannot produce a response matching the list of acceptable values defined in the request's proactive content negotiation headers,...
29 Nov 2020 by Gaurang Majithiya
Usually, you will see this error when you run your project from Visual Studio. This error itself says that it's a start failure while running your project from Visual Studio.
26 Nov 2020 by Chriz12
Hello, I am developing a web app that has reports created on VS 2019 and run fine from developer mode, but when I publish the website I get "Database logon failed" Error. Database server is on different server that development and production...
26 Nov 2020 by RickZeeland
It seems the good people at CodeProject are a bit tired of all those Crystal Report problems. So if no one answers your question you might be interested in an alternative like FastReport, see: open-source-reporting-tools[^]
19 Nov 2020 by xhon
I'm trying to set up a RestFul service on IIS, my working environment is Visual Studio, C #. In my solution I have two separate projects, one for a REST service and the other for a WCF service, they are managed by the same Proxy; the proxy...
19 Nov 2020 by xhon
I want to implement a Rest service inside my application, which already has different layers (Business Logic Layer, Data Access Layer and Data Model which contains all my entities). I'm gonna using IIS (locally) and Visual Studio. I created a...
18 Nov 2020 by Gerry Schmitz
Write a web service by using Visual C# - C# | Microsoft Docs[^]
8 Nov 2020 by DotNetLead.com
This article shows you how to add Windows Authentication to Angular and .NET Core Web API projects.
26 Oct 2020 by Pankaj Chamria
My asp.net web application is using windows authentication & running under impersonation account "AppServiceAccount" which has access to certain folders for IO operations.Certain pages require IO operations on some privileged folders on which client does not allow "AppServiceAccount" to have...
26 Oct 2020 by Member 12277546
did you get any solution. We are also facing similar problem.
25 Sep 2020 by ehwash
I'm building a authentication app using OWIN. I'm trying to get both the Bear token and userinfo claims. The code below gets me to 85% of what I want. While initially writing the code I used IIS Express. I debugged and coded towards that...
14 Sep 2020 by octavia81
After almost half day googling, i solved it out. I used virtual directory to make reference that folder path in web server. Thanks guys :)
14 Sep 2020 by octavia81
Any good idea on this? How do i open htm file from asp.net web form application? I have some htm file which are stored in web server, i need to open (view only) those files from my web app. Open as a new browser (tab or new window). I used ...
14 Sep 2020 by Sandeep Mewara
Seems this should help: Microsoft Tech Community: Use Local IIS without Administrator rights [^]: 1. Run the application pool under the non-admin user’s account 2. Give SeDebugPrivilige to the domain user account Quote: For the two approaches...
14 Sep 2020 by Member 14908535
I am a non-admin user trying to deploy a .net core app to IIS. I have been able to successfully publish the app to a folder, however, I am unable to open IIS manager without admin privilege so I can complete the deployment to IIS. Is there a way...
13 Sep 2020 by BillWoodruff
So, do some research on server-side file access from a WebForm. Relevant content is a Google away: [^] And, keep in mind that security configurations vary: you may need to frame your question very specifically in terms of the context in which...
11 Sep 2020 by F-ES Sitecore
Google "edge windows authentication" - some pages have things to try, but it seems like Edge might just not support Windows Authentication. single sign on - Integrated Windows authentication in Microsoft Edge - Stack Overflow[^]
11 Sep 2020 by Member 14935894
I have a asp.net application. In localhost if I run the application using IE the application runs as expected. If I run the application in Edge i get - 'HTTP Error 401.2 - Unauthorized' error Application uses windows authentication In IE I will...
11 Sep 2020 by Sandeep Mewara
Windows login prompt dialog is an internet setting and the default setting is "Automatic logon only in Intranet zone". Please make sure this setting is enabled for edge. Quote Refer[^]: For Edge, a server is recognized as part of the local...
16 Aug 2020 by Member 14859775
I am getting this error and I have tried resolving it but couldn't able to can anyone help me with the answer please. What I have tried: Installed crystal reports, registered aspnet with iis and other solutions from the internet but it didn't...
11 Aug 2020 by Reddy Prakash
Hi All,I have installed a Web application on IIS 7.0 windows server 2008 R2 64 bit OS I am refering a oracle.DataAccess.dllWhen i try to acess the application i am getting the below message"Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was...
20 Jul 2020 by Member 14894424
I'm using Visual Studio 2010 and Visual Studio 2015 Both are Doesn't work in one pc. so Please Uninstall visual studio Old Version.
20 Jul 2020 by Chriz12
Hello, I need to have my web application to be accessible on local network. I followed these two articles for publishing my web application on local IIS....
18 Jul 2020 by Zainalds
I have created a C# webservice (asmx) application bin Visual Studio. I am hosting on IIS. How do I by-pass IIS and access the url on Firefox. What I have tried: I am presently viewing the asmx through context view.
18 Jul 2020 by Zainalds
If your service responds to a GET and doesn't require anything you can't set from your browser (like headers) then yes you can, that is exactly what is happening when you do it from IIS manager.
17 Jul 2020 by Harsha11421
Respected Developers,In my application i am working with a web service.. after testing for several times in my local system i hosted it in webserver unfortunately i am getting "the page cannot be displayed because an internal server error has occurred" where as it is working fine in my...