Questions tagged [iis-7]
IIS (Internet Information Services) Version 7 – is a web server application and a set of feature extension modules created by Microsoft for use with Microsoft Windows. Released with Window Server 2008 and Windows Vista.
iis-7
9,467
questions
609
votes
53
answers
1.1m
views
IIS 500.19 with 0x80070005 The requested page cannot be accessed because the related configuration data for the page is invalid error
I want to upload my own asp.net website on IIS with IIS Manager. But when I do this, I get the following error
HTTP Error 500.19 - Internal Server Error The requested page cannot be
accessed ...
545
votes
19
answers
324k
views
How to fix: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
I am configuring an MVC 3 project to work on a local install of IIS and came across the following 500 error:
Handler "PageHandlerFactory-Integrated" has a bad module
"ManagedPipelineHandler" in ...
526
votes
4
answers
323k
views
What is the difference between 'classic' and 'integrated' pipeline mode in IIS7?
I was deploying an ASP.NET MVC application last night, and found out that it is less work to deploy with IIS7 set to integrated mode. My question is what is the difference? And what are the ...
499
votes
38
answers
527k
views
Login failed for user 'IIS APPPOOL\ASP.NET v4.0'
I have a web project (C# Asp.Net, EF 4, MS SQL 2008 and IIS 7) and I need to migrate it to IIS 7 locally (at the moment works fine with CASSINI).
Locally in IIS I have my Default Web Site with my ...
445
votes
40
answers
797k
views
Cannot read configuration file due to insufficient permissions
I've recently encountered an error trying to host my asp.net site with IIS. I have found a solution that many swear by.
Solution:
Add IIS_IUSRS with Read permission on files in the folder
Change ...
429
votes
8
answers
492k
views
IIS7 Permissions Overview - ApplicationPoolIdentity
We have recently upgraded to IIS7 as a core web server and I need an overview in terms of the permissions. Previously, when needing to write to the file system I would have give the AppPool user (...
397
votes
11
answers
743k
views
IIS: Where can I find the IIS logs?
I'm trying to set up an application from a third party, which requires a supporting website hosted in my local IIS. I've created a website exactly as explained in their install guide, but am having ...
326
votes
16
answers
192k
views
Using Custom Domains With IIS Express
Traditionally I use custom domains with my localhost development server. Something along the lines of:
dev.example.com
dev.api.example.com
This has provided me a ton of flexibility when working with ...
322
votes
18
answers
112k
views
Dots in URL causes 404 with ASP.NET mvc and IIS
I have a project that requires my URLs have dots in the path. For example I may have a URL such as www.example.com/people/michael.phelps
URLs with the dot generate a 404. My routing is fine. If I ...
273
votes
10
answers
182k
views
Add IIS 7 AppPool Identities as SQL Server Logons
I'm running an IIS 7 Website with an AppPool of Integrated Pipeline Mode.
The AppPools does NOT run under NetworkService, etc.. identity (by purpose), but uses its own AppPool Identitiy (IIS AppPool\...
247
votes
31
answers
1.0m
views
How do I resolve "HTTP Error 500.19 - Internal Server Error" on IIS7.0 [closed]
What causes this error, how can I fix it?
Detailed Error Information
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x8007052e
Config Error Can not ...
235
votes
15
answers
293k
views
IIS7 deployment - duplicate 'system.web.extensions/scripting/scriptResourceHandler' section
On attempting to deploy a .net 3.5 website on the default app pool in IIS7 having the framework section set to 4.0, I get the following error.
There is a duplicate
'system.web.extensions/...
230
votes
10
answers
164k
views
Enable IIS7 gzip
How can I enable IIS7 to gzip static files like js and css and how can I test if IIS7 is really gziping them before sending to the client?
213
votes
30
answers
384k
views
HTTP Error 503. The service is unavailable. App pool stops on accessing website
There are number of posts on this and I have tried many a things by now. But to no avail. Myself a Winforms Developer basically, started working on this Web stuff few days back as my company is taking ...
209
votes
2
answers
76k
views
Difference between <system.web> and <system.webServer>?
Every time I have to add a handler or module for ASP.NET with IIS7, the instructions always tell me to incorporate it into two sections: system.web and system.webserver.
<system.web>
<...
201
votes
24
answers
352k
views
System.Security.SecurityException when writing to Event Log
I’m working on trying to port an ASP.NET app from Server 2003 (and IIS6) to Server 2008 (IIS7).
When I try and visit the page on the browser I get this:
Server Error in ‘/’ Application.
...
199
votes
13
answers
219k
views
Asp.net 4.0 has not been registered
When I try to open my Visual Studio project I get the following error:
Asp.Net has not been registered on the webserver you need to manually configure your webserver for Asp.net 4.0.
Update:
...
190
votes
9
answers
124k
views
WebApi's {"message":"an error has occurred"} on IIS7, not in IIS Express
I'm working with ASP.NET MVC 4 WebApi and am having a lot of fun with it running it on my local computer on IIS Express. I've configured IIS Express to serve remote machines too, and so other's in my ...
186
votes
8
answers
572k
views
How to increase request timeout in IIS?
How to increase request timeout in IIS 7.0? The same is done under application tab in ASP configuration settngs in IIS 6.0. I am not able to find the asp.net configuration section in IIS 7.0
181
votes
7
answers
65k
views
IIS does not list a website that matches the launch url
I need to debug the website i 'm developing (ASP.NET MVC3, Razor, .NET 4, VS2010 SP1
(as administrator)) in IIS7 (Vista Home) and getting the error:
IIS does not list a website that matches the ...
170
votes
7
answers
211k
views
Avoid web.config inheritance in child web application using inheritInChildApplications
I am trying to add
<location inheritInChildApplications="false">
to my parent web application's web.config but it doesn't seem to be working.
My parent's web.config has:
<configuration>...
166
votes
11
answers
39k
views
Turn off Visual Studio Attach security warning when debugging IIS
When using Visual Studio 2008 or 2010, every time you attach to IIS w3wp.exe you get the Attach Security Warning:
How do you turn this of?
It would be cool to know also, how to keep it attached for ...
159
votes
27
answers
214k
views
"405 method not allowed" in IIS7.5 for "PUT" method
I use WebClient type to upload *.cab files to my server. On the server side, I registered a HTTP handler for *.cab file with the PUT method as below:
<add name="ResultHandler" path="*.cab" verb="...
154
votes
3
answers
99k
views
How to disable the application pool idle time-out in IIS7?
Will it be disabled if I set the idle time-out to 0?
149
votes
3
answers
126k
views
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 <clientCache /> element in web.config:
...
149
votes
4
answers
93k
views
Is Enabling Double Escaping Dangerous?
I have an ASP.NET MVC application with a route that allows searching for stuff via /search/<searchterm>.
When I supply "search/abc" it works well, but when I supply "/search/a+b+c" (correctly url ...
148
votes
6
answers
72k
views
IIS7: HTTP->HTTPS Cleanly
Is there a clean way to redirect all attempts to going to an HTTP:// version of a site to its HTTPS:// equivalent?
143
votes
19
answers
269k
views
Hosting ASP.NET in IIS7 gives Access is denied?
I have setup a application in my IIS7 that uses .NET Framework 4.0 (runned by NetworkService) but when browsing the site I get this:
Access is denied.
Description: An error occurred while ...
143
votes
10
answers
203k
views
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. ...
142
votes
1
answer
114k
views
What exactly happens when I set LoadUserProfile of IIS pool?
I faced the following issue.
I run the following code
var binaryData = File.ReadAllBytes(pathToPfxFile);
var cert = new X509Certificate2(binaryData, password);
in two processes. One of the ...
139
votes
17
answers
156k
views
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 ...
132
votes
13
answers
172k
views
Request is not available in this context
I'm running IIS 7 Integrated mode and I'm getting
Request is not available in this context
when I try to access it in a Log4Net related function that is called from Application_Start. This is the ...
131
votes
8
answers
235k
views
How to set the Default Page in ASP.NET?
Is there any section or code which allows us to set default page in web.config?
For example, when people first visit my website, I want them to see CreateThing.aspx rather than Default.aspx.
The ...
130
votes
23
answers
372k
views
Receiving login prompt using integrated windows authentication
I have a .NET 3.5 application running under IIS 7 on Windows 2003 server and cannot get integrated windows authentication working properly as I continue to get prompted for a login. I have set Windows ...
129
votes
7
answers
269k
views
How do you migrate an IIS 7 site to another server?
I'm wondering what is the best practice for moving a website to another server (along with all settings, etc.)
Manually recreate the site on the new server (not maintainable for obvious reasons)
Copy ...
123
votes
20
answers
184k
views
Remove Server Response Header IIS7
Is there any way to remove "Server" response header from IIS7? There are some articles showing that using HttpModules we can achieve the same thing. This will be helpful if we don't have admin right ...
122
votes
3
answers
267k
views
How to set the maxAllowedContentLength to 500MB while running on IIS7?
I changed the maxAllowedContentLength to
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="5024000000" />
</requestFiltering>
</...
121
votes
13
answers
267k
views
X-Frame-Options Allow-From multiple domains
I have an ASP.NET 4.0 IIS7.5 site which I need secured using the X-Frame-Options header.
I also need to enable my site pages to be iframed from my same domain as well as from my facebook app.
...
119
votes
4
answers
83k
views
IIS Manager is working but Window is not showing up in Windows 7 [closed]
IIS Manager window is not showing in my machine. It is visible in taskbar but when I click on it, it is not opening or showing up. It was working previously, but stopped suddenly.
My system Details ...
119
votes
12
answers
114k
views
Problem in running .net framework 4.0 website on iis 7.0
Hey I got problem in running .NET framework 4.0 website on IIS7.0.
the error I got is like:
HTTP Error 404.2 - Not Found "The page you are requesting cannot be served because of the ISAPI and CGI ...
115
votes
7
answers
182k
views
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive
I just installed vs 2010, followed by IIS in window 7. when building a website in .net framework 4.0 and convert this into application in IIS then its shows this error
If i remove the ...
110
votes
7
answers
111k
views
double escape sequence inside a url : The request filtering module is configured to deny a request that contains a double escape sequence
On my ASP.NET MVC application, I am trying to implement a URL like below :
/product/tags/for+families
When I try to run my application with default configurations, I am getting this message with ...
107
votes
4
answers
37k
views
MsDeploy is returning 403 forbidden
We had a Web Application working on an intranet and I'm trying to publish it to the internet using Visual Studio 2010. The destination server is running iis7 and the Web Management Service is running.
...
105
votes
2
answers
134k
views
IIS7 Settings File Locations
Where does IIS7 saves its configuration for each virtual directory/ application and its physical path?
Is it an XML file? And if so, will editing this XML file affect the IIS configuration (after ...
103
votes
3
answers
64k
views
Only one configSections element allowed per config file and if present must be the first child of the root configuration element
I am developing the console application and when I run the .exe file, I get the following error:
system.Configuration.ConfigurationErrorsException: Only one <configSections> element allowed ...
103
votes
7
answers
321k
views
IIS7 folder permissions for web application
I am using windows authentication without impersonation on my company's intranet website with IIS7.
Under IIS7, what account is used to access the folder which contains my web app using these ...
102
votes
8
answers
183k
views
"401 Unauthorized" on a directory
I assume this is an IIS error, as this doesn't happen if I run the project on my local machine.
I have my stylesheets at ~/Content/css
Any files in that directory won't load on the page, and when I ...
102
votes
6
answers
122k
views
IIS7 Cache-Control
I'm trying to do something which I thought would be fairly simple. Get IIS 7 to tell clients they can cache all images on my site for a certain amount of time, let's say 24 hours.
I have tried the ...
102
votes
1
answer
100k
views
IIS URL Rewrite {R:N} clarification
I've not been able to understand the purpose of {R:N}. Could anyone please clarify when to use
{R:0} vs. {R:1}
usage example:
<action type="Redirect" url="http://www.{HTTP_HOST}/{R:0}" />
I'...
101
votes
11
answers
312k
views
enabling cross-origin resource sharing on IIS7
I recently ran into with posting Javascript requests to another domain. By default XHR posting to other domains is not allowed.
Following the instructions from http://enable-cors.org/, I enabled ...