iis-8.5

Web API 403 Forbidden Outside of Network Using Bearer Token

狂风中的少年 提交于 2019-12-13 03:49:57
问题 I have a Web API using oAuth2 that has a mixture of APIs that allow Anonymous and Secured calls. I've deployed the code to a separate server on my network and verified using RESTer (similar to POSTMAN) that the calls work. If I make the same calls from outside the network, only the calls that are set to use the ExternalBearer token fail. Anonymous calls succeed. I checked out this solution which did not work for me. HTTP 403 Forbidden: Access is denied ASP.NET Web API I've also ensured on the

IIS 8.5 How to set up reverse proxy with URL Rewrite

孤街浪徒 提交于 2019-12-13 03:43:06
问题 I am trying to get one (public) server A to act as a reverse proxy for another (private) server B. Server B is visible to server A. i.e. if I'm on server A and I type in a browser: https://serverb.us/folder/application I see the application. I want it so that if the user types: https://servera.us/folder/application he sees the web application that is on server B. Is that possible? I have tried adding a rewrite rule in IIS Manager by doing URL Rewrite > Add Rule(s) > Reverse Proxy > I changed

ImageResizer restarts application pool

瘦欲@ 提交于 2019-12-13 00:54:12
问题 We're having a problem where the application pools restarts (and loses all sessions) when deleting a folder in a virtual directory. This is not ImageResizers fault, but ASP.NET. We cannot replicate the issue on a static web site. I'm wondering if someone has resolved this issue? We're thinking about creating a separate web page just for ImageResizer and image content. Maybe there is a simpler way? This solution did not work for us: http://www.aaronblake.co.uk/blog/2009/09/28/bug-fix

Setting Server Name Indication (SNI) takes off certificate binding

三世轮回 提交于 2019-12-12 21:51:45
问题 I'm using Microsoft.Web.Administration (inside a Wix CustomAction) to configure Server Name Indication and bind to an existing server certificate on a IIS 8.5 site. Turns out, setting SNI takes off the certificate binding. The following code will make things clearer: using Microsoft.Web.Administration; var binding = site.Bindings.FirstOrDefault(x => x.IsIPPortHostBinding && x.Host == sitename); binding.CertificateHash = certificate.GetCertHash(); binding.CertificateStoreName = store.Name; //

IIS cached files never replaced

ぃ、小莉子 提交于 2019-12-12 04:55:13
问题 Perhaps I'm missing something by not wording my Google searches correctly, but I've run into an issue with IIS 8.5 and caching. I have a server set up that by all standards should be serving only static files. Obviously, when a file is changed, the new file should be served up. The issue is that even after a server restart, setting files to immediately expire, didsabling caching, disabling compression, and turning off any other caching feature, the old file with its old timestamp is still

Signalr example app from official documentation does not work on IIS

痞子三分冷 提交于 2019-12-12 03:47:03
问题 I've spent too much time trying to figure this out, and I'm starting to exhaust the threads here on SO that are dealing with this very issue. Feel free to link to other threads about this issue, but I've probably already consulted those with no success. I'm following Microsoft's Signalr example app from this url: https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr I'm running IIS 8.5 on Windows Server 2012 R2, SignalR 2.2.1, and .Net

IIS rewrite with unusual ~ character in the URL

天涯浪子 提交于 2019-12-11 23:42:13
问题 I have a URL in the format: https://www.example.com/aaa/bbb/product/~productId=abc123 Which I would like to redirect to: https://www.example.com/product/abc123 I have tried a couple of variations on this and just cannot get this to pick it up (despite testing this in the IIS URL rewrite regex tester). <rule name="Custom rule 12" stopProcessing="true"> <match url="aaa/bbb/product/(.*)" /> <conditions> <add input="{HTTP_URL}" pattern="~productId=(.*)$" /> </conditions> <action type="Redirect"

Upgrading from IIS 6 to 8.5: increased concurrent requests

怎甘沉沦 提交于 2019-12-11 19:41:13
问题 We upgraded our web server from Windows Server 2003 to Windows Server 2012 R2. The web application in question runs against ASP.NET 4.0. The web application in turn communicates with a third-party Web API. Shortly after the upgrade, the Web API latency increased, which in turn lead to notable timeouts. I suspected that on IIS 8.5, the number of allowed concurrent requests increased, causing an increase in throughput that the Web API was unable to handle. However: IIS 6 isn't limiting the

Configure windows Authentication in IIS 8.5 on Windows Server 2012

北城以北 提交于 2019-12-11 11:05:42
问题 I searched enough but couldn't find a solution. I have a ASP.NET Intranet app at Windows Server 2008 IIS 7.5 with windows authentication - this all work great. I have been trying to migrate it to Windows Server 2012. I have already installed Windows Authentication role for the server and already enabled the windows authentication for the web site. The application seems to be working fine for my account but if anybody else try to connect they get windows login popup. 回答1: I was having similar

IIS Session Reset

陌路散爱 提交于 2019-12-11 10:58:31
问题 I'm working on a web project that contains sessions. I have a few pages on the web app: Logon.aspx - If the verification of user is OK, a new session is created: Pseudo: If User.connected = True Then Session("isLogin") = True Response.Redirect("Content.aspx") End If In the “Content.aspx” in the Page_Init event: If Session("isLogin") = False Then Response.Redirect("Logon.aspx") End If Web.config settings: <forms loginUrl="~/Logon.aspx" timeout="50" /> <sessionState mode="InProc" timeout="60">