iis-7.5

How do I protect static files with ASP.NET form authentication on IIS 7.5?

夙愿已清 提交于 2019-11-26 02:57:17
问题 I have a website running on a IIS 7.5 server with ASP.NET 4.0 on a shared host, but in full trust. The site is a basic \"file browser\" that allows the visitors to login and have a list of files available to them displayed, and, obviously, download the files. The static files (mostly pdf files) are located in a sub folder on the site called data, e.g. http://example.com/data/... The site uses ASP.NET form authentication. My question is: How do I get the ASP.NET engine to handle the requests

How to increase request timeout in IIS?

我们两清 提交于 2019-11-26 02:50:35
问题 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 回答1: Add this to your Web Config <system.web> <httpRuntime executionTimeout="180" /> </system.web> https://msdn.microsoft.com/en-us/library/e1f13641(v=vs.85).aspx Optional TimeSpan attribute. Specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down

Fixing slow initial load for IIS

怎甘沉沦 提交于 2019-11-26 02:39:52
问题 IIS has an annoying feature for low traffic websites where it recycles unused worker processes, causing the first user to the site after some time to get an extremely long delay (30+ seconds). I\'ve been looking for a solution to the problem and I\'ve found these potential solutions. A. Use the Application Initialization plugin B. Use Auto-Start with .NET 4 C. Disable the idle-timeout (under IIS Reset) D. Precompile the site I\'m wondering which of these is preferred, and more importantly,

401 response for CORS request in IIS with Windows Auth enabled

自作多情 提交于 2019-11-26 02:34:00
问题 I\'m trying to enable CORS support in my WebAPI project, and if I enable Anonymous Authentication then everything works fine, but with Windows Auth + disabled anonymous authentication, the OPTIONS request sent always returns a 401 unauthorized response. The site requesting it is on the DOMAIN so should be able to make the call, is there any way to get around the issue without disabling Windows Authentication? 回答1: You can allow only OPTIONS verb for anonymous users. <system.web>

How to give ASP.NET access to a private key in a certificate in the certificate store?

你说的曾经没有我的故事 提交于 2019-11-26 02:27:36
问题 I have an ASP.NET application that accesses private key in a certificate in the certificates store. On Windows Server 2003 I was able to use winhttpcertcfg.exe to give private key access to the NETWORK SERVICE account. How do I give permissions to access a Private Key in a certificate in the certificate store (Local Computer\\Personal) on a Windows Server 2008 R2 in an IIS 7.5 website? I\'ve tried giving Full Trust access to \"Everyone\", \"IIS AppPool\\DefaultAppPool\", \"IIS_IUSRS\", and

Detailed 500 error message, ASP + IIS 7.5

孤街浪徒 提交于 2019-11-26 01:21:54
问题 IIS 7.5 , 2008rc2, classic asp, 500 error msg: The page cannot be displayed because an internal server error has occurred. I need to know how to configure IIS to get a more detailed error. I\'ve tried setting to true all of debugging options in the ASP configuration. But that didn\'t work. Can anyone help me? 回答1: I have come to the same problem and fixed the same way as Alex K. So if "Send Errors To Browser" is not working set also this: Error Pages -> 500 -> Edit Feature Settings ->

What is the difference between customErrors and httpErrors?

自古美人都是妖i 提交于 2019-11-26 01:05:54
问题 What is the difference between the customErrors and httpErrors sections of the web.config file in ASP.NET MVC applications? What are the guidelines for using each section? 回答1: Disclaimer: This is from my experience and not proven fact. Both are used to define error handling for a website, but different software refers to different config elements. customErrors are a legacy (backwards compatable) element, used by Visual Studio Development Server (aka. VSDS or Cassini). httpErrors are the new

IIS AppPoolIdentity and file system write access permissions

帅比萌擦擦* 提交于 2019-11-25 23:47:49
问题 Here\'s an issue with IIS 7.5 and ASP.NET that I\'ve been researching and getting nowhere with. Any help would be greatly appreciated. My question is: using ASP.NET in IIS 7.5, how does IIS and/or the operating system allow the web application to write to a folder like C:\\dump when running under full trust? How is it that I don\'t have to explicitly add write access for the application pool user (in this case ApplicationPoolIdentity )? This much I know: In IIS 7.5, the default Identity for

ASP.NET MVC on IIS 7.5

前提是你 提交于 2019-11-25 23:28:50
问题 I\'m running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently decided to have VS run/debug my apps on IIS rather than the dev server that comes with it. However, every time I try to run an MVC app, I get the following error: HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. Detailed Error Information Module DirectoryListingModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x00000000 Requested URL