Click here to Skip to main content
15,892,289 members
Home / Discussions / WPF
   

WPF

 
QuestionNavigation framework in tabs Pin
tcook81520-Aug-09 2:50
tcook81520-Aug-09 2:50 
AnswerRe: Navigation framework in tabs Pin
Michael Sync29-Aug-09 18:56
Michael Sync29-Aug-09 18:56 
QuestionHow to create a collapsible panel in WPF Pin
Krishna Aditya19-Aug-09 23:45
Krishna Aditya19-Aug-09 23:45 
AnswerRe: How to create a collapsible panel in WPF Pin
Pete O'Hanlon20-Aug-09 0:08
mvePete O'Hanlon20-Aug-09 0:08 
GeneralRe: How to create a collapsible panel in WPF Pin
abetterword29-Dec-10 9:20
abetterword29-Dec-10 9:20 
QuestionUDP & WCF Pin
Mohammad Dayyan19-Aug-09 22:00
Mohammad Dayyan19-Aug-09 22:00 
AnswerRe: UDP & WCF Pin
Pete O'Hanlon19-Aug-09 22:51
mvePete O'Hanlon19-Aug-09 22:51 
QuestionProblem with Silverlight application using WCF Service to get the data from database without LINQ Pin
ravi.vellanky19-Aug-09 21:15
ravi.vellanky19-Aug-09 21:15 
Hi

I'm using a wcf service to get the data from the database and bind it silverlight control. And below is the code sample that i've written.

Problem here is WCF service that i've created is on basichttpbinding. Silverlight supports only this binding I think. So I changed the end point in my WCF service from default (wsHTTPbining ) to basic. when i add the service reference to the silverlight application the following is the silverlight clientconfig I'm getting with the error that i got when i build the application.


<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ITestWCF" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:8731/TestWCFLib/basic" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_ITestWCF" contract="testService.ITestWCF"
name="BasicHttpBinding_ITestWCF" />
</client>
</system.serviceModel>
</configuration>

Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at MNetMetricSystem.testService.GetBugCountCompletedEventArgs.get_Result() at MNetMetricSystem.OrganizationBaseLine.obj_GetBugCountCompleted(Object sender, GetBugCountCompletedEventArgs e) at MNetMetricSystem.testService.TestWCFClient.OnGetBugCountCompleted(Object state)



public partial class OrganizationBaseLine : UserControl
2 {
3 ServiceReference1.MNetMetricsServiceClient Metrics = new MNetMetricSystem.ServiceReference1.MNetMetricsServiceClient();

4 public OrganizationBaseLine()
5 {
6 InitializeComponent();
7 Loaded += new RoutedEventHandler(OrganizationBaseLine_Loaded);

8 }
9
10 void OrganizationBaseLine_Loaded(object sender, RoutedEventArgs e)
11 {

12
13 Metrics.GetAllDepartmentsCompleted += new EventHandler(Metrics_GetAllDepartmentsCompleted);
14 Metrics.GetAllDepartmentsAsync();

15
16 }
17
18 void Metrics_GetAllDepartmentsCompleted(object sender, MNetMetricSystem.ServiceReference1.GetAllDepartmentsCompletedEventArgs e)

19 {
20 cmdDepartMent.ItemsSource = e.Result;
21 }
22
23 }
24
25 This is the Service class from Interface

26
27 public class MNetMetricsService : IMNetMetricsService
28 {
29
30 DLMetrics objMetrics = new DLMetrics();

31
32 List mlist = new List();
33
34 List IMNetMetricsService.GetAllDepartments()
35 {

36
37 DataTable dt = objMetrics.DLGetAllDepartments();
38
39 mlist.Add(new MYList() { MyTable=dt});

40
41 return mlist;// List That i've return at the Silverlight application
42 }

43 }

I didn't use any LINQ to SQL to retrieve data from the database. Without LINQ is it possible? If possible what is the solution? Pls give some links on this......
QuestionRe: Problem with Silverlight application using WCF Service to get the data from database without LINQ Pin
Mark Salsbery20-Aug-09 6:03
Mark Salsbery20-Aug-09 6:03 
AnswerRe: Problem with Silverlight application using WCF Service to get the data from database without LINQ Pin
ravi.vellanky20-Aug-09 18:18
ravi.vellanky20-Aug-09 18:18 
GeneralRe: Problem with Silverlight application using WCF Service to get the data from database without LINQ Pin
Mark Salsbery21-Aug-09 6:55
Mark Salsbery21-Aug-09 6:55 
AnswerRe: Problem with Silverlight application using WCF Service to get the data from database without LINQ Pin
Edbert P31-Aug-09 16:33
Edbert P31-Aug-09 16:33 
GeneralRe: Problem with Silverlight application using WCF Service to get the data from database without LINQ Pin
ravi.vellanky31-Aug-09 18:15
ravi.vellanky31-Aug-09 18:15 
QuestionWPFToolkit - Sort Arrows in DataGrid Pin
#realJSOP19-Aug-09 4:42
mve#realJSOP19-Aug-09 4:42 
AnswerRe: WPFToolkit - Sort Arrows in DataGrid Pin
User 27100923-Aug-09 4:54
User 27100923-Aug-09 4:54 
QuestionPopulate a DataGrid WITHOUT Binding Pin
#realJSOP19-Aug-09 3:23
mve#realJSOP19-Aug-09 3:23 
AnswerRe: Populate a DataGrid WITHOUT Binding Pin
Pete O'Hanlon19-Aug-09 3:56
mvePete O'Hanlon19-Aug-09 3:56 
QuestionHow can I prevent a user to click a button more than once Pin
fiaolle18-Aug-09 9:13
fiaolle18-Aug-09 9:13 
AnswerRe: How can I prevent a user to click a button more than once Pin
Pete O'Hanlon18-Aug-09 9:56
mvePete O'Hanlon18-Aug-09 9:56 
GeneralRe: How can I prevent a user to click a button more than once Pin
fiaolle19-Aug-09 23:04
fiaolle19-Aug-09 23:04 
GeneralRe: How can I prevent a user to click a button more than once Pin
Pete O'Hanlon20-Aug-09 9:01
mvePete O'Hanlon20-Aug-09 9:01 
GeneralRe: How can I prevent a user to click a button more than once Pin
Jeremy Likness25-Aug-09 10:03
professionalJeremy Likness25-Aug-09 10:03 
QuestionAdding the WPF Ribbon Bar as a resource for my other apps Pin
trey white18-Aug-09 7:11
trey white18-Aug-09 7:11 
AnswerRe: Adding the WPF Ribbon Bar as a resource for my other apps Pin
Pete O'Hanlon18-Aug-09 9:24
mvePete O'Hanlon18-Aug-09 9:24 
GeneralRe: Adding the WPF Ribbon Bar as a resource for my other apps Pin
trey white18-Aug-09 10:26
trey white18-Aug-09 10:26 

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.