iis-6

Catch IIS level error to handle in ASP.NET

淺唱寂寞╮ 提交于 2019-12-12 08:56:57
问题 I am developing an ASP.NET site with C# on IIS 7, but I hope for an answer that will apply to IIS 6 as well. Part of this site is the ability to upload up to 5 images at a time. I have a nice algorithm to resize the image that is uploaded to my optimal size and ratio. So the only real size limitation I have is during the initial upload. I have modified my web.config to raise the packet limit from 4MB to 32MB. For the most part this takes care of my issues. My question comes in the rare cases

Logoff button IIS6 ASP.NET Basic Authentication

不想你离开。 提交于 2019-12-12 08:15:32
问题 I have a requirement for an explicit logout button for users in a ASP.NET web app. I am using IIS6 with Basic Authentication (SSL). I can redirect to another web page but the browser keeps the session alive. I have googled around and found a way to do it by enabling an active x control to communicate with IIS and kill the session. I am in a restricted environment that does not allow forms authentication and active x controls are not forbidden as well. Has anyone else had this requirement and

Add www prefix to URL

百般思念 提交于 2019-12-12 03:21:57
问题 I have an ASP.Net MVC 3 Website hosted on a shared Windows hosting package. I wish for my site to automatically add a 'www' prefix to all my site pages when the user does not type it in, ie, mytestpage.com redirects to www.mytestpage.com. I have browsed extensively through Stackoverflow and other Internet sites to find a solution to this, but to no avail. The solutions given are to either configure IIS itself, however, I do not have access to IIS as I am using a shared hosting package. Others

How to access multiple website using different bindings on IIS 7.5

扶醉桌前 提交于 2019-12-12 03:04:27
问题 How can I access different websites hosted on my local IIS 7.5 (using different bindings) from my ipv4 address? My system32\drivers\etc\host file has my binding names mapped to 127.0.0.1 In IIS, I have the normal "Default Web Site". Its binding hostname is empty, set to all unassigned ip address and port 80. On my network, I can access this site using the server ipv4 address like so : http://192.168.2.1/mySubSite/index.html where mySubSite is a child folder of the "Default Web Site". I can

Install MVC on 2.0.NET Server with IIS6 without Admin Rights

狂风中的少年 提交于 2019-12-11 23:12:43
问题 On my local machine using IIS 5 (winxp) and visual Web Developer, I've built a beautiful and well composed website using MVC. Now to deploy to the testing server. I find out that it does not have MVC installed - Error:- Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Source Error: Line 39: add assembly="System.Web.Abstractions,Version

Upgrading from IIS 6 to 8.5: increased concurrent requests

怎甘沉沦 提交于 2019-12-11 19:41:13
问题 We upgraded our web server from Windows Server 2003 to Windows Server 2012 R2. The web application in question runs against ASP.NET 4.0. The web application in turn communicates with a third-party Web API. Shortly after the upgrade, the Web API latency increased, which in turn lead to notable timeouts. I suspected that on IIS 8.5, the number of allowed concurrent requests increased, causing an increase in throughput that the Web API was unable to handle. However: IIS 6 isn't limiting the

Response.Headers and IIS6

橙三吉。 提交于 2019-12-11 18:38:13
问题 So I'm trying to iterate over Response.Headers for a custom caching job, but I'm getting the following error when I touch the thing: This operation requires IIS integrated pipeline mode It this possible to do in IIS6? Is there a workaround? var allHeaders = HttpContext.Current.Response.Headers; // error thrown as soon as it's accessed 回答1: AFAIK you cannot access the HTTP response headers unless you are running in integrated mode because they are sent by the server at a later stage of the

IIS 6/.Net 2:How can user A get the user cookie for unrelated user B who is in a different session and on another box?

烂漫一生 提交于 2019-12-11 18:26:05
问题 1) user A goes to the site, creates an account, and logs in 2) user b goes to the site. Rather than having to log in, user b enters as though user b is user a. User b gets access to all of user a's data and can brows the site as user a. Note: user b does not log in. User b just hits the site, and the site returns as if user b is already logged in as user a. Note 2: user a and user b are on distinct computers. Also, static variables are not involved in the code. Setup: IIS 6 .Net 2.0

How to I obtain an IIS Virtual DIrectory name from an IIS metabase path in c++

China☆狼群 提交于 2019-12-11 17:54:32
问题 I have the following metabase path: /lm/w3svc/1/root/foo which I can see in IIS manager maps to the virtual directory: Default Web Site/foo How can I determine the virtual directory name from the metabase path in c++? 回答1: HRESULT CAeXMSAdminBasePtr::GetVirtualDirectoryName( LPCWSTR szMetaPath, LPWSTR szVirtualDirectoryName, DWORD dwVirtualDirectoryNameLen ) { HRESULT hr = S_OK; METADATA_RECORD mdRecord; memset(&mdRecord, 0, sizeof(METADATA_RECORD)); METADATA_HANDLE hMetaData = NULL;

logging iisreset

天大地大妈咪最大 提交于 2019-12-11 17:33:37
问题 Is there a log that lets you know when the web site was stopped and started in iis? I'm looking for a way to see when the web site was stopped and started. Does anyone know if there is a way to see? 回答1: Your best bet is to put something in your global.asax file in Application_start. You can add something to a log file, or shoot yourself an email whenever this fires. 回答2: Look in Windows Event Viewer > Windows Logs > System. Filter events with Source = IIS-IISReset . An example event message