I am trying to load a silverlight application I have written in Visual Studio 2008. It works fine on my local machine, but when I upload the application and try to run it, I get the following error: 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: /TestBed.Web/TestBedTestPage.aspx Line: 3 Does the silverlight application have to be in the root directory? Do I need some kind of special account to run Silverlight applications? Thanks for any suggestions, Jeanne
did you upload the silverlight dll to the bin directory of the application root? Bruce DiscountASP.NET www.DiscountASP.NET
Hi, I had missed including it in the bin. So now that is fixed. My problem now is my WCF service. I found the post: http://community.discountasp.net/default.aspx?f=24&m=16709&p=1 and have added a CustomHostFactory and CustomHost. I modified the .svc file (outside of Visual Studio 2008) and pointed the factory to this custom factory. But it couldn't find the code...so I put the .cs file into the /App_Code directory (and noticed that this site ~may~ be running with .net 2.0 and not 3.5???). It now get past that error but tells me: The referenced CLR type 'TestBed.Web.CustomHostFactory' is ambiguous. It is found both in assembly 'App_Code.00u2js9d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and in assembly 'TestBed.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Source Error: Line 1: <%@ ServiceHost Language='C#' Debug='true' Service='TestBed.Web.WCFProjectDataService' Factory='TestBed.Web.CustomHostFactory' CodeBehind='~/App_Code/WCFProjectDataService.svc.cs' %> Well, yes...VS 2008 doesn't like App_Code directories - and it compiled the code from the code behind into the .dll. So now I'm trying to get it out of the .dll and see if that will work. Is there any way to get this website to use .net 3.5? Thanks, Jeanne
Ok, I have the WCF service running now. I had to leave the service .svc file saying that the code behind was in the App_Code directory - but then remove the actual code behind file from the directory. A little strange, but hey, it's working. Jeanne