WCF ServiceHost Custom Config from AppSettings

 hi All the code snippet below would create a simple service host loaded from a normal app.config instead of having to understand the complex WCF service configuration this is how we would initiate the servicehost.. MyFramework.ServiceModel.WCFService<IHelloWorld, HelloWorldImpl> sh = new WCFService<IHelloWorld, HelloWorldImpl>();  this is how the Servicehost override would look like .. using System; using System.Collections.Generic;…

0

Override Default Xml Serialization

This is some hidden fact about xml serializers in .Net.  There is an option is to use a special pattern to create a Boolean field recognized by the XmlSerializer, and to apply the XmlIgnoreAttribute to the field. The pattern is created in the form of propertyNameSpecified. For example, if there is a field named “MyFirstName”…

0

WCF .NET 4.0 RoadMap

  .NET 4.0 brings several improvements in the areas of WCF and WF, including improved REST capabilities, a new workflow model, seamless integration between WF and WCF, and a new visual designer. It also provides the ability to author completely declarative (XAML-based) workflow services that can be more easily deployed, hosted, and managed   WCF…

0

Find all references, go to definition do not work across VB/C# projects in same solution

While using Visual Studio today I noticed an anomaly. When I bring up a file in VS2008 Solution Explorer AuditEventPublisher.vb in MyVbProject.vbproj Scroll down to the Publish method, right click and select “find all references”, Visual Studio does not report on the instances in which the method is used in the namespace MyCSharpProject.csproj. MyCSharpProject has a…

2

Find all references, go to definition do not work across VB/C# projects in same sln

While using Visual Studio today I noticed an anomaly. When I bring up a file in VS2008 Solution Explorer AuditEventPublisher.vb in MyVbProject.vbproj Scroll down to the Publish method, right click and select “find all references”, Visual Studio does not report on the instances in which the method is used in the namespace MyCSharpProject.csproj. MyCSharpProject has a…

0

Linq Select Distinct Records based on a field or Property

Have a look at  the sample below, Is there a simpler way of achieving this ?    I needed the results 1 vp 2 x 3 y   Rest should be ignored public class customer         {             public int id;             public string name;                 public static IEnumerable<customer> getDistinct()             {                …

0

asp.net 3.5 checkboxlist AddAttributesToRender Not called in Override

I recently came across this issue where in if we override the AddAttributesToRender method in our custom CheckBoxlist. It never gets called at all. Instead we had to use PreRender or RenderItem refer http://www.dotnetmonster.com/Uwe/Forum.aspx/asp-net-controls-building/3261/checkboxlist-AddAttributesToRender Is any one aware of a Msdn link confirming the same.

0

VSTS Tester Edition : Webtest with Code Coverage Error :No connection could be made because the target machine actively refused it 127.0.0.1:80

VSTS Tester Edition 2008 : When i ran a Webtest with Code Coverage I got this Error :No connection could be made because the target machine actively refused it 127.0.0.1:80. I found that IIS was stopped. Started It. Then I found that my Web.config had a additional <location> tag, after bringing it back to the previous state…

0

Get Public Key Token from Snk File using Msbuild

I have written a small msbuild script which can be used to get the public key and the public key token from the .snk file. This attachment needs to be executed from the visual studio command prompt . Update the WorkingDir and SnkFilePath as needed, after downloading  the attachment. Run it as msbuild <file name>. the output…

1

VSTS Tester Edition 2008, Code Coverage for WebTest works : do this

Many of us try to get code coverage using webtests, we configure for code coverage etc but end of the day we get Empty code coverage data generated. the Answer is just to follow this process…  One should be able to get code coverage from web tests if you have the website code. But we have to have the website and your test…

1