iis-5

How to know who kills my threads

蹲街弑〆低调 提交于 2020-01-27 05:26:25
问题 I got a thread that is just banishing.. i'd like to know who is killing my thread and why. It occurs to me my thread is being killed by the OS, but i'd like to confirm this and if possible to know why it's killing it. As for the thread, i can assert it has at least 40 min of execution before dying, but it suddenly dies around 5 min. public void RunWorker() { Thread worker = new Thread(delegate() { try { DoSomethingForALongLongTime(); } catch(Exception e) { //Nothing is never logged :(

How to know who kills my threads

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-27 05:26:08
问题 I got a thread that is just banishing.. i'd like to know who is killing my thread and why. It occurs to me my thread is being killed by the OS, but i'd like to confirm this and if possible to know why it's killing it. As for the thread, i can assert it has at least 40 min of execution before dying, but it suddenly dies around 5 min. public void RunWorker() { Thread worker = new Thread(delegate() { try { DoSomethingForALongLongTime(); } catch(Exception e) { //Nothing is never logged :(

Running asp.net 4.0 with IIS 5.1

China☆狼群 提交于 2020-01-03 08:13:16
问题 Can we use asp.net 4.0 with IIS 5.1? 回答1: commmand as folllows: c:\windows\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe -iru 回答2: Yes you can run .NET 4.0 on IIS 5.1 回答3: If you cannot find a version 4.x entry in the APS.NET tab of your virtual directory in IIS, go to http://msdn.microsoft.com/en-us/netframework/aa569263 then follow the link for "Web Developers and Administrators" and (re-)install the .NET 4 platform on your server machine. 来源: https://stackoverflow.com/questions

Access Denied while trying to stop a C# Windows Service

廉价感情. 提交于 2019-12-30 05:00:06
问题 I have created a C# web service using visual studio to stop the windows service 'Simple Mail Transfer Protocol (SMTP)' called SMTPSVC. The following is the web method to do it: [WebMethod] public string StopService() { String status = ""; try { ServiceController scAlerter = new ServiceController("SMTPSVC"); Console.WriteLine(scAlerter.DisplayName); Console.WriteLine(scAlerter.CanStop); scAlerter.Stop(); Console.WriteLine("Service stopped"); status = "STOPPED"; } catch (Exception e) { Console

ASP.NET Cache object issues after migration from IIS 5 to IIS 6

别说谁变了你拦得住时间么 提交于 2019-12-25 03:37:08
问题 I'm experiencing an issue where the ASP.NET Cache objects are cleared out every minute or so. The proper behavior is that the cache objects should last 24 hours. This issue started recently when our public web servers were recently upgraded from IIS 5 to IIS 6. The site in question gets about 15,000 page views/hour during peak times. The server admin speculates it could be because of thread recycling in IIS 6. Any thoughts? 回答1: Check the event log - that will tell you if the process is

Hosting Silverlight 5 in IIS 5.1

大憨熊 提交于 2019-12-24 15:08:50
问题 I wanted to know if a Silverlight application can be hosted on IIS 5.1, because when I create a virtual directory and publish the Silverlight project and try browsing it, I get this following error: The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. 回答1: Host Silverlight in IIS: Add application to: (Or make sure IIS_IUSRS has permission) C:\inetpub\wwwroot\[Application] Add

Sitecore Images (ASHX extensions) not being picked up by IIS 5.1 or IIS7 Express- Getting 404 Instead

ぐ巨炮叔叔 提交于 2019-12-24 07:32:46
问题 At the moment I have no images being picked up at the moment, and this is off a completely default Sitecore Xpress install. I think this version is based on a 6.0 release I have installed it on a XP machine (no images) and then tried running it through WebMatrix, still with no images. I am at a loss really, and I have been grasping at straws a little. 回答1: Unfortunately I don't have much expirience with the Xpress edition. But one thing is that you need to have the mime-types setup on the

How could ASP server-side code corrupt a smart quote ’?

▼魔方 西西 提交于 2019-12-24 01:33:29
问题 My company just converted many columns from varchar to nvarchar. Now it seems that when we render a smart quote (i.e. ALT+0146 ’) to the screen and then send it back to the SQL Server 2000 database for persistence, the smart quote gets corrupted to - ’ -. My Question: How could ASP server-side code corrupt a smart quote ’ ? EDIT: It appears that my question is similar to this one. Incidentally, Powerpoint content introduced the smart quote into the mix. However as I said before, I'm dealing

IIS 5.1 on XP Classic ASP appears to be in single threaded mode

房东的猫 提交于 2019-12-23 18:13:19
问题 I do'nt have script debugging enabled on IIS 5.1 on XP, but the Classic ASP applications appear to be running in single threaded mode. One page must finish loading before another can load. Any ideas??? 回答1: Mike is right, Classic ASP responses are returned in order of receipt (not simultaneously) when being requested by the same session. If you need to do two requests at the same time in the same browser (as your web visitors might need to do if say one of the requests is for an image or AJAX

Classic ASP Error 405

ぐ巨炮叔叔 提交于 2019-12-23 17:24:49
问题 I have several development sites on my wix XP laptop (all classic asp). Doe anyone know why i need to type localhost/site/default.asp (i keep getting a 405 error on iis 5.1) and not just localhost/site 回答1: You need to add "Default.asp" as a default document. From this page ... With iis 4.0 and iis 5.0 the change is performed as follows: Start the Internet Service Manager (Start - Programs - Administrative Tools - Internet Services Manager). Expand the computer and select the web site. Right