Click here to Skip to main content
12,762,014 members (42,892 online)

Visual Studio 2015 & .NET 4.6

 
GeneralRe: Windows XP & Framework 4.5 Pin
Richard Deeming29-Oct-12 3:13
memberRichard Deeming29-Oct-12 3:13 
GeneralRe: Windows XP & Framework 4.5 Pin
Clifford Nelson29-Oct-12 6:16
memberClifford Nelson29-Oct-12 6:16 
GeneralRe: Windows XP & Framework 4.5 Pin
pip01021-Nov-12 23:17
memberpip01021-Nov-12 23:17 
GeneralRe: Windows XP & Framework 4.5 Pin
Clifford Nelson22-Nov-12 10:49
memberClifford Nelson22-Nov-12 10:49 
GeneralRe: Windows XP & Framework 4.5 Pin
Pete O'Hanlon22-Nov-12 11:38
protectorPete O'Hanlon22-Nov-12 11:38 
GeneralRe: Windows XP & Framework 4.5 Pin
Clifford Nelson22-Nov-12 12:06
memberClifford Nelson22-Nov-12 12:06 
GeneralRe: Windows XP & Framework 4.5 Pin
Expert Coming2-Dec-12 12:59
memberExpert Coming2-Dec-12 12:59 
QuestionUnable to consume WCF Pin
msameh97625-Oct-12 15:08
membermsameh97625-Oct-12 15:08 
Hi,
I have strange behavior in WCF with Entity framework 5 and dotnet framework 5.
I created a database of two tables and relationship 1 to many between them and added them to the entity framework,

https://dl.dropbox.com/u/26814346/sc.png

then I wrote a code in a (Silverlight enabled WCF) to read all the data in cDetails table

[ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class Candidates_Service
    {
        [OperationContract]
        public List<cDetail   > Get_Candidates()
        {

            ttEntities1 db = new ttEntities1();
            return db.cDetails.ToList();
        }

        // Add more operations here and mark them with [OperationContract]
    }



when I tried to consume this service in Silverlight client I got the error (the remote server returned an error Not Found),
I tried to consume it in widows application client and in windows 8 client I got another error

An error occurred while receiving the HTTP response to http://localhost:1552/Candidates_Service.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.

the strange thing is when I remove the parent table and work without relations everything work as expected.
and the same code is working when I tried to use it to bind data directly on a web form (without using the service).
also after a lot of google search I found some articles speaking that I have to make the LasyLoadingEnabled = false
and another said it is the data size Issue so a made the LasyLoadingEnabled as false and changed the size to 2GB (there are only 4 records in the table) and the result was the same.
AnswerRe: Unable to consume WCF Pin
Nitin Sawant26-Nov-12 1:26
memberNitin Sawant26-Nov-12 1:26 
Questiondevenv Pin
Meysam Tolouee9-Oct-12 9:47
memberMeysam Tolouee9-Oct-12 9:47 
AnswerRe: devenv Pin
ryanb319-Oct-12 11:02
memberryanb319-Oct-12 11:02 
GeneralRe: devenv Pin
DaveAuld9-Oct-12 11:23
mentorDaveAuld9-Oct-12 11:23 
AnswerRe: devenv Pin
DaveAuld9-Oct-12 11:14
mentorDaveAuld9-Oct-12 11:14 
GeneralRe: devenv Pin
Meysam Tolouee9-Oct-12 11:51
memberMeysam Tolouee9-Oct-12 11:51 
Questionhow to create an office doc factory c# Pin
ibradleyallen5-Oct-12 21:55
memberibradleyallen5-Oct-12 21:55 
QuestionVisual Studio 2012 Stability for Mission Critical WebApps Pin
ADSCNET4-Oct-12 21:45
memberADSCNET4-Oct-12 21:45 
AnswerRe: Visual Studio 2012 Stability for Mission Critical WebApps Pin
Member 8821727_GhostAnswer17-Oct-12 3:23
memberMember 8821727_GhostAnswer17-Oct-12 3:23 
AnswerRe: Visual Studio 2012 Stability for Mission Critical WebApps Pin
Member 770563517-Nov-12 0:22
memberMember 770563517-Nov-12 0:22 
AnswerRe: Visual Studio 2012 Stability for Mission Critical WebApps Pin
pip01021-Nov-12 23:21
memberpip01021-Nov-12 23:21 
QuestionHow to sell different level of the application in windows 8 Pin
wasimsharp2-Oct-12 7:51
memberwasimsharp2-Oct-12 7:51 
AnswerRe: How to sell different level of the application in windows 8 Pin
FrankLavigne6-Jan-13 17:55
memberFrankLavigne6-Jan-13 17:55 
QuestionTeam Foundation Server Pin
Majid Shahabfar27-Sep-12 7:42
memberMajid Shahabfar27-Sep-12 7:42 
AnswerRe: Team Foundation Server Pin
Sandeep Mewara4-Oct-12 21:57
mvpSandeep Mewara4-Oct-12 21:57 
GeneralRe: Team Foundation Server Pin
Majid Shahabfar19-Oct-12 5:51
memberMajid Shahabfar19-Oct-12 5:51 
AnswerRe: Team Foundation Server Pin
Sandeep Mewara19-Oct-12 6:57
mvpSandeep Mewara19-Oct-12 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 24 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid