iis-7

Rewrite rule error: HTTP Error 500.50 - URL Rewrite Module Error. The expression “https://abc.com/{R:1}” cannot be expanded

一个人想着一个人 提交于 2019-12-12 08:20:02
问题 Whenever someone makes request over HTTP protocol I rewrite the url to make it HTTPS. This is the code in web.config: <rule name="Imported Rule 1-1" enabled="true" stopProcessing="true"> <match url="^(?!https://).*" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{SERVER_PORT}" pattern="80" ignoreCase="false" /> </conditions> <action type="Rewrite" url="https://abc.com/{R:1}" /> </rule> However when I browse on http:// I get IIS error HTTP Error 500.50 - URL Rewrite

TransferRequest vs Transfer in ASP.Net

狂风中的少年 提交于 2019-12-12 08:18:29
问题 I have gone through the links mentioned below, iis forum and HttpModules & Server.Transfer / Server.TransferRequest / RewritePath problems. but unable to catch the concept behind these transfer methods. How are they works? And which one is preferred in different situation? Can someone explain me TransferRequest vs Transfer methods for server side transfer in asp.net and its roles? Thanks in advance 回答1: HttpServerUtility.Transfer Terminates execution of the current page and starts execution

DefaultDocument suddenly not working on IIS7

為{幸葍}努か 提交于 2019-12-12 08:14:41
问题 I have a website which has been running on IIS7 for about 2 months. We have the default documents set up to load a default.asp page when users go to the domain with no page. Suddenly this morning, I am getting errors and the default document will not load. If I type the default.asp, the file loads just fine. Error Info: Module: DefaultDocumentModule Notification: ExecuteRequestHandler Handler: StaticFile Error Code: 0x80070002 here is a section from my applicationhost.config: <system

IIS7 Authorization Rules / Config - Prompting Perpetually

爱⌒轻易说出口 提交于 2019-12-12 08:11:18
问题 I am trying to secure an application in IIS7 using .NET Authorization Rules. By default, the web server allows all users access (which is inherited). I have added, just for this one application directory, a deny all users command, as well as an allow command for specific users. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <authorization> <allow users="myusername" /> <deny users="*" /> </authorization> </system.web> </configuration> I have Windows Authentication enabled,

Global.asax not loading for precompiled asp.net website

时光毁灭记忆、已成空白 提交于 2019-12-12 08:10:53
问题 I used Visual Studio 2008 to publish my asp.net website. When I bring up the website on the server (Windows 2008 server), I noticed that the code in global.asax was not running. My Global.asax body is similar to: <%@ Application Language="C#" %> <script runat="server"> protected void Application_Start() { // Initialize some site settings like a task scheduler } protected void Application_End(object sender, EventArgs e) { // Perform some clean up code } </script> There is a App_global.asax.dll

How to remotely check the status of a web application pool with PowerShell?

為{幸葍}努か 提交于 2019-12-12 07:46:34
问题 I see a lot of scripts for recycling application pools on a web server running IIS7 but is there a way to check, with PowerShell, that the web application pool is running or stopped? I can't seem to figure out a way to remotely have Get-WebAppPoolState return the status on the Application Pool, and my Google-fu has not been able to come up with a replacement. I can remotely get gwmi to work and recycle or start my app pools but ideally I only want to have to run this if the app pool is

IIS7 Integrated vs Classic Pipeline - which uses more ASP.NET threads?

六眼飞鱼酱① 提交于 2019-12-12 07:39:52
问题 With integrated pipeline, all requests are passed through ASP.NET, including images, CSS. Whereas, in classic pipeline, only requests for ASPX pages are by default passed through ASP.NET. Could integrated pipeline negatively affect thread usage? Suppose I request 500 MB binary file from an IIS server: With integrated pipeline, an ASP.NET worker thread would be used for the binary download (right?). With classic pipeline, the request is served directly by IIS, so no ASP.NET thread is used. To

ASP.NET — IIS7 — IBM DB2 Issue

送分小仙女□ 提交于 2019-12-12 07:26:24
问题 I'm working on a ASP.NET website that calls a DB2 database. I have Visual Studio installed on a Windows 2008 server where the site will be hosted. When I debug the site in Visual Studio, using the integrated web server, I can connect to the database and the site runs fine. When I set the site up in IIS7, on the same server, I cannot access the site or the database because of the following error. Here are the technical details: Windows 2008 Server IIS 7 Visual Studio 2010 Premium DB2 v9.5.301

Using IIS Application Request Routing (ARR) for ASP.NET MVC

不羁的心 提交于 2019-12-12 07:13:49
问题 I use a simple ASP.NET MVC web (the template you use when you create a new site) and the web works as expected in my live environment. I now try to use IIS Application Request Routing version 2. I have a rule that send all requests to a different server that match a rule. The settings are a bit like this: http://blogs.iis.net/wonyoo/archive/2008/07/09/application-request-routing-arr-as-a-reverse-proxy.aspx My rule is just a bit different it is /shop(.*). Only requests that contain shop are