iis-7.5

.Net Core Slow after idle

百般思念 提交于 2020-01-03 18:01:11
问题 I have a new .netcore web app deployed to a windows server 2008R2 IIS instance, and after the app has been idle for a while, it's slow upon first load, and then subsequent requests are super fast. In previous versions of .net I changed the Idle Time-out property of the app pool in IIS to 0 to fix this issue. Is there a similar setting somewhere with .netcore, perhaps something I've missed I could add to the Startup.cs file? 回答1: Baring there being a legitimate fix as I am unfamiliar with

ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500

本秂侑毒 提交于 2020-01-03 13:40:33
问题 I'm following[1] for setting up my first .NET Core WebAPI (moving from "old" WebAPI). When I do HttpPost action, as in tutorial: [HttpPost] public IActionResult Create([FromBody] TodoItem item) { if (item == null) { return BadRequest(); } TodoItems.Add(item); return CreatedAtAction("GetTodo", new { id = item.Key }, item); } I get a HttpError 500 after exiting my Controller. CreatedAtAction returns proper object with Status Code 201 as I would expect, and after my method exits the Server

ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500

爷,独闯天下 提交于 2020-01-03 13:39:12
问题 I'm following[1] for setting up my first .NET Core WebAPI (moving from "old" WebAPI). When I do HttpPost action, as in tutorial: [HttpPost] public IActionResult Create([FromBody] TodoItem item) { if (item == null) { return BadRequest(); } TodoItems.Add(item); return CreatedAtAction("GetTodo", new { id = item.Key }, item); } I get a HttpError 500 after exiting my Controller. CreatedAtAction returns proper object with Status Code 201 as I would expect, and after my method exits the Server

smtp;550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

你离开我真会死。 提交于 2020-01-03 08:27:18
问题 I'm running Windows server 2008 R2 but am getting smtp mail rejected from a few domains. To test it I'm dropping a text file into C:\inetpub\mailroot\Pickup directory, with something like this: From: my@emailaddress.com To: someone@somewhere.com Subject: testing This is a test It will send to some domains, but some are returning: Reporting-MTA: dns;DEDICAT-93I3U5A Received-From-MTA: dns;DEDICAT-93I3U5A Arrival-Date: Wed, 8 Aug 2012 12:50:58 +0100 Final-Recipient: rfc822;someone@somewhere.com

Web deploy results in Request too long only in VS2012

半城伤御伤魂 提交于 2020-01-03 03:16:09
问题 Spent quite a bit of time configuring web deploy on IIS 7.5. I've made sure that Web Deploy 3.5 was installed with all features, and that both the Web Management Service and Web Deployment Agent is running. In Visual Studio I'm able to use the publishing wizard and validate my connection to the server. Additionally I can click on 'preview' on the last step to see a list of files. If I choose only one to publish it kicks off the process like normal and then hangs. Web deployment task failed.

Settings from system.webserver sometimes removed from web.config file

橙三吉。 提交于 2020-01-03 02:43:26
问题 We've come across a rather annoying bug in IIS7.5 where it occasionally removes the contents of the tag in the web.config. It doesn't just remove the contents at runtime, it actually physically updates the file. On our local machines it happens when we rebuild everything (which includes replacing application.config from source control) and on our server machines it happens on app pool restart. Both cases are intermittent. It seems to be happening because we have some config at the root of the

Hosting WCF service on IIS7.5

泄露秘密 提交于 2020-01-02 10:23:12
问题 i am new to wcf. i have created and hosted simple wcf service on iis 7.5 using tutorial from http://debugmode.net/2010/09/07/walkthrough-on-creating-wcf-4-0-service-and-hosting-in-iis-7-5/ all goes fine until i tried to consume this service. when i try to add service reference in my client it gives following error Metadata contains a reference that cannot be resolved: 'http://localhost:4567/Service1.svc?wsdl'. The WSDL document contains links that could not be resolved. There was an error

Java HTTP call to Sharepoint 2010 oData fails

左心房为你撑大大i 提交于 2020-01-01 19:57:29
问题 I am calling a Sharepoint 2010 oData service from Java which is resulting in a 400 error. I can connect to a Sharepoint 2010 list in XML format via the same code (using NTLM) successfully. I see a related post HttpClient using both SSL encryption and NTLM authentication fails which talks of the same service (listdata.svc) and the 400 error. Does anyone know what exact setting was used to resolve the error in the post above? Does anyone know if they are referring to the .NET Authorization

A potentially dangerous Request.Path value was detected from the client (?) with valid URL

蓝咒 提交于 2020-01-01 11:58:11
问题 I have an ASP.NET MVC 4 Web Application running on IIS 7.5 for a few weeks now and I noticed that just recently I have been getting quite a lot of the following errors: System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (?). at System.Web.HttpRequest.ValidateInputIfRequiredByConfig() at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context) I know that this exception is caused when the URL path contains

C# code to automatically give IIS write access to a folder on Windows Server 2008? Currently throws exception

一笑奈何 提交于 2020-01-01 10:52:14
问题 I am trying to write a command line tool that will give IIS7.5 on windows server 2008 write access to a folder in the wwwroot, so that a web application has access to write to a specific folder within it's base directory. Formerly, you would do this by assigning the IIS_WPG group on the folder giving that group Modify access. In Server 2008 I'm trying to do the same thing with IIS_IUSRS, but an exception is ocurring. Here is the code: private static void ManagePermissions(string directory,