Questions tagged [iis]

Internet Information Services (IIS) is a web server created by Microsoft for use with Microsoft Windows. Please mention which version of IIS you're running either in your question or by adding a version specific tag.

Wiki

IIS stands for Internet Information Services (IIS, formerly Internet Information Server) which is an extensible web server created by Microsoft for use with Microsoft Windows.

Several versions of IIS have shipped over the years, the most recent being:

  • IIS 10.0 - shipped with Windows 10 Fall Creators Update and Windows Server 2016
  • IIS 8.5 - shipped with Windows 8.1/Windows Server 2012 R2
  • IIS 8.0 - shipped with Windows 8/Windows Server 2012
  • IIS 7.5 - shipped with Windows 7/Windows Server 2008 R2
  • IIS 7.0 - shipped with Windows Vista/Windows Server 2008
  • IIS 6.0 - shipped with Windows 2003
  • IIS 5.1 - shipped with Windows XP Professional
  • IIS 5.0 - shipped with Windows 2000
  • IIS 4.0 - shipped with Windows NT Server/Workstation 4.0

Tag usage

The tag can be used for programming related problems when configuring IIS server for web development purposes. The tag can also be used for programming problems in implementing IIS services using IIS server.

Please note that https://serverfault.com/ is another StackExchange website, which can be used for more specific server installation and configuration related problems.

Important: Please ensure that you mention which version of IIS you're working with when asking a question. For example, there is a world of difference between IIS6 and IIS7+ and these products are very different, operationally and architecturally.

External Links

Related Tags

38900 questions
149
votes
3 answers

How to configure static content cache per folder and extension in IIS7?

I would like to set up rules in IIS7 for static content caching in my ASP.NET website. I have seen these articles, which details how to do it using the element in web.config: Client Cache (IIS.NET) Add Expires or Cache…
frankadelic
  • 20,543
  • 37
  • 111
  • 164
149
votes
34 answers

ASP MVC in IIS 7 results in: HTTP Error 403.14 - Forbidden

I'm developing an ASP MVC web project. Now I have a requirement which forces me to deploy to an IIS7 inmiddle of development (to check some features). I'm getting the above mentioned error message whenever I try to type the URL of the web site.…
savvas sopiadis
  • 1,704
  • 2
  • 12
  • 11
145
votes
30 answers

Cannot open database "test" requested by the login. The login failed. Login failed for user 'xyz\ASPNET'

I have created a web service which is saving some data into to db. But I am getting this error: Cannot open database "test" requested by the login. The login failed. Login failed for user 'xyz\ASPNET'. My connection string is Data…
coure2011
  • 40,286
  • 83
  • 216
  • 349
144
votes
12 answers

"There was an error while performing this operation"

I have a website in IIS for which I cannot open any of the settings like Authentication, Handler Mappings, Authorization Rules etc. It just shows the error message "There was an error while performing this operation", with no more details and points…
Anupam Yadav
  • 4,353
  • 4
  • 19
  • 20
144
votes
26 answers

CSS, Images, JS not loading in IIS

My all applications were working fine but suddenly all sites under IIS are not loading css, images, scripts. It redirect to login page. If i login it works fine. e.g. mysite.com/Account/LogOn?ReturnUrl=%2fpublic%2fimages%2ficons%2f41.png On my…
Imran Rashid
  • 3,352
  • 4
  • 31
  • 41
137
votes
15 answers

How can I get the current page's full URL on a Windows/IIS server?

I moved a WordPress installation to a new folder on a Windows/IIS server. I'm setting up 301 redirects in PHP, but it doesn't seem to be working. My post URLs have the following format: http:://www.example.com/OLD_FOLDER/index.php/post-title/ I…
CtrlDot
  • 3,102
  • 3
  • 25
  • 32
136
votes
16 answers

Asp.NET Web API - 405 - HTTP verb used to access this page is not allowed - how to set handler mappings

I wrote REST service using ASP.NET Web API. I'm trying to send HttpDelete request, however I get the following error: 405 - HTTP verb used to access this page is not allowed I think I'm close to the solution, I found out that I should enable IIS…
Bart
  • 2,301
  • 3
  • 29
  • 27
136
votes
22 answers

Script not served by static file handler on IIS7.5

I've just tried to deploy my first web application to IIS on my Windows 7 Home Premium notebook. After creating the application, I had to change to the Classic App Pool, then set that pool for framework 4.0. Now I get the following error: HTTP…
ProfK
  • 49,207
  • 121
  • 399
  • 775
135
votes
13 answers

Getting a 404 from WMSvc via MSDeploy.exe

From Windows 8 to Windows Server 2012 (IIS 8) with Web Management Services installed and working, I can use IIS Manager on W8 box to manage the remote server but I get a 404.7 from WMSvc when I execute the following command: msdeploy.exe" -verb:dump…
Luke Puplett
  • 42,091
  • 47
  • 181
  • 266
134
votes
10 answers

IIS - 401.3 - Unauthorized

I am trying to get started with using IIS. I created a new site on IIS Manager, mapped it to a folder on my file system and added index.html to the folder. I have set the port to 85 for this site. When I try to access http://localhost:85/index.html,…
Aadith Ramia
  • 10,005
  • 19
  • 67
  • 86
134
votes
13 answers

How to deploy an ASP.NET Application with zero downtime

To deploy a new version of our website we do the following: Zip up the new code, and upload it to the server. On the live server, delete all the live code from the IIS website directory. Extract the new code zipfile into the now empty IIS…
Karl Glennon
  • 3,149
  • 4
  • 29
  • 31
131
votes
3 answers

What's the difference between the Personal and Web Hosting certificate store?

In Internet Information Services Manager, you're given the option between the Personal and the Web Hosting certificate store when creating or importing a certificate. What's the difference?
Sam Rueby
  • 5,914
  • 6
  • 36
  • 52
130
votes
20 answers

w3wp process not found

I use Visual Studio 2010 to debug a asp.net MVC project in my local machine. The steps are: Click Debug and try to attch process "w3wp.exe". However it is not in the list. I am sure "Show processes in all sessions" is clicked.
user1108948
129
votes
10 answers

ASP.NET Web API OperationCanceledException when browser cancels the request

When a user loads a page, it makes one or more ajax requests, which hit ASP.NET Web API 2 controllers. If the user navigates to another page, before these ajax requests complete, the requests are canceled by the browser. Our ELMAH HttpModule then…
127
votes
12 answers

Access-control-allow-origin with multiple domains

In my web.config I would like to specify more than one domain for the access-control-allow-origin directive. I don't want to use *. I've tried this syntax:
Sam
  • 13,934
  • 26
  • 108
  • 194