iis-6

Limiting number of calls to an ASMX Web Service

旧街凉风 提交于 2019-12-06 14:44:02
问题 We have an asmx web service hosted in IIS6. Is there a good way to limit the number of calls to the service in a period of time for a single IP? We don't want to put a hard limit (X number of times an hour), but we want to be able to prevent a spike from a single user. We're currently investigating to see if our firewall is capable of limiting connection attempts. In the case that our firewall is not able to limit connections, is there a good way to handle this programmatically? Rather than

ASP.net MVC performance with extensionless url on IIS 6

一个人想着一个人 提交于 2019-12-06 12:07:23
问题 We are getting ready to do a an initial deployment of an ASP.net MVC app on IIS 6 running on Windows Server 2003. We've been reading about performance issues involving the use of extenionless urls in MVC applications specifically in the case of removing the '.aspx' extension from the controller portion of the url. Has anyone who has deployed an MVC app in the past experienced any performance degradation in this area? Was it noticeable, and was it worth it for having the cleaner URLs? Our

Setting HttpOnly=true on ASP 1.1 Session ID cookie

我们两清 提交于 2019-12-06 11:39:18
I have a client who runs his Classic ASP site under IIS 6.0. The web site is targeted for ASP.NET 2.0 in the ASP.NET configuration tab. A recent PCI Scan of his site is failing him with an HttpOnly vulnerability on his ASPSESSIONID cookie. I have installed an ISAPI .dll that successfully sets HttpOnly on all manually created cookies, but ASPSESSIONID cookie is not effected by this for some reason. I have set web.config with the following configuration: <system.web> <httpCookies httpOnlyCookies="true" /> </system.web> This configuration seems to have no effect whatsoever, on anything. I suspect

IIS AppPool error (1013 - W3SVC)

ⅰ亾dé卋堺 提交于 2019-12-06 11:27:04
We're getting a number of warnings in the Application Event Viewer on our IIS installation. We have an AppPool set up which contains two websites (both ColdFusion sites, not .NET). The Event Viewer shows the following warning: A process serving application pool 'HighPriorityApps' exceeded time limits during shut down. The process id was '175540'. Any ideas what to do to sort this one out or where to begin looking for solutions? We fixed a similar problem with config alone. A great book to help here is Microsoft IIS 6.0 Administrator's Pocket Cunsultant by William R Stanek. I'll try to help

Using DirectoryEntry to Enumerate IIS Configuration Data, Getting COMException

烈酒焚心 提交于 2019-12-06 10:09:39
I'm attempting to manage a set of remote IIS 6 server programmatically, but am running into a wall. My client is Windows 7, and I have Domain Admin rights. The relevant code is as follows: public void Run() { DirectoryEntry W3SVC = new DirectoryEntry("IIS://server/w3svc"); foreach (DirectoryEntry site in W3SVC.Children) { Console.WriteLine(site.Name); } } When I execute, I receive the following exception: Unhandled Exception: System.Runtime.InteropServices.COMException: Unknown error (0x80005000) at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices

How do I resolve absolute URLs for different sites in the same parent IIS virtual directory in .NET?

僤鯓⒐⒋嵵緔 提交于 2019-12-06 09:43:25
问题 My goal is to share images, css, js, etc. across multiple websites that are all hosted under the same parent virtual directory in IIS. Of course, I could hard code the images paths, but I'd hoped .NET had a method that could intelligently resolve URLs using the IIS configuration. Here is my file/virtual directory structure: Parent Site (Virtual Directory) default.aspx mypage.aspx otherpage.aspx images - logo.jpg css - site.css Subsite1 (Virtual Directory) - default.aspx - products.aspx

IIS6 List the version of .net an application pool is running

天涯浪子 提交于 2019-12-06 09:04:02
I want to enumerate the application pools running on a server. In IIS7 i am able to pull up the .net version via WMI WIn32_Process but it is not there in IIS6. How can I get the version of .net that a worker process/application pool is running in? For instance: DefaultAppPool v2.0.50727 In IIS6 .Net is set in the Virtual Directories under the ASP.NET tab and the Application Pool is setup under the Virtual Directory tab. FYI: I'm running Windows 2003 SP2 IIS6. The problem with IIS6 Application Pools is that unlike IIS7 they have no knowledge of what version of the .NET Framework is being loaded

Rotativa and wkhtmltopdf no CSS or images on iis6 over HTTPS, but fine on HTTP

南楼画角 提交于 2019-12-06 08:50:23
Using Rotativa, a .net wrapper for wkhtmltopdf. I can not get CSS or Images to render in a PDF if I connect Via HTTPS. I have previously set this up on 2008r2 iis7 server with HTTPS(SSL) I did have simular trouble with css & webfonts, but I just changed all the paths to absolute paths and it worked. This job is deployed on ii6 windows 2003 server. Yesterday it was just producing "An unhandled exception has occurred." when ussing HTTPS so I upgraded wkhtmltopdf to V 0.12.0, now the PDF will generate using ViewAsPdf, with no CSS or images. And using ActionAsPdf it renders a PDF of "You are not

determining which server (in a web farm) the asp.net ajax request came from?

☆樱花仙子☆ 提交于 2019-12-06 07:41:39
I was thinking how we can find out which server the page was served from: I'd do so by doing something like put a hidden variable on the page which has the IP or server name from the server it got processed. But what do I do for asp.net ajax requests: those that happen as a partial postback? I'd have to put the hidden variable in the update panel, but what if there are many update panels in the page? I checked out another SO post , but the solution was for iis 7. What is the equivalent for iis6? And how can we read the header? Where to look? You can set IIS6 custom headers via IIS MMC by

MVC3 publishing and IIS 6

房东的猫 提交于 2019-12-06 07:33:17
I've been fighting with this for several hours with no headway. I am trying to publish a web app (MVC3, .net4, made in Visual Studio 2010) to a server. All googles eventually lead to this article , which has not been helpful. According to it, MVC3 running on IIS 6 (MVC and .net4 are installed, it is a 2k3 server) should just work. Different set ups give me different issues, but nothing that works. With default settings, I get "Directory Listing Denied This Virtual Directory does not allow contents to be listed." If I turn on directory browsing I can see the directoy of the site, but this isn't