iis-7.5

403 - Forbidden on basic MVC 3 deploy on iis7.5 [duplicate]

陌路散爱 提交于 2019-11-27 05:36:11
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: ASP.NET MVC on IIS 7.5 I am trying to deploy a basic MVC 3 application to my 2008 R2 Server running iis 7.5 but receive a "403 - Forbidden" error trying to view my page. I have anonymous authentication enabled, and my app pool is using the "ApplicationPoolIdentity" in integrated pipeline mode with .net 4.0. I don't know what "user" the "ApplicationPoolIdentity" is, but I've given IUSR read/write rights to the

Add custom header based on file type

心不动则不痛 提交于 2019-11-27 04:46:10
We are trying to add a custom header (X-Robots-Tag) for sitemap files in IIS 7.5. However, it does not appear that IIS supports custom headers based on a file type or wildcard (only subfolders). Can we add a custom header for only *.xml.gz files via Web.config? We would like to avoid making the customization via code or on our load balancer. Efran Cobisi You can use the IIS UrlRewrite module and add a custom outbound rule to configure the custom header. Here is a sample rule you may want to use: <system.webServer> <rewrite> <outboundRules> <rule name="Set custom HTTP response header"> <match

ASP.NET MVC Routing - add .html extension to routes

别来无恙 提交于 2019-11-27 04:38:32
i am pretty new to MVC and Routing and i was asked to modify an app to use diffrent url's. a task that is a bit over me since i have no experience. ok, lets talk a bit of code: routes.MapRoute( "CategoryBySeName", // Route name "products/{SeName}", // URL with parameters new { controller = "Catalog", action = "CategoryBySeName" } ); this works as expected, but then the client wanted ".html" at the end of paths, so i changed: "products/{SeName}", // URL with parameters to: "products/{SeName}.html", // URL with parameters which fails ( IIS 404 page - MapRequestHandler) it seems like iis is

URL Rewrite keeps original host Location when reverse proxy 301 redirects

﹥>﹥吖頭↗ 提交于 2019-11-27 04:30:28
问题 I have URL Rewrite setup on an IIS 7.5 site: http://site1.com/ This acts as a reverse proxy to the second site: http://site2.com/ Here is the flow of events: 1. Browser does a GET on http://site1.com/somepath 2. This gets passed through to site2 because site1 is the URL Rewrite reverse proxy. This works well and the host is correctly set because I've done the mod that requires this. 3. site2 responds with a 301 status and sets the HTTP Location header to http://site3.com/somenewpath 4. site1

Detecting Memory Leaks in ASP.NET [closed]

99封情书 提交于 2019-11-27 04:11:11
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . My development team is using ASP.NET 3.5 / 4.0 right now, and our sites are running on IIS 7.5. Recently, we've been having problems

HTTP PUT not allowed in ASP.NET Web API

流过昼夜 提交于 2019-11-27 03:58:11
On my Web API project, I cannot perform an HTTP PUT to my resources. I've read through some similar questions on this problem and I've followed the recommended advice. First off, I uninstalled WebDAV completely on my machine (Windows 7 64-bit) and subsequently rebooted my machine. Secondly, the WebDAV handlers were specified as removed in my web.config and the HTTP PUT verb was specified as being allowed for the Extensionless URL Handler. <modules runAllManagedModulesForAllRequests="false"> <remove name="WebDAVModule"/> </modules> <handlers> <remove name="ExtensionlessUrlHandler-ISAPI-4.0

Requests hanging on Session module on IIS 7.5

徘徊边缘 提交于 2019-11-27 03:07:47
问题 From time to time, some requests on my website starts to hang on the RequestAcquireState state of the Session module. When that spiral begins all requests timeout and we need to restart the IIS on the affected server. I investigated it a lot and the only conclusion I got is that somehow a deadlock is happening while the application tries to access user data stored in Session. The only option I can think of to fix this issue is to either reduce or stop using Sessions in my application. This is

Build succeeds, but publish fails

为君一笑 提交于 2019-11-27 03:02:53
问题 Up until two days ago, I was able to use Visual Studio 2010's "Publish Web" option by right clicking on my project and clicking the publish button on the context menu. Now when I try to do the same thing, I get the following output: ------ Build started: Project: ELMS, Configuration: Debug Any CPU ------ Build started 8/1/2011 3:08:03 PM. GenerateTargetFrameworkMonikerAttribute: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to

IISExpress User Interface [closed]

余生颓废 提交于 2019-11-27 02:57:23
I have just downloaded and installed IIS express and it all works well running it from the command line: But how do i configure options for it, is there a standalone windows interface for it like IIS Manager or do you have do do everything manually in the config files? Or do you have to install webmatrix to configure it? Jaro Dunajsky IIS Express is a lightweight version of IIS and it doesn't ship with the the admin UI tool like IIS Manager. You could install WebMatrix, but it only allows you to configure few settings (binding, default documents, SSL). The options you have today: you can use

Custom errors not working with IISExpress

安稳与你 提交于 2019-11-27 02:41:37
问题 I have a asp.net mvc application and am trying to get custom errors working with IISExpress. Works in Casini fine: <customErrors mode="On" defaultRedirect="/error"> <error statusCode="404" redirect="/error/notfound"/> </customErrors> When I've deployed mvc sites to IIS (7.5) before, all I had to do get my custom errors working was to set: <httpErrors errorMode="Detailed"/> I've tried explicitly specifying the status codes within the httpErrors section but nothing works. Here's an example: