Could not load file or assembly 'System.Windows,

3 posts, 0 answers
  1. Ed Davis
    Ed Davis avatar
    4 posts
    Member since:
    Jun 2012

    Posted 02 Mar 2011 Link to this post

    We have a rather large website and everything was working and loading fine. It has been in production for over two years now with constant updates with new pages. Recently we started looking into Silverlight development and after adding a silverlight project and silverlight class library reference to the website solution we started getting this error message on first run. Subsequent page requests run just fine, but the initial run of the project gets this error.

    First thing I tried was to upgrade to latest version. Fail.
    Next was to remove the system.windows dependency references from the bin and rebuild project. The files controls.data, controls.data.input, controls.navigation regenerated and are still in the bin as they should be. Fail.
    Manually created a reference to system.windows and all child dll's. Fail.
    Dumped all extra projects from solution and removed project references. Cleaned and rebuilt solution. Fail.

    Any help or Idea's would be appreciated.



    [code]

    Server Error in '/ePikeMiracle' Application.

    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 112:<body runat="server" id="body">
    Line 113:    <form id="form1" runat="server">
    Line 114:    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    Line 115:    </telerik:RadScriptManager>
    Line 116:    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">

    [/code]

  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 03 Mar 2011 Link to this post

    Hi Ed Davis,

    Is the solution you got after removing the extra projects available for packaging? Can you send it to me (with the project(s) inside it) via a support ticket, mentioning this thread, to inspect it? If not, can you send me the page on which the error is shown?

    All the best,
    Simon
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Doug
    Doug avatar
    3 posts
    Member since:
    Mar 2011

    Posted 20 Jun 2011 Link to this post

    I know this is an old post, but I just found a solution that worked for me.  There seems to be an ambiguity problem with asp:ScriptManager.  I switched the TagPrefix to something else, and it worked properly.  I added the following to the top of the page:

    <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        Namespace="System.Web.UI" TagPrefix="ui" %>

    Then the ScriptManager control further on down the page:

    <ui:ScriptManager ID="ScriptManager" runat="server" EnablePartialRendering="true"
            ScriptMode="Release">
        </ui:ScriptManager>

    As long as the tagprefix is something other than asp, I assume it would work.
Back to Top