background preloader

.net

Facebook Twitter

Dan Fernandez's Blog : Visual Studio 2005 Express Announcem. Dear Visual Studio Express community, We are incredibly excited to announce that effective April 19th, 2006, all Visual Studio 2005 Express Editions including Visual Basic, Visual C#, Visual J#, Visual C++, and Visual Web Developer Express will be free permanently! Prior to this pricing announcement, Visual Studio Express Editions were promotionally discounted to be free for one year, starting on November 7th, 2005. With this announcement, the promotional discount for Visual Studio Express is now permanent and Express will continue to be free. The key reason for the pricing change was you. You’ve helped make Visual Studio Express a runaway hit, and we’re proud to announce that in the five months since its launch, Express has been downloaded over 5 million times!

In addition to announcing that Express is free, we also have some very cool new content with something for everyone including: Beta: Skype Wrapper for .NET Starter Kit Annotated Travel Log Starter Kit Teacher Starter Kit. CodeSmith Tools - The best .NET template based source code gener. FishEye: browsing nhibernate/ Oauth-dot-net - Google Code. OAuth.net is a .net library which provides full OAuth consumer and provider support.

The library facilitates secure API authentication in a simple and standard method for desktop and web applications. OAuth allows user to grant and deny one application access to the data stored in another application. It forms one of the foundation blocks of the data portability concept, which has the aim of allowing users to easily move their personal data around the web. More information at lab.madgex.com Download Source code OAuth.net-0.8.1.1-source.zip 4.6 MB Release History (ChangeLog) Release Version 0.8.1.1 - 18th June 2010 Release Version 0.7.1.0 - 5th August 2009 Release Version 0.7.0.0 - 18th June 2009 Release Version 0.6.0.0 - 9th April 2009 Release Version 0.5.2 - 12 March 2009 XRDS-Simple.net Released Version 0.6 - 12th January 2008 Released Version 0.5.1 - 26th September 2008 Released Version 0.5 - 5th September 2008 Contact: oauth-dot-net@madgex.com.

Wicked Code: Asynchronous Pages in ASP.NET 2.0 -- MSDN Magazine, Dynamically creating Applications using System.CodeDom. The article provides an insight on how to create and compile assemblies dynamically. Introduction The System.CodeDom namespace in .net allows the users to dynamically compile and create assemblies. This concept is used by ASP.NET internally. The article provides an insight on how to create assemblies dynamically. The following are the list of classes, which would be used to create the assembly: CodeNamespace CodeTypeDeclaration CodeCompileUnit CodeEntryPointMethod CodeMemberField CodeMemberProperty CodeMemberMethod CodeParameterDeclarationExpression CodeCompileUnit CompilerParameters CodeSnippetExpression CodeExpressionStatement Step 1: Add the following namespace declarations, using System;using System.CodeDom; using System.CodeDom.Compiler; The System.Codedom namespace contains the classes/types necessary to create assemblies at runtime.

Step 2: Create the following class, public class CCodeGenerator{CodeNamespace mynamespace;CodeTypeDeclaration myclass;CodeCompileUnit myassembly;} Step 3: Logging method name in .NET - The Code Project - .NET. Before .NET, we were always looking for a way to log current method name in a log file for better logging. But, there were no functionalities that could have helped in this, and it was left as an uncompleted job.

But, with .NET, we could easily find out the name of the current method or parent method. This has been accomplished by StackFrame, StackTrace, and MethodBase classes in System.Diagnostics and System.Reflection namespaces. StackFrame provides information about function call on stack call for current process. StackTrace is a collection of StackFrame. MethodBase is an abstract class containing information about current method. Note: When an exception occurs in the method, exception object contains a reference to the StackTrace object that could be used to log the method name. In the sample, MethodBase object would reference to current function on stack call returned by StackFrame object.

Create a new console application: Add namespaces: MethodLogger - Hook into method calls in .NET binaries - The Cod. Introduction I'm sure all of us here would agree that there's no such thing as too much logging - the more the better. However, peppering source code with log statements clutters code, and the repetitive nature of the work results in a lot of copy/paste errors. This article presents a simple tool that works on .NET assemblies to execute arbitrary code at the start and end of each method in the assembly. The most obvious use of such a tool is to modify the binaries to log the starting and ending of execution of the methods, but any code, including control flow altering code, could be run.

Background Having dealt with a series of deadlock problems recently, I wished the log files had information about the start and end of execution of each method. I looked around for libraries to read IL code. Using the tool MethodLogger is a commandline app. MethodLogger can then be used as follows: MethodLogger -input TestApp TestApp MethodExecutionLogger How it works Caveats History.