Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Production postmortem: The evil licensing code

AddThis Social Bookmark Button
A customer gave us a call about a failure they were experiencing in their production environment. They didn’t install the license that they purchased for some reason, and when they tried to install that, RavenDB will not run. There is what this looked like: Once I had all those details, it was pretty easy to figure out what was going on. I asked the client to send me the Raven.Server.exe.config file, just to verify it, and sure enough, here are the problematic lines:
This is the default configuration, and this failure is
actually the expected and desired behavior. What is going on? This customer was running RavenDB in a development mode, without a license. That means that the server is open to all. When you install a license, that is a pretty strong indication that you are using RavenDB in production. It is actually common to see users installing the development mode in production, and registering the license at a later date, for various reasons. The problem with that is that this means that at least for a while, they were running with “everyone is admin” mode, which is great for development, but...(Read whole news on source site)

Ingredients for well-designed OWIN middleware components - Part 7

AddThis Social Bookmark Button
In the sixth post of this series I talked about how you can use Swagger to create real useful documentation for your API. In this seventh and probably last post, I'd like to present some spices to make that OWIN middleware component extra special.

Spice 1: Automate your entire build process using PSake
So you've completed the first version of your component and you're ready to ship it as a NuGet package. Manually creating that .nuspec file, running nuget.exe and publishing it to is not that difficult to do. But now what? Are you going to do it like that forever?
Of course not. That's why we have the power of PowerShell to our disposal, something that I already demonstrated with ingredient 6.

Spice 2: Choose the right release strategy
Now that you have your first release out of the door, you'll have to start thinking about when and how you're going to release feature versions of your component. Is any change you make that good that you can ship right away? Or do you first want to stabilize upcoming releases by shipping alpha or beta packages to be tested by your consumers. Within the git open-source world, two...(Read whole news on source site)

The Morning Brew #1913

AddThis Social Bookmark Button
Information RyuJIT Bug Advisory in the .NET Framework 4.6 – Rich Lander .NET Lifecycle, Roadmap, and Announcements – Joe Irizarry & Reed Robison Getting Started with Windows 10 – Scott Hanselman Differences between Windows 10 Home, Pro, Enterprise and Education Editions – Scott Ge Introducing TypeScript npm nightlies – Jonathan Turner A Complete List of […]

Rx Challenge #8 Solution

AddThis Social Bookmark Button
this post is part of series, the hole series can be found in here. this challenge was all about buffering the data on suspension period and flush it out on resume. the idea is to suspend the observable notification for a while without loosing data. the following diagram show the required functionality Marble Diagram /************************************************* […]

How to display the back button in the Windows Universal APPs title bar ?

AddThis Social Bookmark Button
Windows 10 Apps are universal apps they can be used in any device of any form factor. Normally apps running in windows tablet will be having back button on the screen. But when it comes to windows phone there is a default hardware back button. So the developer has to check what kind of device it [...]

Git Ignore to Untrack TypeScript Auto Generated Files

AddThis Social Bookmark Button
When using TypeScript you really don't want the transpiled output files created from the source .ts file to be committed to the repository. This is because the output could be looked at analogous to the /bin generated files which we all know are not to be committed. The TypeScript auto-generated files (.js and will be built independently for each user's source, and only the single .ts file should be committed. 

The only exception I see to this process is if there is a restriction on TypeScript compiling on the server (i.e. CI build server) in which case the actual .js file might have
to be committed. As long as the TypeScript compiler is present for compilation, only the .ts file should be committed.

To ignore the auto-generated .js and files for a new project the process is quite simple. Just add some rules to the .gitignore file at the root of your project like below and these files will not be tracked.

# Typescript Auto-generated files
# Note: all files must be TS files in this directory or ordinary JS files could be removed
# Modify as needed to preserve files and be more explicit

A better 404 page and redirects with GitHub Pages

AddThis Social Bookmark Button
A while back I migrated my blog to Jekyll and GitHub Pages. I worked hard to preserve my existing URLs. But the process wasn't perfect. My old blog engine was a bit forgiving about URLs. As long as the URL "slug" was correct, the URL could have any date in it. So there happened to be quite a few non-canonical URLs out in the wild. So what I did was create a 404 page that had a link to log an issue against my blog. GitHub Pages will serve up this page for any file not found errors. Here's
an example of the rendered 404 page. And the 404 issues started to roll in. Great! So what do I do with those issues now? How do I fix them? GitHub Pages fortunately supports the Jekyll Redirect From plugin. For a guide on how to set it up on your GitHub Pages site, check out this GitHub Pages help documentation. Here's an example of my first attempt at front-matter for a blog post on my blog that contains a redirect.
--- layout: post title: "Localizing ASP.NET MVC Validation" date: 2009-12-07 -0800 comments: true disqus_identifier: 18664 redirect_from: "/archive/2009/12/12/localizing-aspnetmvc-validation.aspx" categories: [aspnetmvc localization validation] ---
As you can see, my old...(Read whole news on source site)

St. Louis Office 365 User Group Kick-off Meeting

AddThis Social Bookmark Button
For those of you in the St. Louis area, we'll be hosting our first ever Office 365 User Group meeting this Thursday, July 30, at 2 p.m. at the Microsoft office at 3 CityPlace Drive, Suite 1100, Creve Coeur, MO 63141​. Anyone is welcome to attend. Please spread the word! If you are interested in becoming a part of the group and can't make it, please contact me and I'll fill you in on the details.
Category: Office 365; Training and Certification
Published: 7/28/2015 8:27 AM