iis-7.5

IIS 7 Canonical URL redirect

半腔热情 提交于 2019-12-21 09:34:05
问题 I would like to make a website always have www in the address, and enforce it via IIS rewrite. For example, test.com would become www.test.com. The typical example rewrite rule is: <rule name="Canonical Host Name" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" negate="true" pattern="^www\.test\.com$" /> </conditions> <action type="Redirect" url="http://www.test.com/{R:1}" redirectType="Permanent" /> </rule> However this requires me to enter the full url of

IIS rewrite rule to redirect specific domain url to different url on same domain

此生再无相见时 提交于 2019-12-21 09:28:15
问题 I simply want an IIS 7.5 rewrite rule to redirect http://www.domain.com/url1 to http://www.domain.com/url2 (same domain). This can be achieved by: <rule name="Redirect url" enabled="true" stopProcessing="true"> <match url="^url1" /> <action type="Redirect" url="http://www.domain.com/url2" appendQueryString="false" redirectType="Permanent" /> </rule> However, this website listens to several domains, thus above becomes a global rule for all domains. How do I make this specific to domain.com?

No ASP.NET features shown in IIS 7.5

帅比萌擦擦* 提交于 2019-12-21 09:21:46
问题 I'm having an issue in IIS 7.5 where the ASP.NET feature section isn't showing on my web application. My environment: Windows 2008 R2 SP1, IIS 7.5 (7.5.7600), .NET Framework 4.0 My issue is similar to the issue posted here: No asp.net features on IIS 7.5, only my environment is different. The 'add features' fix mentioned in that post doesn't appear to work in Windows Server 2008, as I'm not seeing a simple "ASP.NET" feature that can be selected. I tried running the aspnet_regiis tool as

IIS 7.5 URL Rewrite - Rewrite a Folder from an URL

风格不统一 提交于 2019-12-21 07:55:21
问题 I use IIS 7.5 and URL Rewrite. I have a website with the following file hierarchy: webroot webroot/LegacySite Both webroot/ and legacy/ are separate App-Folders in IIS. I need to rewrite my URLs so: If a request is http://mysite.co/LegacySite/page.aspx the URL will be rewritten to http://mysite.co/page.aspx Below my Web.Conf (in the webroot folder) does not work properly, could you point out what I'm missing? <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite>

IIS 7.5 and ASP .NET 2.0

爷,独闯天下 提交于 2019-12-21 07:01:39
问题 Are there any known issues with IIS 7.5? I'm getting the following error when I try to browse/start/view any page on the site. HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x80070021 Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level.

Service not accessible when “Enable 32-Bit Applications” set to true

无人久伴 提交于 2019-12-21 06:43:47
问题 On the development server I use IIS Veresion 7.5.7600.16385 And a Service compiled for .Net 4.5.1, Any CPU The service works fine on the development server (Win Server 2008 R2). On the client's production server however I get strange problems: (Same IIS Version, same OS version) As soon as I set "Enable 32-Bit Applications" the service's URL is no longer accessible in a browser . (Page not available) (I need the 32Bit mode because the service uses some legacy COM components) What may cause

Service not accessible when “Enable 32-Bit Applications” set to true

时光怂恿深爱的人放手 提交于 2019-12-21 06:43:01
问题 On the development server I use IIS Veresion 7.5.7600.16385 And a Service compiled for .Net 4.5.1, Any CPU The service works fine on the development server (Win Server 2008 R2). On the client's production server however I get strange problems: (Same IIS Version, same OS version) As soon as I set "Enable 32-Bit Applications" the service's URL is no longer accessible in a browser . (Page not available) (I need the 32Bit mode because the service uses some legacy COM components) What may cause

Why does my new .Net 4.0 EF application randomly lock up?

两盒软妹~` 提交于 2019-12-21 06:02:31
问题 I have recently rolled out a new ASP .Net application. This application uses .Net 4.0 and the Entity Framework 4. It is a "basic" CRUD application. I almost exclusively used the EntityDataSource for Data Access. The users have reported "ocassional freezing" of the application (they all use IE 8). If the user closes his browser and starts back up, the app is fine. It happens maybe once or twice per day total, usually to the heavy users. (So, I have been leaning toward memory leack or some

ASP.NET-4 IIS7.5 web.config serverRuntime element

徘徊边缘 提交于 2019-12-21 05:08:51
问题 Whenever I add this line to my web.config in the system.webServer section: <serverRuntime /> With our without properties, IIS 7.5 just serves up a blank page instead of the website. I created a new empty Web Application using IIS and added the line to the web.config; blank page. What am I doing wrong? 回答1: I had this exact problem and solved it by unlocking the serverRuntime section of the applicationHost config. Command to run at console: %windir%\system32\inetsrv\appcmd unlock config

web.config errors fail with responseMode=“File”

浪子不回头ぞ 提交于 2019-12-21 03:58:07
问题 According to Microsoft's documentation, for static (i.e. HTML) content, web.config should read responseMode="File" for each error. Currently, my web.config includes <httpErrors errorMode="Custom"> <!-- remove statusCodes --> <error statusCode="404" path="/error/404.html" responseMode="ExecuteURL" /> </httpErrors> This returns the correct custom error page, but returns a 200 OK status code. When I change "ExecuteURL" to "File", my server does return a 404, but the custom error page is not