|
Hello All,
I have created a webpage and trying to integrate a Silverlight control with it. Unfortunately I am getting an error.
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="OnlineEntertainment.Web.WebForm1" %>
<%@ Register Assembly = "System.Web.Silverlight" Namespace="Syste.Web.UI.SilverlightControls" TagPrefix="asp" %>
<%@ Register Assembly = "AjaxConrolToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Silverlight ID="Silverlight1"
Source="C:\Users\Hunter\Documents\Visual Studio 2010\Projects\OnlineEntertainment\OnlineEntertainment.Web\ClientBin"
runat="Server" Height="805px" Width="623px"> </asp:Silverlight>
</asp:Content>
Element 'Silverlight' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.
Is there any specific reason ? I have tried to search for the reference System.Web.Silvelrlight.DLL but it was not present.
I am using Silverlight 5 and Visual Studio 2010.
Thanks and Regards
Anurag
|
|
|
|
|
|
Hello Jason,
I understood your point and tried to modify the source path. However I am wandering that when I am trying to Register the System.Web.Silverlight why I am getting that warning and error. Element Silverlight is not a known element. Web.Config File Missing and all those stuffs.
What I have understood from the link you provided earlier is that there are two controls already shipped with Silverlight 2 SDK. i.e.
Meadia Control and Silverlight Control.
Since this Silverlight Control is not shipped by default with Silverlight 5 SDK I was thinking of that way out. Can you suggest about modifying the web.config file ?
My Modified Code
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="OnlineEntertainment.Web.WebForm1" %>
<%@ Register Assembly = "System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls" TagPrefix="asp" %>
<%@ Register Assembly = "AjaxConrolToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Silverlight ID="Silverlight1" Source="~/ClientBin/OnlineEntertainment.xap" runat="server" Height="805px" Width="623px">
</asp:Silverlight>
<br />
<hr />
<br />
</asp:Content>
Anurag Das
|
|
|
|