-
Today I was trying to use our remoting service that we have for our project and out of the blue I received the god awful error: This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel...
-
Today I was trying to retrofit the source code from Stephen Bohlen’s great SOLID Dimecasts on Dependency Inversion (episode will be released on 3/26/2009) in order to have it use StructureMap (in order to better show the DIP concept in the episode Stephen did not show the use of an IoC container). ...
-
If you have ever used NHibernate I am sure you have encounted the error ‘Invalid Index ‘N’ for this SqlParameterCollection with Count=N’ (where N is any number) exception when trying to create your mappings. If you are completely new to NHibernate, as I am I am sure this one has you scratching your head...
-
In my last post I talked about how I needed to eager load my data in order to send it back across the wire. Normally I am not a big fan of creating tests to ensure that I can hit the database, but in this case the act of eager loading needs to be verified and constant. When I set out to create...
-
At work I have a section of code which I need to eager load all my data in order to pass that data back across the wire. I thought I had it all setup correctly, but then I realized that I was not returning back unique results from my query. Imagine I have the following Schema My current need was...
-
As REST services are becoming more and more common the need is arising to be able to retrieve data to them via .Net. Now normally when you want to retrieve data from a web resource you commonly would do so using a web service. And when you use a web service all the ‘plumbing’ is taking care...
-
As Rest services are becoming more and more common the need is arising to be able to post data to them via .net. Now normally when you want to post data to a web resource you normally would do so using a web service. And when you use a web service all the ‘plumbing’ is taking care of for...
-
One exception you may run across while using Fluent Nhibernate (or straight up NHibernate) is System.Data.SqlClient.SqlException: Invalid column name ‘……’. This is normally caused because you did not provide the correct column name when doing your mapping. Lets take a look at the code below which...
-
In an attempt to provide full disclosure I am a complete NOOBIE when it comes to NHibernate. In fact I have only been using it for a few weeks or so. What this means is take everything I say in this post with a grain of salt cause there may be a better, easier way. As I am in the process...
-
In a previous post I talked about how you can setup StructureMap to create and use profiles . In this post I would to show you how you can swap out an instance of an object which is part of the profile with a fake/stub for testing. I ran into this scenario the other day while creating a test and...
-
In a previous post I talked about how you can setup Contextual Binding and Profiles with StructureMap 2.5. However since this post was published, the way you can configure Profiles has changed. Because of this I thought I would post a follow-up on how to do this. I also wanted to give...
-
Part of my job at work is to teach and mentor other developers on our team. Right now I am in the process of teaching two of our developers how to create unit tests (notice I did NOT say integration tests because most anyone can do those). We are also learning how to create our tests by utilizing an...
-
*** There may be a better way to do this with StructureMap, but this is the way I was able to get this to work *** Today I decided I wanted to move all my route mapping for Dimecasts out of the Global.asax file and into each of the various Controllers. I wanted to do this for two reasons. I was starting...
-
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...
-
In all my years of doing .Net I have to say that I finally came across the exception message that takes the cake. Today while trying to do some refactoring on the DimeCasts.net code base I received this exception. Operation could destabilize the runtime I received the error while trying to update some...