August 2013 Blog Posts
Visual Studio Known Project GUIDs

They can be found here.

posted @ Wednesday, August 28, 2013 12:14 PM | Feedback (0)
Single Page Applications, JavaScript, and I still hate strings

Sergio gave a good presentation on some single page application work he’s been doing.

I’m somewhat envious.  All the cool kids are doing things like that (from the .NET space, it seems they went from .NET to Ruby to JavaScript…I’m not sure what’s next), and while Sergio isn’t a kid, he is pretty cool.

But he loves JavaScript.  As he mentioned in his talk, some people hate it.  I think I’m one of those people.

All of my instincts tell me that there could be serious problems with these sorts of apps (I’m thinking about usability in particular), but more important for me personally, the talk emphasized that I seriously don’t know if I could do it, because of all the strings.

I came to the talk on the day where I spent multiple hours trying to figure out why something didn’t work because I couldn’t see the simple fact that I had left out a “#” in a JQuery function (I made up for it later in the day by trying to figure out why something didn’t work because I couldn’t see the simple fact that I had typed in “##” at one point.  At least that threw an error).

All that said, I do like the concept of SPAs for certain purposes.  I just think that I literally couldn’t create one effectively because of all the strings.

posted @ Thursday, August 22, 2013 10:58 PM | Feedback (2)
IE8 Bug with CSS Layout: Server renders different from local developer machine

Ran into this issue with some work on recently, and was totally confused until I saw this:

The solution is described here:

You need to add the following meta tag to your page (or master page if you are using such a thing):

<meta http-equiv="X-UA-Compatible" content="IE=8">

posted @ Thursday, August 22, 2013 10:07 PM | Feedback (0)
How not to answer a technical interview question

Me: “So, I see that at various times, you have used Ninject, Unity and Autofac.  Could you explain what you would choose if you had 100% control over a project, and why?”

Respondent: “If it were up to me today, I would use NHibernate, especially Fluent NHibernate.”

posted @ Tuesday, August 20, 2013 7:02 PM | Feedback (0)
EC2: Enabling IIS Web Deploy Publishing from Visual Studio

Once again, mainly for me, because it was a slight pain in the ass.

You have to have an EC2 server already set up.  I’m not going to cover that.

If you just try to publish to your EC2 server from Visual Studio using a newly created Web Deploy profile, you will likely get a lot of errors.

Firstly, within your EC2 admin page, you need to allow for inbound connections on port 8712, which is what the Web Management Service uses.  Oh, you also need to make sure this service is started and set to start automatically.  Without either of these, you won’t even be able to connect.

You might still get some errors.  Within Visual Studio 2013, there’s a verify connection button when you set your authentication credentials and whatnot.  If/when it fails, there is a link that will appear that gives you some more information.

You should also be looking at your Inetpub log directory to see what exactly gets logged when the verification fails.

One odd error was logged as a 403 503 error.  Well, 403 means forbidden, that’s obvious, but 503 is not a normal sub-status message.  It took me a little digging to figure out that you need to go into IIS Manager, select Management Services, and allow remote connections (you need to stop the service to allow you to change the setting).

After that, I was getting a 404 7 error.  This was because I did not have Web Deploy installed (which can be installed from the Microsoft Web Platform Installer).  Most message I saw said that Web Deploy 2.1 needed to be installed, but on a Windows 2012 Server, it looks like Web Deploy 3.5 is what does the trick.

At this point, you might get a nice ‘Verification successful’ message and think you are good to go.  Then you try to publish, and you get the old odd message about web.config having a bad section because you haven’t set a virtual directory or whatnot, which is odd if you can actually see your previously deployed web site.  What you really just need to do here is nuke your obj folder at the source site, and then try to publish again.

This works, or at least worked for me.

posted @ Monday, August 19, 2013 12:05 AM | Feedback (1)
If you have less than 30 concurrent users on your web application, please turn caching off

Seriously, if you need to implement caching on an application that has less than 30 users, you are seriously doing something wrong, and making it really hard to troubleshoot what is wrong with your application, especially if you have to recycle the bleeping thing every single bleeping time a bleeping change is made.

That is all.

posted @ Wednesday, August 14, 2013 12:00 AM | Feedback (0)
SSMS Tip: Auto-generate Insert Statements

Once again, leaving a note to myself.

Do you remember when SQL Server’s import/export functionality didn’t suck?  Where, when you didn’t have direct connectivity between two instances, you could export data to a flat file from the source server and then import them into the target server, and not have to deal with annoying conversion or cast errors due to the nature of the data, the rotation of the Earth around the Sun, and other random problems?

I ran into this issue when trying to copy reference data from one server’s reference tables into another’s (where the schema already existed), and just constantly running into these issues.

Luckily, there’s StackOverflow, which had this.

Basically, on a database, you can use Tasks –> Generate Scripts to choose to copy data only and it will generate your insert statements for you (and handle identity columns, yada yada yada).

Obviously, if you need it, this works for more than just reference data.

posted @ Tuesday, August 13, 2013 11:18 PM | Feedback (0)