Answer by Chris W. Rea for Managing HTTPS server certificates from inside a...
Have a look at the System.Security.Cryptography.X509Certificates namespace.Notably, the X509Store class will do at least one of the things you're referring to: Importing an existing certificate into...
View ArticleAnswer by Chris W. Rea for ASPX pages fail due to FIPS 140 security policy
Refer to Microsoft's knowledge base article: KB 811833 - The effects of enabling the "System cryptography: Use FIPS compliant algorithms for encryption, hashing, and signing...". Excerpt:Microsoft .NET...
View ArticleAnswer by Chris W. Rea for download a folder from an FTP server using flash
Check out Adobe AIR 1.5 * Updating AIR applications. It probably doesn't handle FTP-based sources (HTTP: yes), but it is supposed to address the general problem you're facing. Quote:[...]Using the...
View ArticleAnswer by Chris W. Rea for ASP.NET RangeValidator weirdness with MaximumValue
The MinimumValue and MaximumValue properties of the RangeValidator class return string.Empty as their default when not set.Next, it also happens that the Convert() protected method implemented by...
View ArticleAnswer by Chris W. Rea for Caching user data in asp.net application
Session may end up being stored out-of-process or in a database, which can make retrieving it expensive. You would likely be using a session database if your application is to be hosted in a server...
View ArticleAnswer by Chris W. Rea for How can you make a c# project ignore the version...
If you're referring to a problem at runtime after swapping versions of your assembly without performing a rebuild of the program referencing your newly built assembly, you'll want to use a...
View ArticleHow can I stop my Visual Studio from launching IE8 TWICE when I click "Start...
I use Visual Studio 2008 primarily for web development, and there's one annoying behaviour which seems to have occurred ever since I upgraded to IE8 on my work PC:When I set a start page for a web site...
View ArticleHow to set up working logic unit tests target in Xcode 4.5 "Command Line...
Having trouble getting unit tests set up for a specific scenario. Here's what I'm trying:In Xcode 4.5, I created a simple OSX "Command Line Tool" application project (Foundation).Note that Xcode does...
View ArticleAnswer by Chris W. Rea for How to set up working logic unit tests target in...
I've determined a workaround I find suitable and which doesn't appear to have significant drawbacks, other than an added target.In a nutshell: the solution involves adding a static library target to...
View ArticleAnswer by Chris W. Rea for Is iOS developer able to view file system?
When your iOS device is connected to your computer and correctly provisioned for development, you can use Xcode 4 to download files for your own projects, and not only the files in the Documents...
View ArticleWhat is the purpose and function of Xcode's source control "Show Remote...
When working in Xcode on a project that's under git source control, I noticed the following menu item:File > Source Control > Show Remote Statusand, when toggling it, it changes to:File >...
View ArticleAnswer by Chris W. Rea for Jetty returning "HTTP/1.1 400 Bad Request" on...
Yes, having a space where you are putting it should result in a bad request.HTTP 1.1 is a protocol defined by a standard. By referencing the standard documentation, it is possible to determine what is...
View ArticleAnswer by Chris W. Rea for Xamarin ios - import library
@poupou's "maybe" was spot on, but I'll be pedantic and explain exactly.Look closely at this line I just quoted from your original question. I've marked it down using code (four spaces prefix per...
View ArticleAnswer by Chris W. Rea for Application Initialization Module for IIS 7.5 issue
(I know, stale question, but it's unanswered & came up in my own Google search on the subject.)Refer to the following article from Microsoft Support:Application Initialization module fails when web...
View ArticleAnswer by Chris W. Rea for #if DEBUG and return statements - Unreachable code...
If you are performing a build where the DEBUG symbol is defined, then the compiler is performing its static analysis of your code assuming that first return is in effect and not excluded. So your code...
View ArticleAnswer by Chris W. Rea for Is it possible to use Entity Framework Core in...
For some time I've also been interested in EF Core working on Xamarin.iOS, and have been monitoring the progress of the respective projects. There's good news now:Recently, a blocker bug was fixed...
View ArticleOverriding Object.Equals() instance method in C#; now Code Analysis/FxCop...
I've got a complex class in my C# project on which I want to be able to do equality tests. It is not a trivial class; it contains a variety of scalar properties as well as references to other objects...
View ArticleAnswer by Chris W. Rea for How to read a single char from the console in Java...
What you want to do is put the console into "raw" mode (line editing bypassed and no enter key required) as opposed to "cooked" mode (line editing with enter key required.) On UNIX systems, the 'stty'...
View ArticleAnswer by Chris W. Rea for viewing c# console app arguments
The excellent and free Sysinternals Process Explorer will do what you want. Highlight the process, right-click, choose Properties, and on the dialog that opens you'll see a "Command line:" section that...
View ArticleIs it necessary to create ASP.NET 4.0 SQL session state database, distinct...
Is the ASP.NET 4.0 SQL session state mechanism backward-compatible with the ASP.NET 2.0 schema for session state, or should/must we create a separate and distinct session state database for our ASP.NET...
View Article