iis-6

Elmah and 404s under IIS6

ぃ、小莉子 提交于 2019-12-11 04:54:58
问题 Just wondering if it's possible to get Elmah to log 404s that aren't picked up by the ASP.NET framework - i.e. the 404s that IIS spots and replies to. Presumably this would involve some kind of entry in IIS -> web site properties -> Custom Errors tab. Can't find any reference on how to do this. 回答1: Non-ASP.NET mapped extensions (e.g. static content, classic ASP, etc) will never hit the ASP.NET request pipeline so ELMAH will never know about 404 Not Found's generated by IIS6. You'd need to

How can I prevent applicationSettings in the web.config from being inherited?

无人久伴 提交于 2019-12-11 04:08:28
问题 I have an applicationSettings section in my web.config in my ASP.NET 2.0 web application. This works perfectly for storing values and being able to access them as strongly-typed values. Here is a snippet of my web.config: <configuration> ... <applicationSettings> <MyWebsite.Properties.Settings> <setting name="ExcludedItemNumbers" serializeAs="Xml"> <value> <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <string>123</string>

How to allow non-admin user to deploy web applications on IIS 6 using web deploy

。_饼干妹妹 提交于 2019-12-11 04:05:56
问题 I'd like to deploy a web application to IIS 6 on a remote server using a Web Deploy. I succeed to publish by an admin account of server but couldn't publish by a non-admin account. it failed with message : Unauthorized(401) I've found two different answer about this problem. scott guthrie said, "The non-admin scenarios enable administrators to configure Web Deploy on a server, and then delegate a subset of deployment capabilities to developers who do not have admin accounts on the production

The specified CGI application misbehaved… when executing hgweb.cgi for Mercurial

旧时模样 提交于 2019-12-11 03:57:13
问题 I have IIS 6 I installed Mercurial in c:/program files/mercurial I installed Python 2.6 in c:/program files/python I added extension handlings etc for my websites under tab 'home directory'=>'configuration "C:\program files\Mercurial\python\python.exe" -u "%s" "%s" extenstion = .cgi I allowed python.exe in web service extensions "C:\Program Files\Mercurial\Python\python.exe" -u "%s" "%s" I allowed all unknown cgi, although it is not recommended for security reasons I have a website on E:\WWW\

How do I secure a folder used to let users upload files?

雨燕双飞 提交于 2019-12-11 03:55:39
问题 I have a folder in my web server used for the users to upload photos using an ASP page. Is it safe enough to give IUSR write permissions to the folder? Must I secure something else? I am afraid of hackers bypassing the ASP page and uploading content directly to the folder. I'm using ASP classic and IIS6 on Windows 2003 Server. The upload is through HTTP, not FTP. Edit: Changing the question for clarity and changing my answers as comments. 回答1: also, I would recommend not to let the users

Classic ASP session and Web Garden (multiple workers)

微笑、不失礼 提交于 2019-12-11 03:49:02
问题 We are having issues with IIS6 slowdowns when using more than 1.2GB of RAM in a single worker and would like to use more workers. However looks like ASP sessions are made by worker and when the browser accesses some page through another worker it losts the ASP session. Do you have some tips on how to solve this problem? We are considering to use some other way to manage session separately from IIS (not database, maybe memcache?). Do you recomend something? Note.: The application is full of

Need to find Default Web Site's Home Directory in IIS

自古美人都是妖i 提交于 2019-12-11 03:04:41
问题 My InstallShield installer needs to install a file in the IIS Default Web Site's Home Directory, and set it to the default web page. Unfortunately, in our environments, I can't assume that the home directory is C:\Inetpub\wwwroot, but I need to find out what it is. Any idea on how I can do this with a script? We need to support XP, 2003 and 2008. 回答1: Found it - it's dead simple: Dim objIIsWebService Set objIIsWebService = GetObject("IIS://localhost/W3SVC/1/ROOT") wscript.echo

Using Powershell to Manipulate IP Restrictions on IIsWebVirtualDir

空扰寡人 提交于 2019-12-11 01:46:40
问题 Having trouble using Powershell to manipulate IP Restrictions on IIsWebVirtualDir (Virtual Directories). However, i have the code to do this in VBS, so hopefully this will be a simple matter to get help with :) Code in VBS: Sub Add2IPRList(WebsiteADSI, strIP2Add, strIP2AddSubnet) Set WebRootObj = GetObject(WebsiteADSI) '"IIS://localhost/W3SVC/2/ROOT/TestVDIR" set IPSecObj = WebRootObj.IPSecurity If(IPSecObj.GrantByDefault)then IPList = IPSecObj.IPDeny Else IPList = IPSecObj.IPGrant End If

Add authentication to subfolders without creating a web application

风格不统一 提交于 2019-12-11 01:43:40
问题 We have an existing publicly accessible web application with user controls, data access libraries, graphics, etc. We want to create a new secure section of the site that accesses some of the already existing resources. Initially we created the new section of the site as a virtual directory which (we hoped) would allow us to access the parent site's resources. We added the appropriate location information to the base web.config (authentication and authorization) but we continue to see the

Unable to access the printer when hosting to iis

此生再无相见时 提交于 2019-12-11 01:39:50
问题 I am using rdlc report in MVC,Printing operation works perfectly when running in visual studio, but when published to iis which is set up in the same machine,printing operation is not taking place.But when I return the report as pdf the report it is there,and I can print the file using javascript.But I actually need not want to display the report but want to print from server..Thanks For help in advance public ActionResult GenerateOrder() { try { LocalReport report = new LocalReport(); report