PDA

View Full Version : Adding silverlight project onto a website error



samuelt
February 24th, 2009, 01:42 AM
Hi Kirupa,

First I want to say thank you for your awesome tutorials. They have been very helpful.

However, I came across this basic tutorial on how to add Silverlight project onto a new website on your page.

http://www.kirupa.com/blend_silverlight/silverlight_website_projects_pg3.htm

I was applying these instructions above on another Silverlight project on your website.
http://www.kirupa.com/blend_silverlight/preloading_displaying_image_pg5.htm

And I came across this error below, which I'm unable to resolve.
I have looked across quite a bunch of forums to no avail.

Error 1 Unknown server tag 'asp:ScriptManager'. C:\Codes\Samples\Silverlight\LoadingImages_Tutoria l\Website\LoadingImages_TutorialTestPage.aspx 13

These are some of the code snippets my VS 2008 produced for me.
It's using the latest Silverlight Tools for VS SP1.

<%@ Page Language="c#" AutoEventWireup="true" %>
<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
TagPrefix="asp" %>

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

Please help.

Thank you.

Samuel

kirupa
February 24th, 2009, 04:35 AM
Hi Sam!
I am not too familiar with ASPX and Silverlight, but I'll take a shot at this!

Are you using the Silverlight control that is found in ASPX to insert your silverlight content?

Thanks,
Kirupa

samuelt
February 24th, 2009, 11:49 AM
The steps that I followed are on the tutorial on your site: (link below)

http://www.kirupa.com/blend_silverlight/silverlight_website_projects_pg3.htm

1. Add an Empty Web Site
2. Go to Start Options...
3. Add the Silverlight Project on the Silverlight Applications tab.

I attach a screenshot of the file structure.

Thank you.

Samuel