This is a migrated thread and some comments may be shown as answers.

Error using Telerik: System.Windows

1 Answer 86 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Reb
Top achievements
Rank 1
Reb asked on 29 Jul 2011, 04:26 PM

Hi

Please help me with the following problem, i get the error copied below.:
I am trying to use telerik for my ASP.Net site, e.g.the scheduler.
I have e-mail and sms functionality in my system.
Now I included the System.Windows reference in my project and it crashes
my SMS and Email functionality. Please help :)

Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 75:         <td class="style15" valign="top">
Line 76: 
Line 77:         <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
Line 78:             </telerik:RadScriptManager>
Line 79:         <script src="http://www.weather.co.za/widgets/website_widget.php?rqt=js&loc=cape-town&tpl=2" type="text/javascript"></script>

Source File: c:\Users\Admin\Desktop\SSS\ESAWC\Presentation Layer\Home.aspx Line: 77

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' could not be loaded.

=== Pre-bind state information ===
LOG: User = LEWIS27\Admin
LOG: DisplayName = System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Admin/Desktop/SSS/ESAWC/
LOG: Initial PrivatePath = C:\Users\Admin\Desktop\SSS\ESAWC\bin
Calling assembly : Telerik.Windows.Controls.Gauge, Version=2011.1.315.1040, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Admin\Desktop\SSS\ESAWC\web.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

Stack Trace:

[FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.]
   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) +180
   System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +192
   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) +115
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +426
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
   System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
   System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +76
   System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +388
   System.Web.UI.ScriptManager..ctor() +26
   Telerik.Web.UI.RadScriptManager..ctor() +30
   ASP.presentation_layer_home_aspx.__BuildControlRadScriptManager1() in c:\Users\Admin\Desktop\SSS\ESAWC\Presentation Layer\Home.aspx:77
   ASP.presentation_layer_home_aspx.__BuildControlContent2(Control __ctrl) in c:\Users\Admin\Desktop\SSS\ESAWC\Presentation Layer\Home.aspx:51
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +87
   ASP.site_master.__BuildControlMainContent() in C:\Users\Admin\Desktop\SSS\ESAWC\Site.master:71
   ASP.site_master.__BuildControlForm1() in C:\Users\Admin\Desktop\SSS\ESAWC\Site.master:15
   ASP.site_master.__BuildControlTree(site_master __ctrl) in C:\Users\Admin\Desktop\SSS\ESAWC\Site.master:1
   ASP.site_master.FrameworkInitialize() in C:\Users\Admin\Desktop\SSS\ESAWC\Site.Master.vb:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8893254
   System.Web.UI.Page.get_Master() +54
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

1 Answer, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 02 Aug 2011, 03:18 PM
Hi Reb,

I've already answered your support ticket regarding the same issue. Here is my answer:

'Probably you will find helpful some of the following links:

http://social.msdn.microsoft.com/Forums/en-US/windowsazuredevelopment/thread/0bad6816-f571-4d2b-acff-98e34996f331/
http://stackoverflow.com/questions/3737363/after-upgrading-to-net-4-0-im-getting-the-exception-could-not-load-file-or-as
http://www.stellarpc.com/articles/board.aspx?id=36"

Did you try some of the suggestions above?
A rebuild of your web site may solve the issue.

Kind regards,
Helen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Ajax
Asked by
Reb
Top achievements
Rank 1
Answers by
Helen
Telerik team
Share this question
or