Categories
- Active Directory
- Apache
- ASP.Net
- Attributes
- Azure
- Bash
- Batch Files
- C#
- Extension Methods
- FireFox
- Generics
- IIS
- Internet Explorer
- JavaScript
- jQuery
- LINQ
- Linux
- log4net
- Microsoft AJAX
- Microsoft Edge
- Microsoft Office
- Microsoft TechNet
- MS SQL Server
- MSBuild
- MVC
- PowerShell
- PowerShell DSC
- Regular Expressions
- SSIS
- Subversion
- T-SQL
- Team Foundation Server
- This and that
- Virtualization
- Visual Studio
- WCF
- Web Services
- Windows
- Windows 7
- Windows Server 2008 R2
- Windows Server 2012
- WinForms
- WordPress
Archives
- March 2018
- November 2017
- July 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- January 2014
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- October 2011
- September 2011
- August 2011
- June 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- May 2006
- March 2006
- January 2006
Meta
Category Archives: C#
.NET Calling Web Services: Look Out For The “connectionManagement/maxconnections” Setting
If you have an application making web service calls in parallel, you will want to change the maxconnection setting. By default, you will be limited to 2 concurrent connections per endpoint, so even you had 20 threads going, they would … Continue reading
Posted in ASP.Net, C#, Web Services
Leave a comment
Avoid Mixed Content Warnings Using Protocol Relative URLs
“This webpage contains content that will not be delivered using a secure HTTPS connection, which could compromise the security of the entire webpage.” Undoubtedly, you have seen this message while browsing a site over SSL using Internet Explorer. Chrome, Firefox, … Continue reading
Posted in ASP.Net, C#, jQuery
Leave a comment
Using the #warning Preprocessor Directive
Conditional compilation is powerful. One Preprocessor Directive that I like to use to remind myself of a particular condition is #warning. The #warning preprocessor directive will trigger a compilation warning with a specified message when it is hit. For example, … Continue reading
Posted in C#, MSBuild
Leave a comment
C# Suppress Compilation Warnings with #pragma or the SuppressMessage Attribute
Although one would hope that you wouldn’t have to do so very often, sometimes it is useful to explicitly disable code analysis warnings within your application. For example, you could suppress warnings around references to obsolete methods that must be … Continue reading
Posted in Attributes, C#, MSBuild, Visual Studio
Leave a comment
log4net: A Custom Subject SmtpPickupDirAppender With Emails Containing All Referenced Assemblies
The more information you have in your error notification emails the better. Here’s a way you can get all the referenced assemblies into a log4net generated email that has a custom subject line. First, in your application start-up, add the … Continue reading
Posted in C#, log4net
Leave a comment
C#: Regular Expressions to Filter HTML to a Whitelist of Allowable Tags
If you are looking to “sanitize” your HTML to a whitelist of allowable tags, here’s a bit of code that may help. It is a string extension that uses regular expressions to “clean up” your HTML input. The original code … Continue reading
Posted in C#, Extension Methods, Regular Expressions
2 Comments