iis-7.5

Long running php/fastcgi script hangs on IIS 7.5

早过忘川 提交于 2019-12-08 08:01:49
问题 I have a php application running on IIS 7.5 , php 5.4 running as fastcgi. The application works absolutley fine with the exception that long running php scripts seem to hang; no 500 error they simply seem never complete and return the results to the browser. I've written a simple test script below to eliminate the possibility of programming error in the main app : <?php /* test timeout */ /*set_time_limit(110);*/ echo "Testing time out in seconds\n"; for ($i = 0; $i < 175; $i++) { echo $i." -

3 requests for every resource (2 x 401.2 and 1 x 200) in a windows authenticated asp.net mvc app

末鹿安然 提交于 2019-12-08 07:34:34
问题 I was trying to track down why my site was so painfully slow in IE9 when I pulled out Fiddler and realised that every request is being sent 3 times (twice I get 401.2 and then a success). I verified this happens on all browsers, its just that Chrome's speed was masking this (or it could be that this has nothing to do with my sites performance issues in IE). I've set up break points in my begin/end request handlers and the request comes in for say a css file. It is not authenticated and the

Deploying ASP MVC 5 App with IIS 7.5

南楼画角 提交于 2019-12-08 07:32:59
问题 I try to deploy ASP MVC 5 app in virtual directory (without creating new iis application) I use IIS 7.5 I already put <modules runAllManagedModulesForAllRequests="true"/> <directoryBrowse enabled="true" /> in web.config file. But when i go to app url with IE browser it shows me just directory listing like in screenshot below Is there a way to deploy MVC 5 in virtual directory and make it work like usual MVC application? 回答1: You need to convert the virtual directory to application. Right

MVC Code First: App_Data Folder Not Being Created

﹥>﹥吖頭↗ 提交于 2019-12-08 07:14:43
问题 I'm using the MVC Code First approach to create a SQL Compact database (from WebConfig: data source=|DataDirectory|MailBoxDB.sdf). The .sdf file should get created automatically, and it does if I manually create the App_Data folder on the web server (Windows Server 2008). However, I'm trying to automate the deployment process and I want to eliminate this manual step. I'm using MSDeploy to create the deployment package. Is it a permissions issue that prevents IIS (7.5) from creating the App

Scaling Microsoft's ASP.NET Reverse AJAX “long poll” codeplex example

和自甴很熟 提交于 2019-12-08 03:56:46
问题 I'm investigating Microsoft's reverse-AJAX sample wherein they use a long timeout in the ScriptManager <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="2147483647"> And a ManualResetEvent to control the wait: private ManualResetEvent messageEvent = new ManualResetEvent(false); public Message DequeueMessage() { // Wait until a new message. messageEvent.WaitOne(); } public void EnqueueMessage(Message message) { lock (messageQueue) { messageQueue.Enqueue(message); //

IIS 7.5 Custom 404 Error Page Not Working for Web Root Index/Default

我怕爱的太早我们不能终老 提交于 2019-12-08 03:00:06
问题 Using IIS 7.5 I have created a custom 404 (and 403.14) error page that displays content from a database if a static file is not found. In other words, if I browse to http://mysite.com/test/ and a physical index or default file is not found at that location then IIS executes my 404 custom error page which parses the url and either displays a page stored in a database, or a notice saying the page cannot be found. Everything is working perfectly except that IIS will not display the 404 page for

Visual Studio 2013 Web Forms Site doesn't work with trust level “Medium”

主宰稳场 提交于 2019-12-08 02:51:24
问题 I've created an asp.net Web Forms site with Visual Studio 2013. Scripts and pages are generated automatically by VS 2013. The problem is that the website doesn't work with the .Net trust level "Medium". It reqires "Full" level. With the "Medium" Level it throws an error: The application attempted to perform an operation not allowed by the security policy. To grantthis application the required permission please contact your system administrator or change the application's trust level in the

ServiceBus throws 401 Unauthorized Error

大憨熊 提交于 2019-12-08 02:15:32
问题 I'm using a simple implementation of the Windows Service Bus 1.0 Brokered messaging to keep track of the user interactions with a particular web application. Every time something is saved to a "sensitive" table in the database, I have setup the repository layer send a message like so: ServiceBus.MessageQueue<T>.PushAsync(entity); which will then serialize the entity and create a message out of it. My MessageQueue class is something like this. public static class MessageQueue<T> { static

NancyFx on IIS and Windows Authentication

烈酒焚心 提交于 2019-12-08 02:04:08
问题 I have converted a MVC + AngularJS application to use NancyFx + AngularJS (as I wasn't really using any MVC stuff). I am using VS2013 and it runs under IIS (and IIS Express in my dev environment). I can obtain the current logged in user by examining the server.User component of the OwinEnvironment. I am currently using Microsoft.Owin.Host.SystemWeb as per most of the demos. When I add a RequiresAuthentication to a Get request in my module, I get a pop-up in IE to enter credentials even though

asp.net MVC routing - javascript url 404 errors

时光总嘲笑我的痴心妄想 提交于 2019-12-08 01:32:21
问题 While developing my app (asp.net mvc3) locally everything was fine using the VS dev app server. The app was located at localhost/. However, I'm attempting to deploy the application on a IIS 7.5 server in a /Management directory and having a lot of routing issues as a few calls in my app rely on the app being at the route. I have some javascript code that calls my controller through an ajax call that looks like this: url: "/en/Home/GetFormula/" I would like it to go to: /Management/en/Home