iis-8

URL Rewrite troubleshoot

我与影子孤独终老i 提交于 2019-12-11 13:43:13
问题 We have our URL rewrite as followed. I tested the pattern in IIS 8.5 URL Rewrite and the patterns matched as what we wanted. However, it's 404 every single time. Will someone take a look and see what is wrong with my URL rewrite? Thank you. URL: devbox.mysite.com/article/how-to-use-onedrive Pattern: (.*)/article/(.*)$ Action Rewrite URL: {R:1}/article/?artID={R:2} Currently the page shows 404. Below is the XML code in web.config file. <rule name="Article-rewrite" enabled="true"> <match url="(

HTTP Error 500.0 - Internal Server Error using visual studio 2013

别等时光非礼了梦想. 提交于 2019-12-11 11:57:31
问题 I am using visual studio 2013. I am trying to run a web app on my browser and I get the following error. I have searched this forum but is not working. I was running the same web app yesterday and it worked fine.Today it does not. Thank you for your help 回答1: I too faced this problem when my Windows was upgraded. Doing this fixed the issue on my computer. Also note that you have to select the Server node on the left side panel. (NOT a web site). Follow the instructions in the screenshots and

C# Web API cannot find Redirected Printer

℡╲_俬逩灬. 提交于 2019-12-11 10:13:57
问题 I am developing a Web API that is deployed in IIS 8 on Windows Server 2012 R2. It requires that documents be printed from the Server to a network printer. I am developing on a RDP session which has a redirected printer, this printer is also set as my default printer. I have created a dummy proof of concept as a Console Application to userstand what is necessary to make this work. The dummy console uses the following code to find printers var ps = new PrinterSettings(); foreach(var p in

ASP.Net application pool crashes when loading Matlab dll in IIS8

…衆ロ難τιáo~ 提交于 2019-12-11 09:27:31
问题 I've seen similar posts but none of the solutions have worked, so I am hoping someone can help me out as I am tearing my hair out. I have a ASP.Net application that references a dll that is generated by the Matlab .NET builder (deploy tool). When I run the app in my development environment, or on a Windows 2008 server with IIS7, it works fine, but when I deploy to a Windows 2012 server running IIS8, the app crashes after the class within the dll is initialized. I can see in the task manager

Configure URL Rewrite using server variable to support multiple origins

亡梦爱人 提交于 2019-12-11 08:30:59
问题 I was dealing with CORS issue a couple days ago where I need to support multiple origins. I did some research and found a couple posts pointing me to this great tool (URL Rewrite). I got the solution I wanted following Paco Zarate tip here: Access-control-allow-origin with multiple domains using URL Rewrite. I also found another post here: http://www.carlosag.net/articles/enable-cors-access-control-allow-origin.cshtml showing me how to achieve the same solution with a different method of

File automatically getting locked by IIS 8 (C#, ASP.net mvc razor)

孤街醉人 提交于 2019-12-11 08:14:49
问题 Facing an issue with IIS 8, windows server 2012. Web app written in asp.net c# mvc razor 5 I am facing an File locking(image file) issue by IIS. I have a user profile page where I display the User profile pic. I noticed that as soon as I simply display the profile page in browser, the profile image on disk is locked by the IIS. Profile image is display with a img tag as shown below (Model.ImagePath is a string path) string ImageUrl = ""; if (Model.ImagePath == null || Model.ImagePath == "

How do I increase maximum download size in an MVC application?

≡放荡痞女 提交于 2019-12-11 07:33:08
问题 I am frankly stumped. This is beyond my experience. I have a C# MVC program that generates a zip file in a MemoryStream for downloading. The action method is called by a button click to JavaScript. The only problem is that in some cases the potential file size can easily exceed one Gig and from my reading, that is a common problem. I've tried upping the Maximum Allowed Content Length to 3000000000 in Request Filtering on IIS (IIS8). I've tried adding requestLimits maxAllowedContentLength to

WebSockets don't work with SignalR Core when deployed to Prod

空扰寡人 提交于 2019-12-11 06:41:52
问题 ASP.NET Core 2.1 running behind IIS 8.5 SignalR doesn't seem to negotiate a Sub-Protocol when connecting and fails to complete the connection. Messages sent from the client to the server are never received. I can't configure the site to serve from Kestrel directly as this is a shared server. Changing the transport to long-polling works. I have tried disabling HTTPS/HSTS redirection. Attached are the logs from the client and the server: Client logs : Information: Normalizing 'hubs/screen' to

Web.config not being parametrized on deploy

你离开我真会死。 提交于 2019-12-11 06:22:32
问题 I have an ASP MVC app that I'm deploying to intranet servers via TeamCity, and I need some appSettings to be parametrized on deploy, so that client secrets stay hidden from developers etc. I have the Parameters.xml file in the root of my project, the SetParameters.xml that is built with the package correctly contains all these parameters and their default values. However changing these values (even passing them to MSDeploy with -setParam) doesn't result in any changes in deployed web.config.

SetAuthCookie does not set cookie on our test server

China☆狼群 提交于 2019-12-11 02:33:36
问题 I am trying to setup my website on a new environment, and I have a problem with the membership provider. I can call Membership.ValidateUser , which returns true and false, as it should. That is perfect. However, on my new environment, the cookie is never set. I can see on localhost and our production server, that it sets a cookie called CommunityServer , but not on our new environment. Web.config code : <authentication mode="Forms"> <!-- development --> <forms name=".CommunityServer"