Tag Info

Hot answers tagged

28

You can also use the Worker Processes UI inside IIS Manager and inspect the requests that are currently executing and see where they are getting stuck if any. Open IIS Manager->Click the Server in the Tree->Double Click Worker Processes Icon->Double click the Worker Process that is consuming CPU to see the currently executing requests in real time so that ...


14

Ok - found the answer. As I expected, IIS is hijacking my non 200 responses. Not sure (ie. I'm not sure if this is the default behaviour OR it's because of a setting one of the team members updated in the machine config, etc...). Anyways, the key here is tell IIS to not handle any non-200 status result resources. How? Config entry in the web.config. ...


13

Take a look at IIS7's Failed Request Tracing feature: Troubleshooting Failed Requests Using Tracing in IIS 7 Troubleshoot with Failed Request Tracing The other thing I would do is tweak your <httpErrors> setting because IIS may be swallowing an error message from further up the pipeline: <configuration> <system.webServer> ...


12

Did you turn on the static content feature? http://weblogs.asp.net/anasghanem/archive/2008/05/23/don-t-forget-to-check-quot-static-content-service-quot-in-iis7-installation.aspx


11

ASP.NET uses IIS logging, so it's really an IIS question. Though there is some detailed info in Event Viewer for some types of events. In IIS6 (and prior), this is located in %SystemRoot%\system32\logfiles, and in IIS7, this is located in %SystemDrive%\inetpub\logs\LogFiles. In both cases, it will be placed in a subfolder called W3SVC{Id}. The Id is the ...


10

I'm very sorry that you do not like the answer "you cannot do this" but you cannot do what you want to do. The technology just doesn't allow this to work the way you want. Here's why. The HTTP protocol allows more than one server to share an IP address. It does this via the HTTP/1.1 Host header: Host: servername.example.com SSL handshake happens ...


10

IIS Express supports Failed Request Tracing and it's turned on by default. The logs are written to %IIS_USER_HOME%\TraceLogFiles which is usually at this location: %USERPROFILE%\Documents\IISExpress\TraceLogFiles In that folder you'll see a list of subfolders for each of the projects you've run up in IIS Express. In each site's folder there should be a ...


10

There are several things you can do: 1. Application Initialization You can use Application Initialization Module which comes in-box with IIS 8.0 you can have something like this in your web.config <applicationInitialization doAppInitAfterRestart="true" > <add initializationPage="/" /> </applicationInitialization> This will ...


8

It sounds like a permissions error. Did you remember to add the IIS User IIS_IUSRS to the list of users that can access the files?


7

We had the same error on a brand new server. The reason was not the default IIS security policy, stored in applicationHost.config, as suggested by the other answer (although we checked that). The reason was that we installed IIS without support for ASP.NET (an ASP.NET 4.5 role)! When we installed the missing support for ASP.NET, our application just ...


7

I would add my comment to an earlier answer, but I don't have enough reputation ... so here goes ... Buy more RAM. Lots more RAM. If you have 4GB, go to 16GB or 32GB. Even 32GB or RAM will likely be cheaper than GOOD SSD. Most SSD drives are no better than hard-drives, with the expensive Intel drives being the notable exception (there are other SSDs ...


6

Have you actually traced where your problem lies? Is it in the database query? Is it processing the query on the server side? Content rendering? Transmission of the rendered content? There's many area's that can bottleneck performance on a multi-tier web application, and to do any meaningful performance improvement, you need to analyze what's slowing things ...


6

You need to configure HTTP Redirection on the web site. Make sure that the HTTP Redirection role service of the Web Server role is installed. Once that's done you can select your site in IIS Manager and double click the HTTP Redirect icon in the IIS area of the features view to configure redirection. (Sounds complicated, huh) - ;)


6

Apparently I need to install MVC dependencies on the server. I found a recipe on winhost forums, which says to add the required references to your project and configure them for web deployment. I followed these steps, and it solved my problem: Add the following references to the project: Microsoft.Web.Infrastructure System.Web.Razor ...


5

It is really, really dangerous to run IIS as a user that has access to all folders in the file system. You are asking to be hacked badly (do you really want IIS to access C:\Windows?). It is better to explicitly grant permission to the user IIS runs under to access the folders you really need IIS to access. If you really must change the identity IIS runs ...


5

In Server Manager, select Web Server (IIS) and press 'Add Role Services'. From here, select 'ASP.NET' and press OK to add the other required role services.


4

In ASP.NET MVC you don't browse to your view files directly. You have to use the routes that are setup in your site's Application_Start() event. For example, a new ASP.NET MVC project adds this route by default in global.asax: routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action ...


4

Ok, to start - the server is REALLY crappy. But it SHOULD be enough. For virtualization, check your drivers. I know of no virutalization platform that hides the CPU (and I coubt someone puts up a hyper-v or esx on a celeron) but the drivers for disc etc. are an indication. CPU should not be that high. Sadly, with this RAM, you are pretty much toast - if ...


4

This question has already been asked, see http://stackoverflow.com/questions/603354/what-are-the-best-perfmon-counters-for-an-asp-net-application. The answer points to this TechNet article for IIS6.0. You can also see the description of IIS performance counters (as of .Net 4.0) here: Performance Counters for ASP.NET You will also find lots of great ...


4

IIS already uses all cores by default. What you are likely seeing is a single request using a single thread and thus a single core. This is by design. If you make a 2nd request to the server, you should see that it hits a new core. With multiple users you should see even distribution across your cores. If you need a single request to a single page use ...


4

Since IIS was installed after .NET 4, you likely need to run the aspnet_regiis.exe tool to register all the .NET 4 stuff with IIS.


4

I'm guessing that you're using WS-Federation? Or at least using the WSFederationAuthenticationModule and/or SessionAuthenticationModule? Both of those modules perform a redirect to match the casing of your application as it's in IIS any time they're unable to authenticate you or verify that you're authorized to get the requested resource. I don't see any way ...


4

File permissions for anonymous access are set via a special user account called IUSR_<MachineName>. Check the NTFS permissions (Security tab) of both your document root folder and the index.htm file itself. Verify that this account has "Read" access to all of the files and folders that anonymous users need to be able to browse. If this account is not ...


4

Typically, the configuration is like this: Internet facing servers connected to Firewall's DMZ Port Trusted servers (SQL, AD, etc) connected to Firewall's Trusted/LAN Port Internet connected to Firewall's WAN port Then, the Firewall is configured to route between those subnets, and allow access according to the ACLs you define.


4

This question is likely to get ripped to shreds...but, do you mean a standard PC with Windows 7 from your local Supermarket, or a actual proper server with Windows 7 installed on it? If you are just buying a PC to run this, forget it. A PC, even a powerful one, is nowhere capable of running with the fault-tolerance that a server would be capable of. A PC ...


4

Some general pointers: http://blogs.iis.net/mailant/archive/2009/10/22/general-availability-of-windows-7-amp-windows-server-2008-r2-with-iis-7-5.aspx http://4sysops.com/archives/windows-server-2008-r2-new-features-the-complete-list-part-3-iis-75-and-performance/ http://www.iis.net/ConfigReference/system.webServer/httpCompression Bug fixes FTP Publishing ...


4

I'm guessing you have URL Rewrite setup in the root of your website for index.php. So, if you're running your MVC application in a subdirectory, you can unregister that index.php URL rewrite for that subdirectory. To do this, just open up IIS manager, click on the subdirectory under your website, and use the "Filter:" box to type "rewrite" and it'll let ...


4

Dave, A few thoughts to start you: I am assuming it's the w3wp.exe that is eating your resources. If not, it might be worth running some PAL reports to get some better insight into the overall health of the server: http://pal.codeplex.com/ Sometimes I'll even run PAL even if it is an IIS problem... PAL can spot all sorts of problems that you never would ...


3

Use DebugDiag 1.2 to perform the analysis of the dump: https://www.microsoft.com/download/en/details.aspx?id=26798 It's useful to be aware that any process that is capable of using more than one thread can push utilization to 100% on all processors of a server. This includes native code and even core os components. When you say "latest patched", to ...


3

Try "not" load balancing the servers to see if one of the servers is responsible.



Only top voted, non community-wiki answers of a minimum length are eligible