iis-7.5

IIS 7.5 web application first request after app-pool recycle very slow

浪子不回头ぞ 提交于 2019-11-29 23:12:33
We have our website running on two machines with iis 7.5 One works fine. The other one how ever takes a really long time to process the first request after an app-pool recycle. It can take upwards of 60secs which is unacceptible since its going to be used as our production server. I've checked the app-pool settings on the both servers and they are the same, and the webapp version on both servers is the same. I've run the task manager and resource monitor, add see a connection to the machine when I make the request but nothing else happens, iis doesn't even show the request in the logs untill

How to Find App Pool Recycles in Event Log

空扰寡人 提交于 2019-11-29 22:35:27
I have configured an app pool in IIS 7.5 to recycle when the memory usage goes above a certain level. I have also configured it to log this information. Where in the event log should I look for this? I have tried filtering based on the source being all the IIS items, e.g. 'IIS-W3SVC-WP', 'IIS-IISManager', and all the rest, but nothing. I can see that it is adding in the items from the 'IIS-Configuration' log too which I enabled. But still nothing. peter It seemed quite hard to find this information, but eventually, I came across this question You have to look at the 'System' event log, and

IIS 7.5 and images not being cached

六眼飞鱼酱① 提交于 2019-11-29 22:26:06
I cannot get the image files to cache. I have tried everything that I have found on this site and others and still cannot get them to cache. Web config setting that I have tried <staticContent> <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" /> </staticContent> <httpProtocol allowKeepAlive="true" /> <caching enabled="true" enableKernelCache="true"> <profiles> <add extension=".png" policy="CacheUntilChange" /> <add extension=".jpg" policy="CacheForTimePeriod" duration="12:00:00" /> </profiles> </caching> Here is the response headers for 1 of the images Key Value

Granting access to IIS 7.5 ApplicationPoolIdentity [duplicate]

会有一股神秘感。 提交于 2019-11-29 22:11:13
This question already has an answer here: IIS7 Permissions Overview - ApplicationPoolIdentity 8 answers When I try to access my ASP.NET MVC application I get the error: Access to the path 'C:\inetpub\wwwroot\website\bin\test.Platform.Config.xml' is denied I run IIS 7.5 with an application pool that has the property: Identity: ApplicationPoolIdentity I imagine it is because the 'ApplicationPoolIdentity' cannot read the file I try to access. So my question is: Since the 'ApplicationPoolIdentity' is not a system user, which user or group do I need to grant further access in order to allow the

Mercurial client error 255 and HTTP error 404 when attempting to push large files to server

一曲冷凌霜 提交于 2019-11-29 20:48:40
Problem: 19/06/10 Update: More evidence problem is server-side. Receiving this error on Windows 7 command line (see below for full traceback): URLError: <urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host> abort: error: An existing connection was forcibly closed by the remote host When attempting to push a changeset that contains 6 large files (.exe, .dmg, etc) to my remote server my client (MacHG) is reporting the error: "Error During Push. Mercurial reported error number 255: abort: HTTP Error 404: Not Found" What does the error even mean?! The only

Windows Authentication not working in IIS 7.5

时光毁灭记忆、已成空白 提交于 2019-11-29 20:11:07
I am having a problem with getting windows authentication to work on IIS 7.5. The application is an internal site built in asp.net MVC 3. The application pool is using a specific domain user and the site is using windows authentication. Every time I try to launch the site IE prompts me for a login. If I cancel enough the site comes up, messed up looking, but it has my name associated with my windows log in displayed at the top. So that tells me that the site is picking up my windows credentials correctly. I added the Network local user to have read access to the inetpub folder on the server

Cannot Read Configuration File Because it Exceeds the Maximum File Size

点点圈 提交于 2019-11-29 19:57:30
问题 Cannot read configuration file because it exceeds the maximum file size. I'm getting above error because my rewritemap.config file size is more than 250KB (Windows 2008 R2 SP1 server with IIS 7.5 回答1: If you have access to registry and if you really need file greater than 250kb, you can change value in Registry Key. For an x32 system: Create the Key: HKLM\Software\Microsoft\InetStp\Configuration\ Add the DWORD value: MaxWebConfigFileSizeInKB For an x64 system: Create the Key: HKLM\Software

Requests for static files are hitting the managed code in ASP.NET MVC3

两盒软妹~` 提交于 2019-11-29 18:25:39
问题 Creating custom IHttpModules, I have realized that the requests for static files (e.g.: .css and .js files) are hitting the managed modules. Probably pictures have the same problem. Shouldn't IIS bypass ASP.NET for files that exists in the filesystem? For example: public class MyModule:IHttpModule { public void Dispose(){ } public void Init(HttpApplication context) { context.BeginRequest += (o, e) => Debug.Print("Request: " + HttpContext.Current.Request.RawUrl); } } And I declare it this way:

Publishing ASP.NET 3.5 Site Leaves Web.config Empty Due to providerOptions Element

懵懂的女人 提交于 2019-11-29 18:06:07
I am trying to publish a ASP.Net 3.5 site to an IIS 7.5 server using WebDAV and each time I do the config file winds up empty. The culprit is the providerOption elemet seen in the code below. <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="WarnAsError" value="false"/> </compiler> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"

Forcing custom 404 pages for pages in URL Routing

烂漫一生 提交于 2019-11-29 17:16:21
问题 Coding Platform ASP.NET 4.0 WebForms on IIS7.5 If I request a page blahblah.aspx which does not exist, I get navigated to my custom error page for Page not found Exception. I have implemented URL routing and so I have omitted all my .aspx extensions for routes. Now, If I type www.mysite.com/blahblah (thats a url without extension) instead of going to my custom error page, it gets redirected to my IIS 404 error page. What should I do to make my custom error page appear on my site instead of