Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / UrlAuthFailedErrorFormatter.cs / 3 / UrlAuthFailedErrorFormatter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * AuthorizationConfigHandler class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Configuration { using System.Runtime.Serialization; using System.Web.Util; using System.Collections; using System.Collections.Specialized; using System.IO; using System.Security.Principal; using System.Xml; using System.Security.Cryptography; using System.Configuration; using System.Globalization; using System.Web.Management; ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// internal class UrlAuthFailedErrorFormatter : ErrorFormatter { private StringCollection _adaptiveMiscContent = new StringCollection(); internal UrlAuthFailedErrorFormatter() { } internal /*public*/ static string GetErrorText() { return GetErrorText(HttpContext.Current); } internal static string GetErrorText(HttpContext context) { bool dontShowSensitiveInfo = context.IsCustomErrorEnabled; return (new UrlAuthFailedErrorFormatter()).GetErrorMessage(context, dontShowSensitiveInfo); } protected override string ErrorTitle { get { return SR.GetString(SR.Assess_Denied_Title);} // "Access Denied } protected override string Description { get { return SR.GetString(SR.Assess_Denied_Description2); //"An error occurred while accessing the resources required to serve this request. This typically happens when the web server is not configured to give you access to the requested URL."; } } protected override string MiscSectionTitle { get { return SR.GetString(SR.Assess_Denied_Section_Title2); //return "Error message 401.2"; } } protected override string MiscSectionContent { get { // string miscContent = HttpUtility.FormatPlainTextAsHtml(SR.GetString(SR.Assess_Denied_Misc_Content2)); AdaptiveMiscContent.Add(miscContent); return miscContent; //return "Access denied due to the web server's configuration. Ask the web server's administrator for help."; } } protected override string ColoredSquareTitle { get { return null;} } protected override string ColoredSquareContent { get { return null;} } protected override StringCollection AdaptiveMiscContent { get { return _adaptiveMiscContent;} } protected override bool ShowSourceFileInfo { get { return false;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoubleLink.cs
- PropertyRecord.cs
- ClientFormsIdentity.cs
- followingquery.cs
- ResourceProviderFactory.cs
- UInt32.cs
- ButtonChrome.cs
- ShapingEngine.cs
- SecurityAppliedMessage.cs
- OdbcConnectionString.cs
- SchemaAttDef.cs
- FixedLineResult.cs
- SystemTcpConnection.cs
- ObjectDataSource.cs
- BitmapEffect.cs
- ReaderContextStackData.cs
- PersonalizablePropertyEntry.cs
- AlternateView.cs
- ImageDrawing.cs
- DataServices.cs
- ValidateNames.cs
- EllipseGeometry.cs
- TextTrailingCharacterEllipsis.cs
- TableCellCollection.cs
- XslNumber.cs
- VectorCollectionConverter.cs
- SoapObjectWriter.cs
- BidOverLoads.cs
- SqlNodeAnnotation.cs
- SharedConnectionInfo.cs
- DbConnectionFactory.cs
- VisualBrush.cs
- BeginEvent.cs
- CheckBoxStandardAdapter.cs
- IteratorFilter.cs
- ConvertEvent.cs
- ByteStreamMessage.cs
- ListBoxItem.cs
- ToolboxBitmapAttribute.cs
- DispatcherEventArgs.cs
- XNodeValidator.cs
- SiblingIterators.cs
- HotCommands.cs
- ImageClickEventArgs.cs
- ServiceOperationParameter.cs
- CultureSpecificStringDictionary.cs
- DirectionalLight.cs
- CompressedStack.cs
- SystemBrushes.cs
- DataConnectionHelper.cs
- TextDecorations.cs
- Ppl.cs
- MemoryRecordBuffer.cs
- ImportContext.cs
- ResourcePool.cs
- HuffCodec.cs
- TargetControlTypeCache.cs
- DataPager.cs
- XhtmlBasicListAdapter.cs
- ConvertEvent.cs
- WindowsGraphicsWrapper.cs
- GenericRootAutomationPeer.cs
- WhitespaceRuleLookup.cs
- TreeViewImageIndexConverter.cs
- FileChangeNotifier.cs
- DefaultAutoFieldGenerator.cs
- UnionCodeGroup.cs
- FrameworkElementAutomationPeer.cs
- DbExpressionVisitor.cs
- RuleSetDialog.cs
- ClientConvert.cs
- LocatorBase.cs
- InfoCardSymmetricAlgorithm.cs
- ServiceInfo.cs
- EmptyCollection.cs
- PointLightBase.cs
- CollectionChangeEventArgs.cs
- _AutoWebProxyScriptHelper.cs
- Set.cs
- PathTooLongException.cs
- TableRowCollection.cs
- MemberJoinTreeNode.cs
- AttributeExtensions.cs
- IndentTextWriter.cs
- TypedTableBaseExtensions.cs
- BitArray.cs
- DetailsView.cs
- GradientBrush.cs
- DesignerSerializationManager.cs
- DSASignatureDeformatter.cs
- XmlMtomReader.cs
- SafeEventLogReadHandle.cs
- TypeConverterHelper.cs
- ClientApiGenerator.cs
- XNameTypeConverter.cs
- ToolStripEditorManager.cs
- AnimatedTypeHelpers.cs
- TitleStyle.cs
- BufferBuilder.cs
- SocketException.cs