Category: Development
-
How to install DotNet 2.0 or 3.5 on Windows 10
Updated on 2015/10/4: Update the screenshots to Windows 10, however, applies to Windows 8/8.1/10 Windows 10 includes the 2.0, 3.5 and 4.5 versions of the .NET Framework. However, only 4.5 is available for immediate use after a clean install. The versions 2.0 and 3.5 of the framework are not installed by default. If you open…
-
When should you use var keyword in C#?
When should you use var keyword in C#? Check out Eric Lippert’s blog article http://blogs.msdn.com/b/ericlippert/archive/2011/04/20/uses-and-misuses-of-implicit-typing.aspx See also http://stackoverflow.com/questions/41479/use-of-var-keyword-in-c-sharp
-
Kentico CMS Installation issues troubleshooting – SQL Server Connection problems
You may encounter problems when entering the database connection details in the first step of database setup:
-
HTTP Error 404.13 – Not Found Error When Upload Big File using WCF
On IIS 7.5, if you upload big file thru WCF service, you might get http 404.13 error from IIS server. HTTP Error 404.13 – Not Found The request filtering module is configured to deny a request that exceeds the request content length. The solution is set a higher value for maxAllowedContentLength in web.config of application…
-
Generate GUID in PERL
It’s very common for developer to generate a GUID in code to guarantee uniqueness. Here is the sample code to generate a GUID in Perl my $guid = `uuidgen.exe`; chomp $guid; Uuuidgen.exe is a tool from DotNet Framework. You can append "-c" option to generate uppercase letters Run uuidgen /? to see the detail usage…
-
MSBUILD Reserved Properties
When you use MSBuild, a handful of properties are available to you out of the box that cannot be modified. These are known as reserved properties. Following table presents all reserved properties in MSBuild 4.
-
IIS 7.5 Error The temp directory in chart handler configuration is not accessible
If you build a web application with Chart control for ASP.NET 4.0 and deploy the site to web server. You might get following error on the live site: The temp directory in chart handler configuration is not accessible To resolve this, first go to web.config and find the ChartImage directory in appsettings. <appSettings> <add key="ChartImageHandler"…
-
Remove dead using statements
Visual Studio has a great feature to easily remove all dead using statements in your code. The steps are pretty straightforward. Right click anywhere from the code Select Organize Using and Select Remove Unused Usings.
-
Could not load file or assembly TraceWrapper, Version=1.0.523.0
There are two versions of the TraceWrapper.dll in SCVMM install CD. One is x86 version and the other is x64 version. When you build your application on top of SCVMM library Microsoft.SystemCenter.VirtualMachineManager, it’s very important to pick up the correct version TraceWrapper.dll. In general, you should copy the 32 bit dll if you are using…
-
CSharp – Get Assembly and File Version
If you want to know the version of currently executing managed assembly, you can use Reflection.Assembly. Here is code snippet which can be used to do get managed assembly version. private string GetVersion() { return Assembly.GetExecutingAssembly().GetName().Version.ToString(); }