首页 新闻 会员 周边

打开网页的错误。

0
[已关闭问题] 关闭于 2012-06-13 11:50

我原来一个.net 站点做好了,由于想插入Silvert light  ,然后新建了一个silverlight 的项目,web 目录指到了.net 网站的目录,后来决定不使用silverlight 了,但是网站流量的时候总体提示如下错误,刷新页面就OK 了,我怎么能解决那?

不能加载文件或程序集“System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e”或它的某一个依赖项。系统找不到指定的文件

问题补充:

未能加载文件或程序集“System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e”或它的某一个依赖项。系统找不到指定的文件。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.IO.FileNotFoundException: 未能加载文件或程序集“System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e”或它的某一个依赖项。系统找不到指定的文件。
源错误:

行 27:         <asp:Label ID="L_PageTitle" runat="server" SkinID="PageTitleLine" 
行 28:             Text="新建培训活动"></asp:Label>
行 29:         <asp:ScriptManager
行 30:             id="ScriptManager1" runat="server" AsyncPostBackTimeout="400"></asp:ScriptManager>
行 31:         <hr width="100%" />

源文件: e:\ETS\TR_ActiveCreate.aspx    行: 29
程序集加载跟踪:下列信息有助于确定程序集“System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e”未能加载的原因。

警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。

堆栈跟踪:

[FileNotFoundException: 未能加载文件或程序集“System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e”或它的某一个依赖项。系统找不到指定的文件。]
   System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
   System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +525
   System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +19
   System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +315
   System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +208
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +1171
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +146
   System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +103
   System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +592
   System.Web.UI.ScriptManager..ctor() +30
   ASP.tr_activecreate_aspx.__BuildControlScriptManager1() in e:\ETS\TR_ActiveCreate.aspx:29
   ASP.tr_activecreate_aspx.__BuildControlform1() in e:\ETS\TR_ActiveCreate.aspx:25
   ASP.tr_activecreate_aspx.__BuildControlTree(tr_activecreate_aspx __ctrl) in e:\ETS\TR_ActiveCreate.aspx:1
   ASP.tr_activecreate_aspx.FrameworkInitialize() in e:\ETS\TR_ActiveCreate.aspx.cs:912308
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +72
   System.Web.UI.Page.ProcessRequest() +269
   System.Web.UI.Page.ProcessRequest(HttpContext context) +167
   ASP.tr_activecreate_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\2f5fa91b\774fde5e\App_Web_4yqaif1f.26.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
figofeng的主页 figofeng | 初学一级 | 园豆:5
提问于:2012-06-11 13:27
< >
分享
所有回答(2)
0

重新生成后再发布一下

yxf2011 | 园豆:6 (初学一级) | 2012-06-11 17:34

解决方案重新生成?

支持(0) 反对(0) figofeng | 园豆:5 (初学一级) | 2012-06-11 21:40
0

我也遇到这个问题,楼主怎解决的

zjmazqq | 园豆:202 (菜鸟二级) | 2013-09-06 08:39
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册