Error Loading MVC 3 Project after MVC 4 is Installed or in VS 2011

Since installing the MVC 4 Beta, it has happened to me a few times that MVC 3 websites will not load when the solution is loaded into VS 2010 (I have also read about this happening with VS 2011). You can fix this by doing the following:
  1. In the Solution Explorer, right click on the project that wont load and click on "Edit [ProjectName].csproj". This will open up the project definition file in VS. You can also edit this manually using your favorite text editor, opening the file through Windows Exporer.
  2. Find the line in the file that starts with ProjectTypeGuids and remove the entry "{E53F8FEA-EAE0-44A6-8774-FFD645390401}" from the list (this is code that tells Visual Studio that it is an MVC 3 project - for some reason, including this in the project file after installing MVC 4 messes things up).
  3. Save the .csproj. file and [Reload] the project through the Right Click menu in Solution Explorer.
The project should now load properly (if the MVC project has been the startup project for the solution, you may have to reset this as well).

I Love it When Technical Book Authors Have a Sense of Humor

I am going through Pro ASP.NET MVC 3 Framework by Adam Freeman and Steven Sanderson (@StevenSanderson) (Apress). Enjoying it so far - good technical writing, good level of detail mixed with useful examples of different implementation options. And most importantly, they have a good sense of humor. From Page 381 (my highlights):

Quote from Pro ASP.NET MVC 3 (Sanderson & Freeman), page 381

If you don't want to click on the link, they are talking about best practices for url schemas using MVC, and give an example of a link to Amazon as something not to do (I realize the irony of my linking to Amazon above). They then include in an aside:

Note To be very clear, we have only the highest respect for Amazon, who sells more of our books than everyone else combined. We know for a fact that each and every member of the Amazon team is a strikingly intelligent and beautiful person. Not one of them would be so petty as to stop selling our books over something so minor as criticism of their URL format. We love amazon. We adore Amazon. We just wish they would fix their URLs

.Another good one: The authors are talking about using MVC to create a REST API, where the same action name in a given controller can be overridden to handle HTTP Get/Post/Delete requests (page 476, my emphasis):

Now each StaffMember entity in our application can be uniquely addressed using a URL of the form Staff/123, and a client can use the GET, POST, and DELETE HTTP methods to perform operations on those addresses. This is called a RESTful API, except by people who claim to be experts in REST, who will tell you that nothing is truly RESTful except their own code. (We joke—sort of).

Gotta love it.

Crucible Code Review Wishlist

I have been trying out Crucible Code Review software from Atlassian (halfway through the trial) with a number of teams in my department. The competition in this area is pretty sparse, and each one has its other issues:
  • Kiln only works for Mercurial (which we may move to some day, but for now we are using SVN so we need a solution that works with that as also)
  • Review Board seems to be very popular, but just looking at the list of the dependencies gives me indigestion when considering an install on our Windows Server environment.
  • Code Collaborator is way too expensive without giving much extra (50 users in Crucible = $2200, 50 named users in Code Collaborator = $24,450)
  • Code Review Tool doesn't have a very professional looking site, hardly any documentation and no plugin potential and no Mercurial support
  • Specatare's and Parasoft's websites are even sparser and gives almost no info (aside from a few screenshots) - not enough to make me spend the time trying it out.
On the other hand, thus far Crucible has delivered on the main functionality: establishing a medium for easily performing code reviews. The price is very fair and there is very decent documentation. We will probably go with it, just for those reasons alone. That said, I have a number of issues with Crucible - posting them here in the hopes that someone from Atlassian will see this and can do something about some or all of them.
  1. Design: The marketing website is professionally designed, from a usability perspective. The software is not. It looks like I (or someone with their head in code all day) designed it. For new users, it is just not so intuitive to use. What is the difference between Source and Projects? Where do I need to go to get things done? Where are the important items? After spending some time, we can figure it out, but a better design would go a long way. If you need some hints, just check out Team City. They have figured this out pretty well.
  2. Installation: I was able to get it running on Windows Server with Sql Server as a backend, without too much pain (note: there was some pain involved). However, thus I am only able to launch it from the command line. Instructions for setting it up as a Windows Service did not work. If we end up purchasing a license, I will have to bite the bullet and get it working somehow. But this needs to be fixed. Both Team City and Fog Creek (and I am sure, many others) have figured out how to bundle the installation of a windows service into an Installation Setup routine. Please see to this (and for upgrades as well). Same with documentation relating to getting Crucible to bind to the domain name properly. I eventually figured it out, but more guidance around this could have been given (hint: HTTP bind to the IP address on port 80, set the Proxy Host to the domain name without "http://" and set the site url to the domain name with "http://").
  3. Repository Administration: A lot of little things here could be changed to make this easier (again, check out Team City - they have nailed this). Off the top of my head:
    1. Why can't I change the name of a repository after it has been created?
    2. Please give me some concrete examples about how Include/Exclude paths work in a repository. I want to use these but don't want to put in a couple of hours trying it out (especially when the only way to try it is to re-index the whole repository, something that can take a really long time).
    3. Why can't I create a new repository based off of the settings used in a different repository, or better yet, have one base repository root, from which I define other repositories based on their relative paths (like in TC)? We have one big SVN repository, and Crucible, our individual repositories are all subdirectories somewhere down from this root. Right now it is really annoying to create new repositories - this could be made less painful.
  4. Workflows & Permission Schemes: Bit of a learning curve here - so many options. Some more explanation and help with setting these up would be good. Maybe more default setups available out of the box. And the one preset Permission Scheme that was given (agile) was setup by default to make the contents and reviews of all associated projects public to all users, including users who have not logged in (not so cool).
  5. Better Notifications: Right now it is easy for notifications to get lost in the different dashboards. I want to be able to set up a way for notifications regarding certain types of SCM updates to be elevated in prominence. For example, let me give a path or pattern match within a repository so that whenever code is committed to this path, I will get some loud notifications about these. Or when a specific user commits code to a specific project. There are so many commits, that I am not always able to review every single one - this is something to strive for, but I am  not there yet. However, there are some areas in my projects (or some users) where I always want to review every line of code that they put in. I don't want to lose these in the haystack. Give me a way to do this better and I will be very appreciative.
Looking at the market for code review software, it definitely seems like it is a third-class citizen, not getting as much attention as its bigger cousins in the realm of Continuous Integration or Bug Tracking (it is obvious even from looking at the list of different Twitter accounts used by @Atlassian, or the popular tags on their blog - Crucible or Fisheye are naught to be seen). Still, this lower status can also present an opportunity to really claim the mantle as the best in the business (and a note to competitors, existing or potential: not a high barrier to entry right now).

Horrible Page Design at

I just loaded up a link at talking about how the Rami Levy supermarket chain predicts that by 2012 20% of food purchases in Israel will be online. However, when I loaded the link, it took me a minute to actually find the content. Can you see the problem here? To make it a little bit clearer, I have added highlights - Ads are in yellow, In-site navigation is in green, and the content is in blue. The content occupies a tiny strip down the center of the page (maybe 30-40% of the total width of the page). This is surrounded on all sides several layers:
  1. The first layer has a set of Ads (Yellow - all advertising the same thing) and goes around the entire perimeter, switching vertical alignment to fit the ad into a narrow width going up each side (not to mention the completely irrelevant ad for investing in Brazilian agriculture - what is that about?). These are loud and completely distract the user's attention.
  2. The next layer is a mixture of ads (Yellow) and navigation links (Blue). The ads here are either irrelevant AdSense style ads, or ads from the Jerusalem Post advertising your ability to advertise on (I wonder what the ROI is on that).
  3. The worst part though are the strips of internal navigation links going up and down either side of the page. They all relate to different subcontent areas of the site (things other than news) and each one has a very similar looking graphics. The overall affect is that the graphics make it hard to tell the difference between the different sections, and I am completely turned off from clicking here.
Though these ads may add a bit of revenue in the short-term, in the long term the poor usability and design of this page will probably lead to lower traffic, shorter visits by users (in terms of both number of pages visited and overall time spent on the site) and fewer repeat visitors. It also reflects rather poorly on the professionalism of the site (and I would think that conveying an air of professionalism would be quite important in the online news-delivery market space). Fixing these problems would require:
  1. Rethinking the ad strategy for the site:
    • Do you really need those vertically aligned ads surrounding the whole page? What is that Brazil ad doing all the way out there? Are those AdSense style ads actually getting clicks? The ads should not distract users from the main purpose of the site. Doing so will not get you clicks, they will only end up annoying users.
  2. Smarter Navigation:
    • The navigation links that I would find the most useful (links to other news sections) are the least pronounced and emphasized links on the whole page. Make these easier to use.
    • Where are the tags? Links to similar articles? Links to most popular articles and most emailed articles? If I saw these, I might spend more time on your site?
    • Those ads going up and down each side of the content are totally useless. How about using a well designed expanding menu that can include links to all of these areas without taking up so much room and without being such an eyesore? And if you really have to see all of those links at once, do something about the graphics.
  3. Standards-Based Design:
    • Looking at the source for the site, it is a big mess. Definitely not built using web standards. Lots of table-based design. I imagine that this is very hard to maintain and does not play nicely on some or all mobile platforms. And that is not even starting with accessibility.
    • I have a fast Internet connection and I presumably located very close to the servers. Fully loading the page took about 25 seconds, and includes 37 HTML Get/Post requests, 20 separate CSS files, 104 different JS files, 119 different images - a total of around 290 separate requests. Total downloaded off of a fresh load: 2.5MB (imaging this on a slower connection). Reloading the page still took 240 requests and 19 seconds. This is just not acceptable. It is really bad.
(To anyone at who is reading this - I have nothing personal against you guys, and I do enjoy reading some of your content. But your site design is so poor, getting to the content is just too hard and too much of a strain on my eyes).

Clearing out a Mysterious Table Lock (LCK_M_S) in Sql Server 2008

A user reported today that they were trying to query a table with 181 records and the output stopped at 178 and just hung there. I tried to replicate this and the same thing happened - also couldn't run a Select (*) on the table. So I pulled up the Activity Monitor for the server and observed that there was only one query in process - the hung query. It listed the process as being suspended with a Wait Type of LCK_M_S. Some quick searching told me that the task was waiting to acquire a shared lock. However, it was not obvious what was locking the table. What to do? After some more searching, I found two more posts that gave advice on what to do in the given scenario: Based on these, I did the following:
    1. Ran Exec sp_who2 through Sql Management Studio. This gave me a list of all current processes. There was only one open process on this database at the time, so it was the likely culprit.
    2. Next, ran the code in the Sql Server Locks article above to show the process that was locking my table. Bingo - process 52.

DECLARE @dbid INT ; --what's the dbid for DBNAME?
SET @dbid = DB_ID() ;

DECLARE @objectid INT ; --what's objectid for our demo table?

--look at locking in the DB
SELECT  resource_type
FROM    sys.dm_tran_locks
WHERE   resource_database_id = @dbid ;

--limit the results to only the offending table
FROM    sys.dm_tran_locks
WHERE   resource_database_id = @dbid AND
        resource_associated_entity_id = @objectid ;
After I had confirmed the identity of the process, I ran Kill 52 to kill the offending process. Everything immediately started working again with the table. (After the fact, went back through the code with my team and found the spot where someone was running db.Connection.BeginTransation() on a data context that already had an open transaction, causing an error: "SqlConnection does not support parallel transactions". And to make things worse, this was done outside of the try/catch/finally structure that ensured that any open transactions would be committed. Oy.) As Pinal Dave writes:
As mentioned earlier, if you kill something important on your production server, there’s a great possibility that you’ll face some serious integrity issues, so I there’s no way I advise use this method. As the title goes, this is a dirty solution so you must utilize this only if you are confident.
It is important to keep that in mind. But that said, this technique for identifying and killing a hung transaction can definitely come in handy. (And be sure to backup your DB and transaction logs regularly!)

Buy Retin-A Without Prescription

Buy Retin-A Without Prescription, I have been claiming this for years. Web Surfing Helps at Work, buy Retin-A online cod, Retin-A pictures, Study Says:

According to a new study, Web browsing can actually refresh tired workers and enhance their productivity, buy cheap Retin-A no rx, Retin-A pharmacy, compared to other activities such as making personal calls, texts or emails, buy generic Retin-A, Retin-A dose, let alone working straight through with no rest at all....Because Web-surfing can aid productivity, the researchers caution employers against over-restricting workers' Web access, herbal Retin-A. Ordering Retin-A online, They recommend that managers allow time for limited personal Web browsing "since it has a salubrious impact on employees' productivity," while limiting access to personal emails.

It has happened to me many times that I am stuck on a problem and just come up with a solution, buy Retin-A without prescription. Buy Retin-A online no prescription, Then I spend a few minutes "wasting time" on some website and the answer comes to me. Nice to see it substantiated in a study, no prescription Retin-A online. Retin-A long term. Online Retin-A without a prescription. Retin-A alternatives. Retin-A forum. Where can i order Retin-A without prescription. Order Retin-A no prescription. Retin-A no rx. What is Retin-A. Retin-A samples. Retin-A dangers. Buy no prescription Retin-A online. Retin-A description. Retin-A from mexico. Retin-A wiki. Buy Retin-A without a prescription. Buying Retin-A online over the counter. Where can i cheapest Retin-A online. Taking Retin-A. Retin-A no prescription. Retin-A overnight. Order Retin-A online c.o.d. Retin-A results. Fast shipping Retin-A. Is Retin-A safe. Retin-A for sale. Retin-A canada, mexico, india. Buy Retin-A from canada. Where can i buy Retin-A online. Retin-A steet value.

Similar posts: Buy Lumigan Without Prescription. Buy Temovate Cream Without Prescription. Hydrochlorothiazide For Sale. Buy Diclofenac Without Prescription. Flexeril For Sale. Ultram alternatives. Where can i buy cheapest Levaquin online. Macrobid photos. Seroquel over the counter. Japan, craiglist, ebay, overseas, paypal.
Trackbacks from: Buy Retin-A Without Prescription. Buy Retin-A Without Prescription. Buy Retin-A Without Prescription. Buy Retin-A Without Prescription. Buy Retin-A Without Prescription. Japan, craiglist, ebay, overseas, paypal. Low dose Retin-A. Japan, craiglist, ebay, overseas, paypal. Buy cheap Retin-A. Retin-A wiki.