This Forum is ARCHIVE only
For LightSwitch questions,
please use the official forums at:

http://social.msdn.microsoft.com/forums/en-US/lightswitch/threads


Reading Ria Services with Visual Studio 2012 RTM
Last Post 13 Dec 2012 01:24 AM by admin. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
jwanteUser is Offline
New Member
New Member
Send Private Message
Posts:4
Avatar

--
19 Aug 2012 08:28 PM
    Any one had any look reading a RIA Service in a VS 2012 Rtm LightSwitch project?

    I followed the steps described here: http://lightswitchhelpwebsite.com/B...aspx 

    The tutorial worked perfectly under VS 2012 RC. Under VS 2012 Rtm I can create the RIA Service. But when I want to add it as a data source with the Service classes are not shown:


    Michael WashingtonUser is Offline
    Send Private Message
    Posts:1313
    Avatar

    --
    19 Aug 2012 09:36 PM
    Make sure your WCF RIA Service is a .NET 4.0 project not a .NET 4.5 project. You can open Properties in your WCF RIA project and switch it from .NET 4.5 to .NET 4.0. Compile it again and then it will work.
    -----------
    Michael Washington
    http://LightSwitchHelpWebsite.com
    jwanteUser is Offline
    New Member
    New Member
    Send Private Message
    Posts:4
    Avatar

    --
    19 Aug 2012 11:26 PM
    Thx that fixed it.
    heckj516User is Offline
    New Member
    New Member
    Send Private Message
    Posts:2
    Avatar

    --
    12 Dec 2012 11:31 PM
    I am experiencing what appears to be the same, or a very similar, problem.  I reported my problem on another RIA services-related post, but discovered this more relevant post today after more "Googling".

    Summary:

    I created a domain service class project which uses EF (ADO.Net) to connect to a table in a SQL Server 2008 R2 database (I followed Michael Washington's tutorial).   After discovering and following the instructions given at http://support.microsoft.com/kb/2745294, I was able to successfully build this project.  

    The latest problem is I am unable to add this RIA service as a data source for a very simple Lightswitch app I built to test the chain of technologies (EF ADO.NET + WCF RIA Services) which I plan to use to connect an existing LS app to the result sets generated by several complex SQL stored procedures.  

    When attempting to add the RIA service as a data source for my simple Lightswitch app, the RIA service I created is clearly visible in the Projects Tab of the "Add Reference" form.  When I select the desired RIA service and depress the "OK" button the selected RIA service does not display in the "Available WCF Ria Service Classes" form as expected. I waited for 15 - 30 minutes for this form to populate.

    I subsequently changed the .NET Framework from 4.5 to 4.0 for the WCF RIA service class as suggested by Michael Washington in his previous response to this post.  I rebuilt my solution with no warnings or errors, but I still have the same problem.

    I am surmise there is some sort of system component incompatibility which is why I am providing the following system configuration info.

    My computing platform is:

    ==================================================================

    Visual Studio 2012
    Microsoft Visual Studio Premium 2012
    Version 11.0.51106.01 Update 1
    Microsoft .NET Framework
    Version 4.5.50709

    Installed Version: Premium

    LightSwitch for Visual Studio 2012   04941-004-0043007-02173
    Microsoft LightSwitch for Visual Studio 2012

    Microsoft LightSwitch HTML Client Preview 2 for Visual Studio 2012   04941-004-0043007-02173
    Microsoft LightSwitch for Visual Studio 2012

    Microsoft SharePoint Developer Tools for Visual Studio 2012 - Preview - ENU    04941-004-0043007-02173
    Microsoft SharePoint Developer Tools for Visual Studio 2012 - Preview - ENU 2012

    Microsoft Visual Studio Tools for Applications 2012   04941-004-0043007-02173
    Microsoft Visual Studio Tools for Applications 2012

    Office Developer Tools   04941-004-0043007-02173
    Microsoft Office Developer Tools

    Team Explorer for Visual Studio 2012   04941-004-0043007-02173
    Microsoft Team Explorer for Visual Studio 2012

    Visual Basic 2012   04941-004-0043007-02173
    Microsoft Visual Basic 2012

    Visual C# 2012   04941-004-0043007-02173
    Microsoft Visual C# 2012

    Visual C++ 2012   04941-004-0043007-02173
    Microsoft Visual C++ 2012

    Visual F# 2012   04941-004-0043007-02173
    Microsoft Visual F# 2012

    Visual Studio 2012 Code Analysis Spell Checker   04941-004-0043007-02173
    Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

    Windows Phone SDK 8.0 - ENU   04941-004-0043007-02173
    Windows Phone SDK 8.0 - ENU

    Azure Activities   1.0
    This package contains the necessary Visual Studio integration components for Workflow Manager.

    Color Theme Designer   1.0
    Designer for creating new color themes

    LightSwitch Extensibility Toolkit for VS11   2.0
    The toolkit provides project types for creating new LightSwitch Extension Libraries and includes templates for creating the following LightSwitch extensions:   LightSwitch Business Type, LightSwitch Control, LightSwitch Data Source, LightSwitch Screen Template, LightSwitch Shell and LightSwitch Theme.

    Microsoft Advertising SDK for Windows Phone   6.2.923.0
    Microsoft Advertising SDK for Windows Phone
    Build 6.2.923.0

    Microsoft XNA Game Studio   4.0
    Microsoft XNA Game Studio 4.0
    Build 4.0.40906.0

    NuGet Package Manager   2.1.31002.9028
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    PreEmptive Analytics Visualizer   1.0
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

    SQL Server Data Tools   11.1.21101.1
    Microsoft SQL Server Data Tools

    Web Developer Tools   1.1.31017.0
    Microsoft Web Developer Tools contains the following components:
    Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.
    Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.
    Web Form Templates: Includes the default templates for Web Form Applications.
    Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.

    Windows Azure Tools   October 2012
    Windows Azure Tools for Microsoft Visual Studio 2012 - October 2012 v1.8.51019.1603

    Windows Azure Tools   June 2012 SP1
    Windows Azure Tools for Microsoft Visual Studio 2012 - June 2012 SP1 v1.7.50716.1601
    ===============================================================

    SQL Server 2008R2

    Microsoft SQL Server Management Studio 10.50.2550.0
    Microsoft Analysis Services Client Tools 10.50.2500.0
    Microsoft Data Access Components (MDAC) 6.1.7601.17514
    Microsoft MSXML 3.0 4.0 5.0 6.0 
    Microsoft Internet Explorer 9.0.8112.16421
    Microsoft .NET Framework 2.0.50727.5466
    Operating System 6.1.7601
    ===============================================================

    Server System Info
    OS Name Microsoft Windows Server 2008 R2 Standard
    Version 6.1.7601 Service Pack 1 Build 7601
    Other OS Description Not Available
    OS Manufacturer Microsoft Corporation
    System Name R200-1
    System Manufacturer Dell Inc.
    System Model PowerEdge R200
    System Type x64-based PC
    Processor Intel(R) Core(TM)2 Duo CPU     E7300  @ 2.66GHz, 2667 Mhz, 2 Core(s), 2 Logical Processor(s)
    BIOS Version/Date Dell Inc. 1.3.1, 3/5/2008
    SMBIOS Version 2.5
    Windows Directory C:\Windows
    System Directory C:\Windows\system32
    Boot Device \Device\HarddiskVolume2
    Locale United States
    Hardware Abstraction Layer Version = "6.1.7601.17514"
    User Name Not Available
    Time Zone Pacific Standard Time
    Installed Physical Memory (RAM) 4.00 GB
    Total Physical Memory 4.00 GB
    Available Physical Memory 1.79 GB
    Total Virtual Memory 7.99 GB
    Available Virtual Memory 5.45 GB
    Page File Space 4.00 GB
    Page File C:\pagefile.sys
    =================================================================

    Any other suggestions/solutions?


    Michael WashingtonUser is Offline
    Send Private Message
    Posts:1313
    Avatar

    --
    13 Dec 2012 01:24 AM
    I would download one of the WCF RIA examples on tis site and try to add it's WCF RIA project to your LigtSwitch project. If it works then compare it to your project.
    -----------
    Michael Washington
    http://LightSwitchHelpWebsite.com
    You are not authorized to post a reply.


    Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation