Monday, April 21, 2014

WCF Service with no SVC file and no Endpoint configuration sample

I put this quick example so I have all the configuration settings I need in one simple example

Click here for the link to the code

Friday, April 18, 2014

Visual Studio 2012 stop responding on start-up....possible fix

I don't really know what happened to my Visual Studio 2012 but removing and re-installing did not work. Visual Studio kept not responding when loading up. Finally what seems to have solved it was this simple command line: devenv /ResetSettings. I hope this saves you time...

Saturday, April 12, 2014

How to debug the Seed() method when using EF 6.0

Add this to the Seed() method
  if (System.Diagnostics.Debugger.IsAttached == false)
      System.Diagnostics.Debugger.Launch();
I have tried to use System.Diagnostics.Debugger.Break(), but that crashed visual studio.

NuGet putting the references in a diffrent folder location

I didn't like the default folder Nuget used to put the references. to change the default do the following:

  • Create a nugget.config file under the solution
  • Put the following xml in it
  • Add your nugget packages
<configuration>
  <config>
    <add key="repositoryPath" value="..\Bin\Packages" />
  </config>
  ... 
</configuration>
That's it... you should see your references in a bin\packages folder. (Tested in Visual Studio 2013)

Nuget - changing the default location

just create a file called Nuget.config and put this inside

A Good Database Resource (how to setup your environment for SQL sever and Oracle)

If you want to debug SQL server stored procedure code, or if you want to debug Oracle stored procedures. I found this site to have all the right stuff. Database.ca