iis

Detecting/Diagnosing Thread Starvation

点点圈 提交于 2021-02-18 20:13:03
问题 I am doing some performance/scalability testing of an IIS application that occasionally seems to slow down to a crawl in production. I'm able to reproduce the slowness consistently using NUnit. CPU and Memory do not spike during the testing, or when the slowness occurs in production. My strong suspicion is that the application is suffering from thread starvation, since it does not appear to be CPU, Memory, I/O, or database access that is causing the bottleneck. I do see signs of what appear

Why is my ajax post being truncated?

匆匆过客 提交于 2021-02-18 20:12:43
问题 I have just updated my mvc service to include greater error and logging. I have now got this exact error several times. But cannot replicate. Unterminated string. Expected delimiter: ". Path 'Breadcrumbs[18].Params', line 1, position 59740. at Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer(Char quote) at The Path is different each time, depending on what the user is sending to the server. My ajax requests generally look like this: $.ajax(myURL("SendBreadcrumbs"), { type: "POST", cache:

IIS site keeps prompting for credentials for Windows Authentication method

痞子三分冷 提交于 2021-02-18 17:52:45
问题 I need some help to understand what is the exactly reason I can'g get Windows Authentication working on IIS site for a specific user's group. What is happening is that even my user being part of the group which I gave access to the site, IE keeps prompting for my credentials and even when I type the password the HTTP response is 401 (Unauthorized). I'm also not allowed to change IE's settings to add any site to the trusted list (it's blocked by the company). In the other hand, besides the

IIS site keeps prompting for credentials for Windows Authentication method

爷,独闯天下 提交于 2021-02-18 17:51:14
问题 I need some help to understand what is the exactly reason I can'g get Windows Authentication working on IIS site for a specific user's group. What is happening is that even my user being part of the group which I gave access to the site, IE keeps prompting for my credentials and even when I type the password the HTTP response is 401 (Unauthorized). I'm also not allowed to change IE's settings to add any site to the trusted list (it's blocked by the company). In the other hand, besides the

Preventing direct access but allowing file downloads from within a page

做~自己de王妃 提交于 2021-02-18 17:31:46
问题 I'm developing a site that has a few files on it that I only want to be downloadable if the users have sufficient access on my terms. Basically, I have a page that has a download link on, but the download link will only be displayed and activated if the user has the correct roles and are associated with the correct properties in my database. The problem I am facing is that I don't want users to be able to access the file directly, for example if they go to www.mysite.com/downloads/myfile.pdf

Multi-host deployment of ASP.NET Core applications

北城以北 提交于 2021-02-18 12:20:12
问题 I am quite confused as I haven't seen any blogs or instructions on how to host ASP.NET Core/.NET Core applications with HA and multi-host deployments. All examples are either: 1) One NGINX reverse-proxy, one Kestrel 2) One IIS reverse-proxy, one Kestrel And both components on same host. In real-life production environments, you have LB maybe service discovery, multiple frontends, multiple backends, etc. But for this case there are no instructions whatsoever. So my questions would be for multi

How to allow anonymous access to web-site on IIS 7.5?

房东的猫 提交于 2021-02-18 11:39:08
问题 tl;dr : Why does <allow users="?"> work on IIS Express, but not on IIS? Background I have a new asp.net web-forms project. When running locally on Windows 7 IIS Express, i can block "all users" from accessing the site by adding a deny * rule to web.config: web.config <configuration> <system.web> <authorization> <deny users="*" /> </authorization> </system.web> </configuration> this causes me to be denied access: And so that makes sense. I can deny access to anonymous users I the web.config, i

How do I stop other domains from pointing to my domain?

混江龙づ霸主 提交于 2021-02-17 21:55:08
问题 I recently found out that there are other domain names pointing to my website (that don't belong to me) and I was wondering how people can stop/prevent this from happening. I'm hosting this on peer1 using IIS and I'm using ASP.NET C#. Can I use an HttpModule or some other code to reject domain names that aren't mine? Is there a better way? 回答1: You should activate name-based virtual hosting and only show your real website for the desired domain names. For all other names, you can display a

Can't create Excel anymore after use of IIS

倖福魔咒の 提交于 2021-02-17 06:53:06
问题 I've created a web application that generates and allows the user to download an Excel file, It worked fine on the Visual Studio LocalHost. After I've launched it to the IIS server everything works just fine except the Generation of the excel file. The code died the first time that he is trying to select range in the work sheet - The error is the NULL error("Object reference...") I guess it kind of permission but I couldn't find one. Any Idea? Thanks. 回答1: As noted in comments use of Office

How does IIS URL Rewrite handle # anchor tags

狂风中的少年 提交于 2021-02-16 16:24:07
问题 I'm struggling to find any information on how best to handle URLs with anchor tags, like the #foo in www.example.com/index.html#foo Our current situation is trying to use a Rewrite map for a URL with an anchor tag, but it is being trumped by another Rewrite mapping. e.g. <add key="index.html#foo" value="bar1.html" /> <add key="index.html" value="bar2.html" /> <!-- A request to index.html#foo is being redirected to bar2.html, not bar1.html as expected --> Does URL Rewrite include this in the