iis-6

How to check if IIS is in 32bit or 64bit mode

拟墨画扇 提交于 2019-11-30 14:33:45
问题 I'm trying to deploy a site to a 64bit OS. I'm deploying to IIS6. The site was developed on a 32bit server. The site deployed correctly however it's trying to access a COM component and that is failing. I believe the error is occurring because the COM component is a 64bit version on the 64bit OS. And IIS6 is running in 32bit mode on the 64bit server. I'd like to confirm this but I can't seem to find a definitive way to check if IIS6 is in 32bit mode or 64bit mode. Would someone know the best

What might be causing the “The client disconnected” ASP.NET exception?

被刻印的时光 ゝ 提交于 2019-11-30 13:37:34
问题 My .NET 3.5 application sporadically throws the following exception System.Web exception: The client disconnected Why is this exception occurring? My application is running on a load balanced Windows Server 2003 IIS 6.0 server. 回答1: The vbdork.net domain seems to now be defunct. In searching on this error, I found several references to this article. So I found a google cached version of it and am now posting it here for reference. The original URL was: http://vbdork.net/post/2009/02/10/The

Get Performance Counter Instance Name (w3wp#XX) from ASP.NET worker process ID

让人想犯罪 __ 提交于 2019-11-30 11:45:00
I would like to display some memory statistics (working set, GCs etc.) on a web page using the .NET/Process performance counters. Unfortunately, if there are multiple application pools on that server, they are differentiated using an index (#1, #2 etc.) but I don't know how to match a process ID (which I have) to that #xx index. Is there a programmatic way (from an ASP.NET web page)? The first hit on Google: Multiple CLR performance counters appear that have names that resemble "W3wp#1" When multiple ASP.NET worker processes are running, Common Language Runtime (CLR) performance counters will

MVC Mini Profiler on IIS 6

纵饮孤独 提交于 2019-11-30 11:14:39
Has anyone been able to get the MVC mini profiler working on IIS 6? I've set up the profiler in my application and it works perfectly in Visual Studio, IIS Express and IIS 7.5 but when I put the exact same application onto IIS 6 it won't work. The problem seems to be around loading /mini-profiler-includes.js, I just get a 404 response. I've checked the route table and the correct routes have been registered by the profiler but apart from that I'm not sure what else to try. On IIS 7, ASP.NET by default runs in integrated mode so the ASP.NET runtime will handle all requests, however on IIS 6 ASP

How to check if IIS is in 32bit or 64bit mode

早过忘川 提交于 2019-11-30 10:56:48
I'm trying to deploy a site to a 64bit OS. I'm deploying to IIS6. The site was developed on a 32bit server. The site deployed correctly however it's trying to access a COM component and that is failing. I believe the error is occurring because the COM component is a 64bit version on the 64bit OS. And IIS6 is running in 32bit mode on the 64bit server. I'd like to confirm this but I can't seem to find a definitive way to check if IIS6 is in 32bit mode or 64bit mode. Would someone know the best way to check if IIS6 is in 64bit or 32bit mode? EDIT: I'm using IIS6 which version of IIS? to check it

Mass 301 redirects in ASP.NET, including pages that need to redirect to a different place depending on the query string parameters

人盡茶涼 提交于 2019-11-30 10:51:37
We have several pages of our site indexed using old non-SEO friendly URLS such as http://www.domain.com/DocumentDetails.aspx?id=555 . Recently we implemented routing that uses slugs stored in the database and looks up the slug to forward you to the right page using routing, for example: http://www.domain.com/Documents/Title-of-the-Document This is all well and good however we are having a hard time finding the best way to set up our 301 permanent redirects for all the links currently indexed by Google. Is there a way to have 1 centralized place to store old URL and new URL, and have it do the

ASP.NET MVC eurl.axd errors

自闭症网瘾萝莉.ら 提交于 2019-11-30 10:31:53
问题 Using the following steps: (I have checked this similar post, which does not solve my problem.) Under Windows Server 2003/IIS6, I create a new site called "testapp" In VS2010, I create a new ASP.NET MVC 2 application. I add a view called "Info" with the following code: <h2>System</h2> <h3>Request</h3> <% foreach (string key in Request.Headers) { Response.Write(string.Format("<p>{0}={1}</p>" , key , Request.Headers[key]) ); } %> In addition to the standard headers I see this one: X-REWRITE-URL

Default.aspx with IIS 6.0 and .Net 4?

非 Y 不嫁゛ 提交于 2019-11-30 09:47:05
We have deployed a .net 4 asp.net site on IIS 6.0. Default.aspx is configured as one of the default document. When we access the site using the following url http://testsite We expect it to render http://testsite/Default.aspx But instead we get 404 Not found error . We did not had this issue when it was deployed on .Net 2.0. Only thing that has changed on the server is that we use .NET 4 instead of .NET 2.0. UPDATE : I tried the following link but it did not work. Getting an ASP.NET 4 application to work on IIS6 The framework version on the server is .NET 4 RC. Will it help if we install the

Wrong path returned by Environment.GetFolderPath(Environment.SpecialFolder.ApplicationFolder) under IIS6 WebService

孤街浪徒 提交于 2019-11-30 09:28:02
问题 On my test machine running (Windows XP, IIS5.1) the following code executed within a C# .NET WebService (.SVC) under a custom process identity (using machine.config to specify the user) Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); correctly returns c:\Documents and Settings\myUserName\Application Data However, on (Terminal Services) Windows 2003 machine running IIS6 and executing the same code but now using ApplicationPool to specify the same process identity the

WCF sessions with HTTPS

大城市里の小女人 提交于 2019-11-30 09:16:19
I cannot figure out how to enable per-session instances for my WCF service while using HTTPS. (I'm not an ASP.NET expert but don't want to use ASP.NET session state if possible.) I am using .NET Framework 3.0. I have arrived at the following contradiction and am hoping that someone can tell me where there is a flaw in the logic. 1) The service must be hosted on IIS 6 due to client mandate. 2) The service needs to maintain state between calls, including SqlConnection and SqlTransaction instances (ugly but necessary due to project constraints). 3) Therefore I need to use the wsHttpBinding. 4)