.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Enable Tracing on a WCF DataService in .NET4

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :WCF
Is it possible to enable tracing on a WCF DataService<T> in .NET4, in order to see how entities are requested to the server and returned to the client. I try to used to following config but I cannot see entities payload with the Trace Viewer. The "Message" tab is always empty. Maybe it's normal. From now, I've always used WCF with the SOAP/WSDSL approach... Could you help me ?   <system.diagnostics>     <sources>       <source name="System.ServiceModel.MessageLogging" switchValue="Verbose, ActivityTracing" >         <listeners>           <add name="ServiceModelTraceListener"/>         </listeners>       </source>       <source name="System.ServiceModel" switchValue="Verbose,ActivityTracing"                >         <listeners>           <add name="ServiceModelTraceListener"/>         </listeners>       </source>

View Complete Post

More Related Resource Links

4 simple steps to enable tracing in WCF

Tracing mechanism in Windows Communication Foundation is based on the classes that resides in System.Diagnostic namespace.Important classes are Trace, TraceSource and TraceListener. For better understanding we will follow step by step approach in this WCF Tutorial.

How Do I Enable Inline GridView Editing?

Now that you have created a site with Edit and Details views, how do you enable inline editing in a GridView control? This video shows you how, and also touches on routing.

New Language features in .NET4.0

The site explains the new features and enhancement to VB.NET and C# in .NET framework 4.0. The new enhancements are described in detail with examples and code snippets. One can easily understand the new features from this site. This is a must visit site for every .NET professional.

Gridview Enable Selection Problem



I have a gridview with Enable selection and Enable Paging equals to TRUE.

I also set the PageSize of my gridview to 4 so that I only displays 4 rows per page.

The problem is when I click the pager in the bottom of my gridview, my gridview is disappearing and no records appear.

Here is code behind of my gridview:

If e.Row.RowType = DataControlRowType.DataRow Then
                e.Row.Attributes("style") = "cursor:pointer"

                e.Row.Cells(2).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(3).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(4).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(5).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(6).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))

ReportViewer :: Failed to enable constraints. But my statement is valid!!

  • A
  • n error has occurred during report processing.
      • Exception has been thrown by the target of an invocation.
        • Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

    Why do I keep getting this error, even when not using any data on the report. When I run the query in SQL server I get a resultset. However when I try to render the report I get this error.


    Cloud Diagnostics: Take Control of Logging and Tracing in Windows Azure


    It's difficult to troubleshoot any application without a trail of clues to follow, and cloud apps are no different. We look at how logging and tracing are enabled for Windows Azure, and how you can use Windows PowerShell to manage diagnostics for a running service.

    Mike Kelly

    MSDN Magazine June 2010

    Event Tracing For Windows: Core Instrumentation Events in Windows 7, Part 2


    In Part 2, the authors cover core OS Event Tracing for Windows (ETW) events as well as present simple scripts to demonstrate a few basic accounting techniques on some of the OS events introduced.

    Alex Bendetov, Insung Park

    MSDN Magazine October 2009

    Event Tracing for Windows: Core Instrumentation Events in Windows 7


    In the first article of a two-part series, the authors present a high-level overview of the ETW technology and core OS instrumentation.

    Alex Bendetov, Insung Park

    MSDN Magazine September 2009

    Event Tracing: Improve Debugging And Performance Tuning With ETW


    Event Tracing for Windows (ETW) provides general-purpose, high-speed tracing of events raised by both user-mode applications and kernel-mode device drivers. Learn how ETW can improve your development and debugging work.

    Dr. Insung Park and Ricky Buch

    MSDN Magazine April 2007

    Locale Hero: Enable Global Apps With Locale Builder And Windows Vista


    Everything you need to know about locales in Windows Vista.

    Kieran Snyder and Shawn Steele

    MSDN Magazine December 2006

    Cutting Edge: A Provider-Based Service for ASP.NET Tracing


    When it comes to catching programming errors, the debugger is a developer's best friend. ASP. NET tracing, however, is a nice complement to the debugger and shouldn't be overlooked. It enables your ASP.

    Dino Esposito

    MSDN Magazine June 2006

    Agile Development: Extend Team Foundation Server To Enable Continuous Integration


    How does Visual Studio 2005 Team System and Team Foundation Server facilitate the process of agile development and continuous integration? Here Ben Waldron explains it all.

    Ben Waldron

    MSDN Magazine March 2006

    Bugslayer: Unhandled Exceptions and Tracing in the .NET Framework 2.0


    By now, you've certainly heard about the big changes coming in Visual Studio® 2005, but when it's time to move your code over it will be the small things that trip you up. In this column, I want to cover two of the many excellent changes that you could easily overlook as you make the move to the new runtime and development tools.

    John Robbins

    MSDN Magazine July 2005

    Cutting Edge: Design Smarter Tracing for ASP.NET Pages


    Tracing is important to the success of your ASP. NET applications. When tracing is enabled for an ASP. NET page, a large chunk of runtime information is appended to the page's output for your perusal.

    Dino Esposito

    MSDN Magazine September 2004

    SENS: System Event Notification Services and WMI Enable Flexible, Efficient Mobile Network Computing


    Networked applications must deal with a host of connection problems ranging from timeouts to congestion to unavailability. If these applications can check the current connection status and, when disconnected, cache transmissions, they become more efficient. Fortunately, both the System Event Notification System (SENS) and Windows Management Instrumentation (WMI) can send notifications to keep applications informed of network status. In this article, the author explains the use of several SENS interfaces, including ISensNetwork and ISensLogon, which trigger events for connects/disconnects and logons/logoffs, respectively. The author then shows how you can subscribe to each of these events, and follows with a discussion of when you might use WMI events instead.

    Aspi Havewala

    MSDN Magazine August 2002

    ASP.NET: Selectively Enable Form Validation When Using ASP.NET Web Controls


    Sometimes the extra controls that come with Visual Studio .NET can be a bit inflexible or they just don't provide enough functionality or flexibility for all situations. The ASP.NET form validation controls, while powerful and easy to use, require that the entire page be valid before it's submitted back to the server. Through the use of the new object-oriented features of Visual Basic .NET, it is possible to extend their functionality to overcome this limitation. This article tells you how and helps you decide when it's a good idea to keep validation on the client and when you'd be better off disabling it.

    James M. Venglarik II

    MSDN Magazine April 2002

    SQL and Outlook: Enable Database Access and Updates Through Exchange and Any E-mail Client


    Using Microsoft technologies, you can insert, edit, query, and delete database entries using any e-mail client such as Hotmail, Outlook, Yahoo, or even WAP phone. While e-mail is certainly a powerful and widely used tool, it is usually not integrated with an application for performing any tasks other than sending reminders. The application scenario described here, an e-mail-based SQL update program, uses a simple data model; however, this solution will apply to any data model that you are working with. It will also eliminate the need for complex n-tier Internet applications and serves as a low maintenance solution for providing data access.

    Alok Mehta and Daniel Williams

    MSDN Magazine January 2002

    ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
    Sql Server  SharePoint  Silverlight  Others  All   

    Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend