iis-7.5

asp.net mvc does not receive the GET request with a period in it

隐身守侯 提交于 2019-12-22 04:36:19
问题 I'm using .net4.5rc with MVC4.0rc The code below is taken from a MVC webapi application but I the same behaviour is there for reular asp.net mvc My registerroutes code looks like this routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapHttpRoute( name: "R1", routeTemplate: "product/{id}", defaults: new { controller="Product", id = RouteParameter.Optional } ); This works well with Ids that doesn't have a period in them. However when I ask for a product with a period in it, the call

Window authentication not working in MVC4

人走茶凉 提交于 2019-12-22 04:29:39
问题 Scenario User A can access all pages in MVC4 website except one. But user B can access all pages (no restriction). What I had done so far? Deployed website on IIS 7.5. Enabled window authentication and disabled Anonymous authentication for hosted website on IIS. Testing website. Testing Results - (1) When User B is logged on same system (development system) where the website is deployed, he can access the website without prompt dialog. (2) But when same website is published on server

Meaning of path attribute on handlers in web.config

你说的曾经没有我的故事 提交于 2019-12-22 04:24:26
问题 I'm looking at IIS7.5 configuration (system.webServer/handlers). Do you know what is the diference between \*. and \* in the path argument for handlers? Could you use file.* (to match file.txt and file.xml) or abc.a?c (to match abc.abc and abc.asc) ? Can the path argument make reference to the "folder"? like \*\f4\*.txt ? Given a http request like GET \f1\f2.f3\f4\a.b.c?arg1.arg2.arg3=3&arg4.txt=1.4 what is the part the path argument tries to match? 回答1: The * and *. paths aren't really

How to auto-start WCF service without AppFabric

↘锁芯ラ 提交于 2019-12-21 23:31:47
问题 Does anyone know if it is possible to setup a WCF service running on IIS 7.5 so it would start automatically (and not waiting for the first request to come in), without the installation of AppFabric? 回答1: You can achieve this by using the module IIS 8.0 Application Initialization, which is compatible with IIS 7.5: IIS 8.0 Application Initialization Here's the download link for IIS 7.5: Application Initialization Module for IIS 7.5 An alternative would be to write a small app which calls your

using dot net 1.1 on IIS 7.5 (windows 7 - 32 bit)

梦想与她 提交于 2019-12-21 23:14:52
问题 Getting a lot of problems when I am trying to run a .NET 1.1 solution on IIS7.5 (on windows 7, 32 bit system). When I add the virtual directory in IIS and provide it with an ASP 1.1 application pool and try to browse the site, it adds events to to the event log with event id 5009 and 1000 and stops the application pool. I dont know what is probably going wring here and have been unable to find anything on net. I am thinking to install IIS 5.1 instead (sinse the same project on a xp machine

gzip js in IIS doesn't get compressed if static compression enabled

丶灬走出姿态 提交于 2019-12-21 17:48:59
问题 I have used Squishit to minify and bundle JS and to compress Bundled file I enabled option (Enable Static content compression) in IIS 7.5 Issue is Js doesn't get compressed and I just get minified js but if I enable dynamic content compression then Js gets compressed. Now problem with dynamic compression is that it does not cache the file and on each request it has to do the compression that take time of CPU. Can someone help me out why js doesn't get compressed in static content compression

IIS 7.5 not compressing JSON when set in application web.config

旧街凉风 提交于 2019-12-21 17:25:23
问题 I've been working on enabling JSON compression from one of our MVC3 sites. From various articles I've read it seems as though I should be able to set the application/json; charset=utf-8 MIME type in the applications web.config file. But doing so does not enable compression. But when added to the applicationhost.config file, it works. Am I missing something here? My application web.config has the following added to it: <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary

500 Vs 500.100 Error in Classic ASP

折月煮酒 提交于 2019-12-21 12:11:41
问题 When running classic ASP application in IIS7, when would a 500 error happen rather than a 500.100 error? What I mean is that a 500 error occurs but not a 500.100 error. I am under the impression that classic ASP would only throw 500.100 errors when error occurs in it's VBScript code. Some explanation through an example would be very helpful. 回答1: Classic ASP has always returned a 500.100 status if there is a script error. It's been like for a very long time in previous versions of IIS and the

Due to the presence of characters known to be used in Cross Site Scripting attacks, access is forbidden

不羁岁月 提交于 2019-12-21 09:36:08
问题 Can anyone tell me where does following HTTP error message come from: Due to the presence of characters known to be used in Cross Site Scripting attacks, access is forbidden. This web site does not allow Urls which might include embedded HTML tags. We're using dynamically generated URLs and in this specific case the URL contains the characters '<' or '>'. We do URL encode the generated URL (so '%3C' appeary instead of '<') but it doesn't help. Our setup is ASP.NET MVC / IIS 7.5 / IE8. It's

IIS 7 Canonical URL redirect

霸气de小男生 提交于 2019-12-21 09:34:52
问题 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