iis-7

How do I achieve a better performance of my website

爱⌒轻易说出口 提交于 2019-12-21 12:58:41
问题 Hy there! I'm running IIS7 on a Windows 2008 server. On peek times we have following behaviour: CPU load is near idle Requests get queued (monitored with Resource Monitor) Exeuction time gets over 10sec 1-4) Please see previous versions and edits 5) Doing stuff async As suggested, I've created a simple web ... one page ... with this codebehind: using System; using System.Threading; using System.Web; using System.Web.UI; namespace PerformanceTest { public partial class AsyncPage : Page {

Getting IIS application pool recycle events to be logged in the Windows Event Log

北战南征 提交于 2019-12-21 12:18:26
问题 I am trying to get IIS 7 application pool recycle, start, stop, etc. events to be logged to the Windows Event Log . I followed the steps outlined in this article but didn't have any success. I restarted the application pool and nothing was logged in the Event Log. (I checked both the "Application" and "System" logs.) But when I do an IIS reset that gets logged. 回答1: For IIS 7 , IIS Manager can be used to enable recycle events to be logged in the Windows Event Log: Open IIS Manager. Click

ASP .Net File Upload Maximum request length exceeded error

本小妞迷上赌 提交于 2019-12-21 12:04:32
问题 I have a simple ASP .Net file upload control on a page. I have following web.config settings <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="524288000" /> </requestFiltering> </security> </system.webServer> <system.web> <httpRuntime maxRequestLength="524288" executionTimeout="120000" /> </system.web> I am using IIS 7.5 on my dev box and IIS 7 on web server. If i upload file of size 7MB, it works fine. But when i upload file which is 10MB, it will throw

Cookieless sessions and IIS7 causes a redirect loop

萝らか妹 提交于 2019-12-21 11:00:54
问题 I have an ASP .NET website that uses cookieless sessions. When the initial request is made to the site using a url such as: http://localhost/site IE just displays the standard "Internet Explorer cannot display the webpage" message. Firefox is a bit more helpful and displays the following message: "Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked." I put some tracing into global.asax and I get into the application start

Logs Filling Up With: An error occurred communication with the remote host

我的未来我决定 提交于 2019-12-21 09:26:13
问题 We are trying to understand what is happening with this error, is this just users disconnecting from the site? System.Web.HttpException An error occurred while communicating with the remote host. The error code is 0x800703E3. System.Runtime.InteropServices.COMException The I/O operation has been aborted because of either a thread exit or an application request. (Exception from HRESULT: 0x800703E3) StackTrace: at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result,

IIS 7.5 URL Rewrite - Rewrite a Folder from an URL

风格不统一 提交于 2019-12-21 07:55:21
问题 I use IIS 7.5 and URL Rewrite. I have a website with the following file hierarchy: webroot webroot/LegacySite Both webroot/ and legacy/ are separate App-Folders in IIS. I need to rewrite my URLs so: If a request is http://mysite.co/LegacySite/page.aspx the URL will be rewritten to http://mysite.co/page.aspx Below my Web.Conf (in the webroot folder) does not work properly, could you point out what I'm missing? <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite>

WCF Error : Relative end point addresses

爷,独闯天下 提交于 2019-12-21 07:20:35
问题 Um quite new to WCF . I think I have messed up a bit. So this is what I did so far and I ve hosted my WCF service in IIS First the Contracts using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; using YangkeeServer.dto; namespace YangkeeServer { public class Service1 : IService1 { [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, UriTemplate = "single"

NetworkService under IIS has empty AppData path

删除回忆录丶 提交于 2019-12-21 05:23:11
问题 Using IIS 8 on Windows 8, I've set up an application pool which runs with an identity of Network Service . In the code for a page, I make calls to: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) Both calls return null. I've tried combinations <identity impersonate="true|false"/> as well as setting the Load User Profile setting to true|false in the application pool setting, but I always get a null

Trouble using DOTNET from PHP.

牧云@^-^@ 提交于 2019-12-21 05:14:21
问题 I've been trying to call a .net assembly from PHP through com (using DOTNET()). It seems like php is finding the DLL and initializing properly, but I can't see/use the methods for some reason. Anyone know how I might be able to fix this? Here is the php code I'm using to call the .net class. When I call it the output is "hello1 hello2". When I try to directly call the function by doing $csclass->ModelBuilder("","") I get a 500 server error specifying that it couldn't find the function. <?php

.NET Execution Timeout Not Taking Effect in an MVC Web Project

前提是你 提交于 2019-12-21 04:42:30
问题 We're trying to set a timeout, and requests just aren't timing out. We tried setting this several ways: By putting this in the web.config (in both the application's web.config, and the one in the views folder) <httpRuntime executionTimeout="5" /> We made sure that we were not in debug mode <compilation debug="false" targetFramework="4.0"> We even tried setting a script timeout in code (even though it's supposed to be the same thing) and added a Thread.Sleep for 3 minutes (to make sure we were