#dotnet

How to calculate hash values (message digest) of a file

Published 23rd Mar 2013 // #dotnet #php

How to calculate hash values (message digest) of a file http://www.fileformat.info/tool/hash.htm

Continuous Integration without Visual Studio

Published 6th Nov 2012 // #dotnet

Continuous Integration without Visual Studio When trying to build a project using WCF with TeamCity, I had this error (GetReferenceAssemblyPaths target) -> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(847,9): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to…

Changing Aspnet Version on IIS5 ou 6 with aspnet_regiis

Published 6th Apr 2012 // #dotnet #iis

Changing Aspnet Version on IIS5 ou 6 with aspnet_regiis You may already have had the following message while creating a new virtual directory or trying to change the aspnet version : Changing the Framework version requires a restart of the W3SVC service. Alternatively, you can change the Framework version without restarting the

How to prevent execution timeout with Asp.net application

Published 10th Mar 2012 // #dotnet

How to prevent execution timeout with Asp.net application There is two solutions : Execute your page with Visual Studio (there will never be any timeout). Add this into your web.config (under the system.web tag) : <httpRuntime executionTimeout="300" /> In this case the execution timeout is set to 300 seconds (so 5 minutes).

With IIS 7.5 I had an error about PageHandlerFactory-Integrated and ManagedPipelineHandler

Published 12th Feb 2012 // #dotnet

With IIS 7.5 I had an error about PageHandlerFactory-Integrated and ManagedPipelineHandler The error is : Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list. For an unknown reason, the link between IIS and ASP.net is not correct so you'll have to register the framework into IIS. In my case the

How to debug a NUnit use case with Visual Studio 2010

Published 3rd Dec 2011 // #dotnet #windows

How to debug a NUnit use case with Visual Studio 2010 There was no problem before the switch to VS 2010 and framework 4.0. So after some googling here is the solution : Edit your nunit.exe.config (should be in your Program directory next to nunit.exe) under <configuration> add : <startup> <supportedRuntime version="v4.0.30319"

How to remove accentuated characters from a string with C#

Published 31st Aug 2011 // #dotnet #tips

How to remove accentuated characters from a string with C public string RemoveAccentuatedCharacters(string input) { byte[] aOctets = System.Text.Encoding.GetEncoding(1251).GetBytes(input); return System.Text.Encoding.ASCII.GetString(aOctets); }

Sauvegarder ses photos de famille - Partie 2 : Le transfert

Published 29th Aug 2011 // #dotnet #picasa #python

Sauvegarder ses photos de famille - Partie 2 : Le transfert PicasaWebSync Pour transférer des photos sur Picasa Web Album il est possible d'utiliser l'outil de transfert intégré au site. Pour mon cas cela ne sera pas suffisant car : Je dois retailler les photos pour avoir au max une résolution de 2048x2048 J'ai…

Things to check when an Asp.Net site is not working correctly

Published 6th May 2011 // #dotnet #tips

Things to check when an Asp.Net site is not working correctly TODO Framework Check that your .Net framework are correctly installed Check that your .Net framework are correctly linked with IIS In case of XP : use regiis to relink your framework with IIS In case of IIS6 or newer : don't forget to enable your…

How to start an Asp.Net application with Windows Seven x64 and Oracle 10g 32bits

Published 6th May 2011 // #dotnet #tips

How to start an Asp.Net application with Windows Seven x64 and Oracle 10g 32bits Problem I had a problem with a Windows Seven x64 with Oracle 10g 32Bits. My Asp.Net application didn't start because of Oracle. Full error : System.InvalidOperationException: Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when…