无法加载文件或程序集"System.Web.Silverlight" [英] Could not load file or assembly ‘System.Web.Silverlight’

查看:72
本文介绍了无法加载文件或程序集"System.Web.Silverlight"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确实需要一些帮助,因为我几个月来一直在尝试解决此问题,但我无法弄清.

I really need some help with this as I have been trying to fix this for months and I can't figure it out.

我经营着一个用Silverlight 3.0编写的在线国际象棋网站

I run an online chess site written in Silverlight 3.0

该体系结构是Silverlight Client,它连接到WCF服务,该服务可以将数据读取和写入SQL Server数据库.它托管在Godaddy上,

The architecture is Silverlight Client connecting to a WCF service that reads and writes data to a SQL Server database. It is hosted on Godaddy,

每隔一段时间我就会收到以下错误消息:

Once every so often I get the following error:

Could not load file or assembly ‘System.Web.Silverlight’ or one of its dependencies.

The system cannot find the path specified.

如果我不理会它,它会在几个小时后修复,但是通常我只是重新发布我的应用程序,然后它就消失了.此外,解决方案中的所有页面不仅会收到此消息,而且还会显示Silverlight应用程序.因此,我有一个排名最高的aspx页面,该页面不使用Silverlight,但是在相同的解决方案中,它也会收到相同的错误.几乎就像整个网站都死了一样.

If I leave it alone it will fix itself after a few hours, however usually I just make a new publish of my application and it goes away. Also all the pages in the solution get this message not just the Silverlight application. So I have an aspx page with top ranks that does not use Silverlight but is in the same solution it also gets the same error. Its almost like the whole site dies.

这似乎不是一个大问题,但是由于我的网站随时都可能出现故障,因此度假变得很困难.同样,这似乎是我睡觉时发生的最多的情况,因此,在我已经失去数小时的潜在登录时间之前,我常常不打算修复它.

This does not seem like a huge issue but it makes going on vacation hard since my site can go down at any time I am away. Also this seems to happen the most when I am sleeping so I often don't get to fixing it until I have already lost hours of potential logins.

推荐答案

我在 Silverlight.net论坛,它是两个项目的组合:

I received an answer on the Silverlight.net forums, it is a cobination of two items:

  1. 像Anthony建议使用Object Tag嵌入Silverlight控件.
  2. 从所有项目中删除对System.Web.Silverlight的所有引用,并且不再使用它.

这篇关于无法加载文件或程序集"System.Web.Silverlight"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆