silverlight-forums,programming-silverlight-with-net-general-Related issues-Collection of common programming errors


  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    Inside my Silverlight app, I’m calling a web service asynchronously, using the client generated for me by Visual Studio (Add Service Reference…).  My code looks like this:            BasicHttpBinding binding = new BasicHttpBinding();            EndpointAddress endpoint = new EndpointAddress(“http://localhost:8080/fourdintent/DataQuery2”);    &nbs

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    I’m serializing a class to xml on server-side, sending xml stream to silverlight client, then deserialize it on client side. The problem I have is I have to make two same data contract class, both on server-side and client-side. Is it possible to write aclass library which you can include in both silverlight and ASP.NET server project?[DataContract(Name = “ImageDTO”, Namespace = “http://localhost”)] public class ImageDTO{    [DataMember()]    pub

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    I am in jepardy of losing the fight to move from winforms to silverlight because I can’t get our class library to work with WCF.  I am trying to use a class library that implements INotifyDataChanged to bubble changes up through nested objects. Nothing special,lower objects use the PropertyChanged event to set a dirty flag and then bubble that change up to higher level classes. Works dandy in winforms but now that we are trying to use WCF and Silverlight the whole thing is blowing up in my

  • msdn
    silverlight-forums silverlight-4
    Does Silverlight support double click? For example, when the user doubleclicks on a text box, I need to capture the event and change the display and content of an related datagrid.I am asking because I heard that “Silverlight does not support double click” but I think this general statement may imply some details.

  • msdn
    silverlight-forums silverlight-4
    I tried to get data from a restful service in SL app. Here is my testing code in SL app:public void getService(){   Uri serviceURI = new Uri(“http://Mysite/Mywcservice/myTest.json?Id1=10&id2=2”);   WebClient proxy = new WebClient();   proxy.OpenReadCompleted = new penReadCompletedEventHandler(proxy_OpenReadCompleted);   proxy.OpenReadAsync(serviceURI);}void proxy_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e){   var

  • msdn
    silverlight-forums wcf-ria-services-with-silverlight
    Hi all!I’m converting a big business application to Ria Services and I’m struggling to make a simple screen to work like in a VB6 application but unfortunately this process is being too painfull …So let’s give some backgroung about the scenario of my application …My client has a huge business application that’s in VB6, it’s a typical 2 tier VB6 app, with a MDI window and tons of internal MDI child forms, some of then are modal others are not.In the vast majority of the forms the workflow is

  • msdn
    silverlight-forums visual-studio-amp-silverlight-development-tools-
    Hi everyone! and really hope you’ll help me to solve this issue.The issue is the ProtocolException error I’m getting when my Silverlight application calls the webservice. The service is .asmx and it’s working fine in any other applications except SL application.I have tried to fix it with different variations from the net, but still nothing helps :(… At first I have ran a WebDevelopment Helper and it showed me the first problem – it was Cross-Domain Issue and there were no files like clie

  • msdn
    silverlight-forums silverlight-4
    I use Blacklight expander in my Silverlight project and i want to create a Button to expand or collapse all the expander in the same time and change the Button content. The Blakclight control have the property “IsExpanded”. Is there a way to do that ?The Blacklight expander is similar to the Silverlight Toolkit Accordion control.Thank

  • msdn
    silverlight-forums report-a-silverlight-bug-
    In Beta2, When I make a moving animation using Storyboard, the object’s tranform value is changed directly. But, Strangely  In RC, the transform value is not changed. So I made some test. this is very simple code.Page.xaml<UserControl x:Class=”StoryBoardTest.Page”    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”  

  • msdn
    silverlight-forums accessing-web-services-with-silverlight-
    Hi ya! I don’t know if this is the right forum, so please forgive me if I am off-topic.I am developing a RIA Domain Service, which is also exposed with a Json endpoint:<domainServices>      <endpoints>        <add name=”OData” type=”System.ServiceModel.DomainServices.Hosting.ODataEndpointFactory, System.ServiceModel.DomainServices.Hosting.OData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    Inside my Silverlight app, I’m calling a web service asynchronously, using the client generated for me by Visual Studio (Add Service Reference…).  My code looks like this:            BasicHttpBinding binding = new BasicHttpBinding();            EndpointAddress endpoint = new EndpointAddress(“http://localhost:8080/fourdintent/DataQuery2”);    &nbs

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    I’m serializing a class to xml on server-side, sending xml stream to silverlight client, then deserialize it on client side. The problem I have is I have to make two same data contract class, both on server-side and client-side. Is it possible to write aclass library which you can include in both silverlight and ASP.NET server project?[DataContract(Name = “ImageDTO”, Namespace = “http://localhost”)] public class ImageDTO{    [DataMember()]    pub

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    I am in jepardy of losing the fight to move from winforms to silverlight because I can’t get our class library to work with WCF.  I am trying to use a class library that implements INotifyDataChanged to bubble changes up through nested objects. Nothing special,lower objects use the PropertyChanged event to set a dirty flag and then bubble that change up to higher level classes. Works dandy in winforms but now that we are trying to use WCF and Silverlight the whole thing is blowing up in my

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    I made a WCF web service in one solution that will be deployed to a server and used with muliple types of apps (WinForms, WPF, Silverlight, etc. ).  Deployed and works fine with a WPF app in another solution.  I created a third solution for a SL2 app, butdoes not work with the WCF service.  I can find the service and add it to my references.  I have the …Complete event Method setup correctly.  When I call the …Async Method, I get an error.ProtocolException&

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    Hi guys, I’m struggling with a 404 error. I have a web service that is running from VS2008, it has a public method that takes a few primative type variables and returns a boolean. I can manually browse to and execute the method from a web browser. I have added aclientaccesspolicy.xml to the project (see below for contents). I also have a Silverlight application that is running from a 2nd VS2008 environment. It is running from a web project (start page is http://localhost:port/project/file.a

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    This does’nt seem that difficult, unfortunately I’m sitting here for the good part of a day and just can’t figure it out.I have a custom control exposing an IsActive boolean DP.I used Binding to bind this DP to the IsHitTestVisible property of a grid to disable its mouseover and mouseout and click events.Unfortunately I have to swap the boolean to make sense, true becomes false and false becomes true.Also very unfortunately I don’t get the Converter to work, it is located within the App.xaml.<

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    I have a Silverlight Application which queries a WCF service (Basic HTTP Binding).The service is hosted in the web site which hosts the silverlight content too.I keep an exception in the EndInvoke-method in the service client wrapper class throws a ProtocolException:The remote server returned an unexpected response: (404) Not Found.here is the content of my clientaccesspolicy.xml file  <access-policy>  <cross-domain-access>    <policy>   

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    When I try to change the address via rightClicking on the ServiceReference and choosing Configure Service Reference… to either a Silverlight-enabled Web Service(.svc) or a Web Service(.asmx)  fromhttp://localhost:49547/sl2b2_webServiceTest2Web/servSL2B2.svc tohttp://localhost/sl2b2_webServiceTest2Web/servSL2B2.svc I get an error saying “There was no endpoint listenting athttp://localhost/sl2b2_webServiceTest2Web/servSL2B2.svc that could accept the message”.Ho

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    Hi. I’m using Silverlight 4. Trying to get to selectedItem returned when a user clicks a row on a Datagrid. I am using the SelectionChanged Event (VB) but its firing in all the wrong places. Double click not being present doesn’t help. I would be reallygrateful if anyone could point me in the right direction for a solution. Cheers Scott

  • msdn
    silverlight-forums programming-silverlight-with-net-general-
    Hi! I have a problemI build client server application on silverlight  2.0I implement webService project – ChatService and asp.net project Chat.Display projectI need to use in Chat.Display the webService  ChatServiceHow can i add web reference to Chat.Display project?I can just Add Service Link not Add web Reference?Thanks 

Web site is in building