lamp

Browse by Tags

Underscore prefix with C#, is it a best practice?
01 March 10 01:52 PM | Frederick.Chapleau | with no comments
I used this since the beginning, thinking that this was a best practice, but without searching a lot. I found this article containing a brief history on this practice... I’ll let you decide if it’s a best practice to you. http://blogs.msdn.com/sourceanalysis...
Filed under:
Get the Unread count of the Inbox of Exchange 2010/2007, using web services
02 February 10 09:28 AM | Frederick.Chapleau | with no comments
I searched a lot and, based on an article from SANDEEP APARAJIT , I was able to query for unread email from my Exchange mailbox inbox, in about 15 min. Thanks!   ServicePointManager.ServerCertificateValidationCallback = delegate(Object obj, X509Certificate...
Filed under:
Using WCF Webservices in .NET 2.0
14 September 09 01:00 PM | Frederick.Chapleau | with no comments
The default behavior of WCF Webservice is the new wsHttpBinding. This is not compatible with .NET 2.0, so to use it you must change the behavior with the basicHttpBinding. The basic one is not secured, so if it’s a critical piece, you must use it with...
Filed under:
This collection already contains an address with scheme http.
12 September 09 12:02 PM | Frederick.Chapleau | with no comments
When deploying a WCF service, this problem can occur This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection. Parameter name: item This is caused by having multiple binding on...
Filed under:
404 Error when deploying a .net 3.0+ SVC File
12 September 09 11:49 AM | Frederick.Chapleau | with no comments
When deploying a .NET WCF Service on IIS 7, on might have a 404 error. This is because the ScriptsMaps are not registered, issuing the following command register them, to that they can be used. c:\Windows\Microsoft.Net\Framework\v3.0\Windows Communication...
Filed under:
The log cannot be rebuilt when the primary file is read-only.
08 July 09 06:27 PM | Frederick.Chapleau | 1 comment(s)
When mounting a SQL Server Express Database, the SQL Server Express engine is trying to rebuild the log files, using the same permissions as the AppPool that is configured for the website. So this account should have access to the underneath file system...
Filed under:
JSON Extension Methods
30 May 09 10:55 PM | Frederick.Chapleau | 1 comment(s)
Just a little sample, modified from the ScottGu… public static class JSONHelper {     public static string ToJSON(this object obj)     {         JavaScriptSerializer serializer = new JavaScriptSerializer...
Filed under:
Running Python 3 extensions on IIS 6
28 May 09 12:19 AM | Frederick.Chapleau | with no comments
Python files can be run, without using Iron Python on IIS. The first step is to install... Python 3. After that you must enable the extension by going to Web Service Extensions and Allowing “All unknown CGI Extensions” Third and last step, is a modified...
Filed under:
"Object of type 'System.EventHandler' cannot be converted to type 'System.EventHandler`1"
11 May 09 02:32 PM | Frederick.Chapleau | with no comments
Ok, that really, really a big issue in the .NET Framework. You cannot use a generic event handler, with a name ending by “changing”, when it is used as a data binding object on a form. Really disappointing that those guy rely on event names. No Comments...
Filed under:
Did you know F# ?
30 April 09 08:47 AM | Frederick.Chapleau | with no comments
I found a great article comparing C# and F#… thanks to Brian McNamara. -f.
Filed under:
Implementing an Extension to Sort ControlCollection in .NET 3.5
24 April 09 11:50 AM | Frederick.Chapleau | 1 comment(s)
public static class SortingExtension {     public static void Sort<T>(this System.Windows.Forms.Control.ControlCollection c) where T : class     {         for(int i=1; i<c.Count;...
Filed under:
The Web 3.0 is coming
26 February 09 09:27 AM | Frederick.Chapleau | 1 comment(s)
As stated in a previous post, the web 1.0 was the first plain version, the second the more dynamic one, with social networks and the famous buzzword "AJAX", and the version 3.0 buzzword is... (drum roll)... Cloud Computing. The concept is simple...
Filed under:
When unit tests are not recognized
07 February 09 04:51 PM | Frederick.Chapleau | with no comments
Yes, you can create unit tests inside a project, without creating another project. But there is a tweak, when VS 2008 create the Unit Test Project, the resulting project have two Project Types that are included in standard project. If you don't modify...
Filed under:
Dundas Chart included in .NET 3.5
09 December 08 01:10 PM | Frederick.Chapleau | with no comments
There was a great new on ScottGu' Blog, that was stating that a new, and free Charting component, based on the Dundas Charting Component, which was bought by Microsoft a few month ago. This is a really great suite of charting component, that is already...
Filed under:
Moving the Viewstate or a SEO technique
09 December 08 12:06 PM | Frederick.Chapleau | with no comments
Viewstate is a core concept of ASP.Net, but it can be a waste of bytes, when we know that some search engines are only indexing the top of the pages. This can be done easily, and Scott Hanselman did a really good test on how to do that better. http:/...
Filed under:
More Posts Next page »