Tag Info

Hot answers tagged

23

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 ...


13

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. ...


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 ...


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

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 ...


7

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


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

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

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 ...


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

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

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

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

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.


3

You could try using a program called Process Explorer to monitor individual threads running under the w3wp process. It should allow you to see what thread is causing all the damage.


3

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 ...


3

I strongly encourage to classify the data your are handling (does a customer's name and their home address constitute PII?) and understand relevant state and federal regulations on sending that data to a third party. It's not just "bank details" that are protected. MA state law may require that the data is encrypted in transit for any resident. See 201 ...


3

You can create a wildcard entry for *.domain.com so that you don't need to create a DNS entry on every new account. You can add a wildcard IIS binding too so that everything for a particular IP will bind to that site. That you don't need to add tons of host headers in real-time. URL Rewrite is one option for doing what you requested. You can watch for ...


3

The problem was permissions. Even though when I create the IIS7 web site I told it to access the files as my user (it wouldn't work at all otherwise), for static file it was using the user of the application pool. Giving access to IIS APPPOOL\MyApplication to the folder where my project was fixed the issue.


3

was is possible to use PC as host for website I mean a user on web can write the url or my IP and access my web ? If people access your IP directly, yes, they will be able to see the site. However, if you run behind a router, you will need to port-forward port 80 on your router to the box that hosts the IIS server. Detailed guides for how to do this are ...


3

Extension-less URLs are possible with IIS 6, but it requires setting up a "wildcard" ISAPI mapping in the site's Application Config. This has the downside of causing all requests to get processed by the ASP.NET ISAPI filter including static files like images, javascript, etc. Here is an excellent blog post from Phil Haack about the different options for ...


3

Set the host header of your website to myserver. Then create another website in IIS and set the host header to myserver2. Follow the instructions from http://support.microsoft.com/kb/324287 for more details. You will need to add myserver2 to DNS to allow access to it, however you can add it to your hosts file for testing.


3

I believe this is what you're looking for (link). FTA: IIS uses a flexible and efficient logging architecture. When a loggable event, usually an HTTP transaction, occurs, IIS calls the selected logging module, which then writes to one of the logs stored in %SystemRoot%\system32\Logfiles\. You can alter the location of the ASP.NET Log Files ...



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