Windows Scripting
  Home arrow Windows Scripting arrow Page 5 - Silverlight 2.0 Application Development wi...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Silverlight 2.0 Application Development with LINQ to SQL and a WCF Service
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 6
    2008-11-12

    Table of Contents:
  • Silverlight 2.0 Application Development with LINQ to SQL and a WCF Service
  • Creating a Visual Studio 2008 solution to work with “LINQ to SQL”, WCF and Silverlight 2.0
  • WCF development
  • Silverlight development
  • Troubleshooting configurations
  • Troubleshooting configurations: continued

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Silverlight 2.0 Application Development with LINQ to SQL and a WCF Service - Troubleshooting configurations


    (Page 5 of 6 )


    The following are the important configurations which you need to remember for troubleshooting errors during execution. All of the following are customized according to the current application (and are different from the default configurations added by Visual Studio).

    “LINQ to SQL” configuration to work with WCF Service:

    • The “Serialization mode” property of “DataContext” should be changed to “Unidirectional” (using "LINQ to SQL Designer”).

    • the “ObjectTrackingEnabled” property of the “DataContext” object (in your programming) must always be set to “false.”

    WCF configurations:

    • Configure the WCF service to the local IIS (with both Integrated Security and Anonymous access options in security) using the IIS snap-in. Make sure that it is configured with ASP.NET 2.0 runtime.

    • Make sure that connection string information is properly included in your web.config.

    • Make sure that the debug is set to true in web.config as shown below:


    <compilation debug="true" strict="false" explicit="true">


    • The ServiceModel configuration needs to be customized according to the following:


    <system.serviceModel>

    <services>

    <service behaviorConfiguration="DemoEmpService.EmpServiceBehavior"

    name="DemoEmpService.EmpService">

    <endpoint address="" binding="basicHttpBinding" contract="DemoEmpService.IEmpService">

    <identity>

    <dns value="localhost" />

    </identity>

    </endpoint>

    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

    </service>

    </services>

    <behaviors>

    <serviceBehaviors>

    <behavior name="DemoEmpService.EmpServiceBehavior">

    <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->

    <serviceMetadata httpGetEnabled="true"/>

    <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->

    <serviceDebug includeExceptionDetailInFaults="true"/>

    </behavior>

    </serviceBehaviors>

    </behaviors>

    </system.serviceModel>



    • The endpoint with “basicHTTPBinding” is very important in the above configuration.

    • It is better to have “includeExceptionDetailInFaults” set to “true” during development (shown above).

    • The “Dns” value should be properly provided (shown above).

    Troubleshooting configurations are continued in the next section.


    More Windows Scripting Articles
    More By Jagadish Chaterjee


       · Thanks for a great article! Nice explanation!One issue I had was after I added...
     

    WINDOWS SCRIPTING ARTICLES

    - More Windows Scripting Workarounds from Nilpo
    - Overloading Methods and More in VBScript
    - Improving MFC for Windows Vista
    - Regular Expressions in VBScript
    - Working with Dates in WMI
    - Completing Calendars with VBScript Date Func...
    - Building Calendars with VBScript Date Functi...
    - Working With Dates and Times in VBScript
    - Designing WCF DataContract Classes Using the...
    - Understanding Dates and Times in VBScript
    - Working With Arrays in VBScript
    - Compressed Folders in WSH
    - Using .NET Interops in VBScript
    - Nilpo`s Scripting Secrets, Vol I
    - Database operations using Silverlight 2.0 WC...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek