Browsing All Posts filed under ».NET«

Why change the Web Service Namespace from tempuri.org

November 4, 2011

0

When you create a Web Service the default Namespace is   [WebService(Namespace = "http://tempuri.org/")] I was wondering firstly should I change it and secondly what should I change it to.  The default Namespace doesn’t really give you much of an indication or example. The short answer is all Web Services need a unique namespace to distinguish… [Read more…]

removing newline and other special characters from a string

October 28, 2011

0

If you are a regular follower of my blog you will have no doubt worked out I am doing some development over the last week and have been wrestling with various problems. Today I found one of my columns had special characters such as Newline, carrage return etc and I wanted to remove them.  In… [Read more…]

How to convert an SQL statement into a XML file

October 27, 2011

0

Today I found some functionality which I thought was amazing and will save me loads of time creating some sample XML files to test my webservice with. I had some sample data in database which I wanted to convert into an XML file. My original idea was to use excel to concatenate bits of it… [Read more…]

Visual Studio Default Code Snippets

October 27, 2011

0

Today I was creating a class with lots of variables and I was originally using the refactor method to generate getters and setters.  In the end I got bored and thought there must be a quicker way. I knew about code snippets but hadn’t really used them To use the code snippet for creating a… [Read more…]

Visual Studio Keyboard shortcuts poster

October 27, 2011

0

I was trying to figure out some shortcuts in Visual Studio 2010 and then I came across this page and then I find out the visual studio team create a very useful poster, hazaar you can download the poster here, in fact they have posters for all their languages.  They are A4 in size and… [Read more…]

How to add a Global.asax file in Visual Studio 2010

October 24, 2011

0

A simple problem I came up agaisn’t today, how to create a Global.asax file. This global.asax file is an optional file which handles application level events. I wanted one to set up some variables for my web service (CRM 4) and I wasn’t sure how to add one and I finally worked it out. Go… [Read more…]

Could not load file or assembly or one of its dependencies. Access is denied.

May 24, 2011

2

I was getting an error today complaining about loading one of the assemblies in my web service. I spent hours adding all sorts of security privildges to the folders in windows and in IIS. initially I had the dll name in my google search, this lead me down completely the wrong path, finally I typed… [Read more…]

ASP.NET Web Forms Free Introduction video

May 18, 2011

0

A fellow developer was sharing the wealth this week and found that Microsoft have put up a load of new free videos from Pluralsight for ASP.NET Web Forms.  You can go to this http://www.asp.net/web-forms Below is a breakdown of the 9 video modules in the ASP.NET Web Forms series: Introduction to ASP.NET (64 minutes) ASP.NET… [Read more…]

Gotcha – Visual Studio must be run as Administrator in windows 7

May 12, 2011

3

This has caught me out a few times.  The first time you experience the problem you will notice that the application which was working fine before suddenly is starting to throw unusual errors when you try to run/debug it. Windows 7 has an annoying feature where you have to specify applications to run as Administrator.… [Read more…]

Pad a number with zeros

April 7, 2011

1

I’m writing an autocounter in CRM 2011 because for some reason they haven’t included one!! I asked someone who did a free one in CRM 4 if they were upgrading it to CRM 2011 and he said I could have it for $500.   I read this article http://msdn.microsoft.com/en-us/library/dd260048.aspx   it gives you loads of… [Read more…]