Some of you may know that windows provides by default Event Trace Session called “ EventLog-Microsoft-Windows-Application Server-Applications-Analytic ”. session. This session can be enabled by enabling of Analytic-Event log: Assuming that your service has following diagnostic configuration and...

While debugging you WCF-Service or ASP.NET application within UnitTest you may get following warning when stepping into the service code. “Attaching to this process can potentially harm your computer…” For example, this can happen when you have the UnitTest which invokes the Service via generate Proxy...

During discovering of the code (method) Pex may find a number of different parameter variations. For each variation of input parameters the program will step through a different execution paths. In the example below one method is shown, which implements three different paths 1, 3 and 4. public string...

When implementing custom rewriter you may get following error: error MSB3073: The command ""C:\Program Files\Microsoft\Contracts\Bin\ccrewrite" /rewrite "/rewriterMethods:SampleApplication,SampleApplication.CustomRewiterMethods" "D:\Tfs\hyperion\DaenetProjects\DiverseTests...

Following mime types should be registered in IIS, when using VSTO and ClickOnce: .application application/x-ms-application .manifest application/x-ms-manifest .deploy application/octet-stream .deploy application/x-ms-vsto

While implementing Custom ServiceCredentials class, you may get following error: Clone() was not implemented properly by 'your type..'. The cloned object was 'System.ServiceModel.Description.ServiceCredentials'. This error indicates invalid or missing implementation of the method CloneCore...

One of important benefits of LINQ is that it enables you to write type-safe queries in VB and C#. Unfortunately there are Business cases cases where you want the flexibility to dynamically construct queries on the fly and damage type safety of Linq. :) Here is one example: Now, what if you use this code...

By using of RijndaelManaged symmetric encryption algorithm you may get following error: " Padding is invalid and cannot be removed." By using of TrippleDES and TrippleDESCryptoServiceProvider you may get following exception: " System.Security.Cryptography.CryptographicException: Bad Data...

For everybody who is interested on internals of Entity Framework (ER) in relation to referential integrity, I would recommend this ADO.NET team article written by elisaj: http://blogs.msdn.com/adonet/pages/how-referential-integrity-works.aspx . Another interesting article, which describes ER performance...

When working with Team System, I was often almost frustrated, because somehow my test or test categories just disappear. To solve the I investigated situation when this happen. The category file can be "destroyed" when doing following: 1. When migrating the application to Team Foundation Server...

In this pos I will show some intersting XLing examples used to query the data in the Visual Studio project file. Samples in this document are based on XML file shown in this post and are all preceeded with following code, which loads the root element from XML file and set the namespace member to default...

While hosting the BPEL type of the workflow in Workflow Foundation you may get following error: "The requested service System.Workflow.ComponentModel.Compiler.ITypeProvider is missing." If you would like to understand why this error accures, you should take a look on this post . If you just...

Assume you are starting the process with the code shown below. Then immediately after the start you would like to perform any operation on the retrieved process instance. In my example I start the process and kill it after 5 seconds. Process proc = new Process (); proc.StartInfo.Arguments = "wf"...

The idea around Service Bus technology seems to become a hot topic soon. Because of this, I will describe in this post how one Service Bus can be build on the top of WCF. If you are familiar with WCF after you read this you should know how the Service Bus could be build. Because this topic is very sophisticated...