iis-7.5

How does Signal-R fit in the IIS activation model?

别说谁变了你拦得住时间么 提交于 2019-12-07 01:40:27
问题 I am learning Signal-R, and this is something that has been in my head during all time. How does Signal-R fits in the IIS/ASP.NET life cycle? How long does the Hubs live (I see they have re-connection semantics)? Does IIS does prevent the shutdown of an AppDomain that has a persistent connection? It is my understanding that IIS is designed to handle request-response scenarios. A request hits IIS, this finds the AppDomain, activate it, and then pass the request to it. And after an idle time,

maxRequestLength vs. maxAllowedContentLength on IIS 7.5

∥☆過路亽.° 提交于 2019-12-07 00:11:07
问题 maxAllowedContentLength is supposed to work on IIS 7+ servers but apparently my server doesn't want to take this value into account when uploading (ASP.NET MVC 3 website). Now that I included maxRequestLength in web.config everything started to work and the value was applied. Yet everywhere everyone is saying that the maxAllowedContentLength is the right one. Does anyone has an explanation for this behaviour? 回答1: Take a look at the link below - it explains the difference between the two. You

ASP.Net MVC 3/4 Hosted on IIS 7.5 Default Handler Mappings

懵懂的女人 提交于 2019-12-06 23:27:54
问题 What are the correct Default Handler Mappings for ASP.Net, ASP.Net MVC and WCF Services hosted on IIS 7.5 .Net Framework 4.0 on Windows 7 (PRO)? Out of a team of 8 developers who installed ASP.Net MVC 3/4 only 1 developer could get a basic ASP.Net MVC 3 Internet application to work under the Default Web Site in IIS 7.5 without changing the Handler Mappings, none of the team could get a second Website with the same site to work with the site sirectory located in a sub directory of the root

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

让人想犯罪 __ 提交于 2019-12-06 18:50:25
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 config and some in a location tag. The reason we do this is because we have some virtual applications

Handling all exceptions within global.asax

*爱你&永不变心* 提交于 2019-12-06 15:58:15
I'm trying to handle all application exceptions within global.asax for an MVC 3 project and whilst everything is working correctly within Cassini, as soon as I deploy to IIS 7.5, IIS starts taking control away from my application and handles many exceptions itself. This has the consequences of bypassing my custom logging and also returning ugly views. I have a similar approach to Darin's answer to this question . Here's what I'm using at the moment. protected void Application_Error(object sender, EventArgs e) { var app = (MvcApplication)sender; var context = app.Context; var exception = app

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

丶灬走出姿态 提交于 2019-12-06 15:40:33
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); // Set a new message event. messageEvent.Set(); } } I've noticed that Setting AsyncPostBackTimeout to a low

log4net RollingFileAppender and IIS 7.5

守給你的承諾、 提交于 2019-12-06 13:45:34
I'm trying to use log4net with a RollingFileAppender on IIS 7.5 / Server 2008 R2. However, the configuration from my old IIS 6 / Server 2003 box doesn't appear to work anymore, I simply don't see any log files being created, here's what I've got setup: In Web.config (inside <configSections> ) <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> In the same file (inside <configuration> ) <log4net> <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender"> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date [%thread]

MVC3 Multiple Areas Different Authentication Methods

ぐ巨炮叔叔 提交于 2019-12-06 13:17:50
I have the following structure for my web application: In my root web config, not in the Areas/Admin/Web.Config I have the following: <location path="Areas/Admin"> <system.web> <authentication mode="Windows"></authentication> <authorization> <deny users="*"/> </authorization> </system.web> </location> I have my own authentication working on the main root of the web site no problems by using the [Authorize] tag. Now for the Areas/Admin I'd like to use Windows Authentication. In IIS (Server 2008 R2 Machine), I have the Admin folder configured as an application: And when I click on Areas/Admin in

Why am I getting a “Security Error” from plupload on IE8/IE9 when uploading over HTTPS?

本小妞迷上赌 提交于 2019-12-06 12:42:44
I'm using plupload to upload files to an ASP.NET WebAPI service. It works fine in Chrome, and it works fine in IE8/IE9 on my development machine. When I connect to the website on the actual server, however, uploading a file causes plupload's error handler to fire with an error code of -400 and an error message of "Security Error." Looking at the response and request headers everything looks ok. The response even contains the correct return value! I'm guessing this has something to do with using https, but I'm not sure and it does work correctly in Chrome. (Firefox has a completely different

Using application pool identity results in exceptions and event logs

烂漫一生 提交于 2019-12-06 12:27:23
I recently switched my applications from using ASP.NET impersonation to actually specifying the identity in the application pool. The reason for this was to make future use of async easier so the threads run as my service account. Since making the change the site has been experiencing some issues. On the day I made the change I am now seeing these event logs show up much more often (used to be 2-3 times per day, now it's 8-10 times per day): Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that