iis-8

How to dynamically add rules to IIS rewrite map?

别等时光非礼了梦想. 提交于 2019-12-24 15:12:05
问题 The multitenant app I am working on require many rewrite rules to be inserted/deleted dynamically. With IIS, we are thinking of using rewrite map. How do one insert rules to the rewrite map dynamically? manipulate the webconfig.xml directly? Would IIS pick up the changes immediately? Is there a hard limit on how many rules can be added? Or... is there a better way? Thanks 回答1: Here are the generic rules I add to my local web.config file. <rule name="301 Redirects for ColdFusion"> <match url="

PowerShell :: How to filter worker processes list by User Name

我的梦境 提交于 2019-12-24 08:20:32
问题 Basically as per screen-shot there are multiple worker processes are running on machine in IIS but we need w3wp which is running under Sitecore User Username. We tried below PS script but getting blank value in User Name column $processlist = get-process | where {$_.cpu -gt 5 -and $_.Name -eq 'w3wp'} |select Name, @{l="User name";e={$_.getowner().user}} | ft -AutoSize foreach($proc in $processlist){ if($proc -eq "Sitecore User" ){ C:\Users\Administrator\Documents\someexe.exe $proc.Id "C:

Why is my WCF service only processing 3 parallel requests at a time?

倖福魔咒の 提交于 2019-12-23 19:00:01
问题 I have a WPF application doing something very simple. I just have it firing off 4 requests to a basic WCF Service . private async Task MultipleWcfCalls() { ServiceReference.Service1Client _proxy = new ServiceReference.Service1Client(); _proxy.Open(); var t1 = _proxy.GetDataAsync(0); var t2 = _proxy.GetDataAsync(0); var t3 = _proxy.GetDataAsync(0); var t4 = _proxy.GetDataAsync(0); await Task.WhenAll(t1, t2, t3, t4); } My service is doing the classic Task.Delay(3000) . public async Task<string>

AuthorizeAttribute not working if URL has query string?

廉价感情. 提交于 2019-12-23 12:11:32
问题 In an ASP.NET MVC3 web application, an entire controller has an [Authorize] attribute attached to it. So if the user is not logged in or the session expired, they get redirected to the login page. This is working...sometimes. The URLs in the "works" list below correctly redirect to the login page; the URLs in the "does not work" list instead show the IIS 401 error screen - they do not redirect to the login page. Works http://x.y.z/MyController/MyAction http://x.y.z/MyController/MyAction/123

I can't access my website from outside Windows Server 2012 using IIS and IISNode

怎甘沉沦 提交于 2019-12-23 12:01:30
问题 I bought a new dedicated server. I have a MEAN Stack application (Node.js, Angular, MongoDB, Express) and wanted to take advantage of using IIS to publish my webapp. I followed this guide to install iisnode and make a litle node.js server working. I did it and succesfully tried http://iisnode.local in my browser inside the server. Ont he other hand, if I try http://(theIPoftheserver)/iisnode.local am I am getting the following error: I need to do something for the server to be accesible from

Increase request queue limit of asp.net

对着背影说爱祢 提交于 2019-12-23 05:33:11
问题 Not sure if my title is technically correct but I have a problem. I have a asp.net 4.5 site on IIS 8 and use asp.net to control/limit file downloads. Instead of letting IIS to server large (10-20MB) static files such as zip I use asp.net. It works fine until around 500 to 700 users start downloading. After that asp.net starts to queue all the request to the domain until the active request count goes below some sort of pre determined number. Static content such as html isn't affected. If I

Got HTTP Error 404.17 while setting up asp.net project onto IIS 8.0

自作多情 提交于 2019-12-22 05:07:22
问题 I am trying to set up an existing asp.net application onto IIS 8.0 on my windows 8 machine and it giving me the following error message. HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler. I googled for a while and trying to solve this problem with several solutions such as registering asp.net manually. However,it is still not working. Most of the solutions are for IIS 7.5 and the problem is the same or not. Any idea!

Got HTTP Error 404.17 while setting up asp.net project onto IIS 8.0

五迷三道 提交于 2019-12-22 05:07:04
问题 I am trying to set up an existing asp.net application onto IIS 8.0 on my windows 8 machine and it giving me the following error message. HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler. I googled for a while and trying to solve this problem with several solutions such as registering asp.net manually. However,it is still not working. Most of the solutions are for IIS 7.5 and the problem is the same or not. Any idea!

Classic ASP #include virtual not working

大城市里の小女人 提交于 2019-12-21 20:58:32
问题 We're in the middle of a migration from IIS6/2003 to IIS8/2012. We have to maintain some Classic ASP and ASP and .NET apps. The full applications seem to work fine (as in, the ones I went in to IIS, right clicked on the folders and did "Convert to Application"), but our site relies heavily on menus that are included html files. The weird thing is, I'm 99% sure this was working before, but when we went to flip the switch for the new server, the menus didn't appear. The file structure looks

Application Tier Configuration Failed For TFS 2010 on Windows Server 2012 R2

旧城冷巷雨未停 提交于 2019-12-21 20:30:03
问题 I have installed TFS for Visual studio 2010 on Windows Server 2012R2. ISS is already configured with IIS 6 compatibility, Static content compression and Windows authentication. But the application tier configuration failed with the following errors Error [ Application Tier ] TF255120: Compatibility mode for Internet Information Services (IIS) 6.0 is not enabled. Team Foundation Server requires this on this operating system. Error [ Application Tier ] TF255456: You must configure Internet