-
The other night I had the opportunity to head down to Columiba SC to speak at their Enterprise Guild about Web API. First I would like to thank everyone who showed up, I had a great time and I hope everyone found the information useful. Below is the content from the session: Slides IISHosted Self Host...
-
When working on a demo application recently I was trying to get an ajax call to hit one of my Web API routes and I was immediately hit with the following exception. XMLHttpRequest cannot load http://localhost:33884/api/ToDo/ . Origin http://localhost:3462 is not allowed by Access-Control-Allow-Orig Of...
-
Today I was trying to publish a Asp.net 4.5 site to our server and I received the following error; The Application pool that you are trying to use has the ‘managedRuntimeVersion’ property set to v4.0. This application requires ‘v4.5’ I thought this was odd so I went to change the App pool, only to see...
-
***** If there is any type of built in MVC support for helping find these issues please let me know ***** Ok, this may be common sense to everyone else on the net and if so… Oh Well. Tonight I was working on the MVC3 rewrite of the Dimecasts.net website and after a bit of refactoring my search feature...
-
As I keep doing this on MVC projects, thought I may as well blog it, so the next time I need it I can find it myself :) To keep ASP.NET MVC controllers clean and organised, I find it much easier to split them so they handle only a single action each. This helps significantly with maintaining some semblance...
-
I needed to include a url in a confirmation email from my asp.net app. I am not sure whether it will be deployed to a virtual directory or its own site. Just getting the Authority from the Request will yield no virtual directory, so here’s what i came up with: const string action = " Login/Confirm...
-
This is a really quick post, mostly for myself so the next time I have this issue I can find the answer (yes, I often search my blog before google). The error “Cannot use a leading .. to exit above the top directory” can be thrown by ASP.NET when you use relative paths incorrectly. If you generate...
-
Although I mentioned briefly in the past some of the new features ASP.NET MVC features ReSharper 5 supports, I thought it would be a good idea to sum up the main ones in a single post and go into a little bit more detail on them. ASP.NET ReSharper ‘s support for ASP.NET is not restricted only to...
-
I love ASP.NET User Controls , aka “ascx” files. These little guys are great for reusable content and dividing up the components of a website. The little brother of the more powerful Custom Server Control , they have some limitations, but I’ve found they are often sold short. Once falsehood...
-
After running into a lot of testing problems with my current architecture in ASP.NET, I decided that it was time to look into an IoC Framework. I have heard the marvels of how it makes code so much more isolated and clean (SOLID), but I couldn’t see my code ever getting to this point. Because...
-
I’ve been playing around with the view engine nhaml and asp.net mvc. At the same time, I’m playing around with some architectural ideas in hope to benefit future projects. I’m not doing any fancy yet, but I thought that it might be interesting to show you a couple of things to see what you think. Bear...
-
I’ve just came across a question what to do if the url I wants to redirect to is invalid (server is down etc.). Obviously the redirect will fail but that is exactly what I would like to avoid. The solution is dead simple and can look like that: 1: protected void Page_Load( object sender, EventArgs e...
-
Codai's IT Samurai School is open for enrollment. It's Flash, so it'll take a few moments to download...but I hope you'll agree it's worth the wait... http://www.itsamuraischool.com A few fun facts about the website and the school itself: Born our of a short conversation at a BBQ...
Posted to
Billy McCafferty
by
Billy McCafferty
on
05-18-2009
Filed under:
Filed under: Architecture, .NET, Software Development, Quality Assurance, ASP.NET, SQL Server, Project Management, Patterns, Test-Driven Development, Agile Development, MVC.NET, S#arp Architecture, Tips & Tricks, DDD
-
Have you ever created a new email message with the main objective being to send someone an attachment and then forget to attach said attachment? Apparently I did something similar to that in my last post. At the time of the post, I couldn't get the attach file method to work so I intended to add...
-
For all the debate regarding if Captcha's are a good thing or a bad thing one thing is certain (in my book). If you do not have some way to stop spam-bots your site will become overridden with junk in a hurry. In an effort to reduce the amount of spam comments I am getting over at Dimecasts.net I...