Throw IIS errors in Asp.net

    Date: 05/04/06 (Asp Dot Net)    Keywords: security, web

    We're working on using Windows authentication on our intranet site. We're trying to block out users that do not have permission to various folders (NT security.) We don't like using the web.config allow/deny setting because we don't want to "prompt" the user for their information. We just want to either allow them or deny them. I'm trying to write authenication on the code side to check if the user is authorized. If the user is not authorized I want to throw the 401.2 Error Screen (Access is denied.) Does anyone know how to throw this specific error? My co-worker said that you can throw IIS errors in code, but I can't seem to find any information on this. Thanks.

    Source: http://community.livejournal.com/aspdotnet/64894.html

« nesting tables || VB.Net used to add files to... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home