Has anyone got this working on a DASP account? It looks like it's in the System.Windows.Controls.Data assembly. I have it working locally but when my application is uploaded the grid does not appear...no exception, no grid, nothing. Any ideas anyone? Cheers, Joe
Ok so it seems this helps a bit: I've copied the file from c:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Client\System.Windows.Controls.Data.dll to the silverlight application's bin folder and it now works when the app is run in IE7. It still fails when the application is run in Firefox however. I'm missing something obvious here centred around the deployment of this silverlight grid thing..shouldn't the System.Windows.Controls.Data assembly and it's dependencies just be deployed with the application automatically?
If it works on IE but not FireFox, the problem is probably related to Java script. I would check the HTTP source to see if all the JS is loaded.
Thanks Bruce, you were right the problem was JavaScript related. It was caused by the difference in the way IE and Firefox handle JavaScript DataSet serialization and it's now resolved. If anyone is interested, I've uploaded a simple proof of concept Silverlight application to http://www.jjssoftware.co.uk/DASPApiSilverlight/JJS.DASPApiSilverlightContainer.aspx The UI is not great, however it is a working Silverlight <-> DiscountASP.NET API application that demonstrates a few fundamental Silverlight concepts (was a useful learning exercise for me as a Silverlight beginner) and it performs a few basic web service calls to the API including BandwidthGetUsage, DiskQuotaGetUsageTotal and GetNews. Obviously you need a valid API key to use it and source code is also included for download at that location. Cheers, Joe
This project has now been moved here http://www.jjssoftware.co.uk/silverlight/homepage/default.aspx. All of my future Silverlight development will be published at this location making it easier for me to manage and hopefully easier for anyone looking to find interesting stuff. The original URL published above in this thread no longer works.
Good day, I''ve beating my brains out trying to get silverlight app working on DASP with the following error... Parser Error Message: Could not load file or assembly 'System.Web.Silverlight' or one of its dependencies. The system cannot find the file specified. Source Error: Line 1: <%@ Page Language="C#" AutoEventWireup="true" %>Line 2: Line 3: <%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"Line 4: TagPrefix="asp" %>Line 5: Source File: /MyFirstApp/MyFirstApp.Web/MyFirstAppTestPage.aspx Line: 3 Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Silverlight' could not be loaded. It works fine if i use an html page but no go with aspx page.... Anyone have a clue to what the issue is?
Hi Flossi, I can reproduce your problem, but only by removing the reference to the System.Web.Silverlight assembly in the web project in Visual Studio. I get exactly the same error as you when I do this, when attempting to view an ASPX page in the browser if the ASPX page includes the <%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls" TagPrefix="asp" %> directive. Obviously if this assembly is not referenced then the <asp:Silverlight /> control will not work at all (http://msdn.microsoft.com/en-us/library/system.web.ui.silverlightcontrols.silverlight(VS.95).aspx). Maybe it's a silly question but do you have the System.Web.Silverlight assembly referenced in your project? Cheers, Joe
Yes there is the reference in the project and i've removed and added it serveral time but still get error. Let me clarify it works fine when i run it locally but when i put on DASP site it gets the error. Again the .html page version works fine, it'the .aspx version where i get the error...