Wich .Net Framework used by Telerik 2012 ?

4 posts, 0 answers
  1. Michel
    Michel avatar
    3 posts
    Member since:
    Feb 2014

    Posted 06 Feb 2014 Link to this post

    Hello,

    Our PROD server run .Net framework 4.0

    Since we've change our Developement plateform to .Net Framework 4.5,  we have deployement issues when copying the files to the server.  We took care to not use .Net framework 4.5 specific methods / class / option.

    On the server,  we sometime have "Pre-compiled"  issue.   I've noticed the following message when make the deployemet:

    Warning 2 The following assembly has dependencies on a version of the .NET Framework that is higher than the target and might not load correctly during runtime causing a failure: Telerik.Web.UI, Version=2012.2.607.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4. The dependencies are: System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. You should either ensure that the dependent assembly is correct for the target framework, or ensure that the target framework you are addressing is that of the dependent assembly.

    Any idea?

    Thank you & best regards,
    Michel.
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 07 Feb 2014 Link to this post

    Hello Michel,

    When using Precompiled deployment you should make sure that Development and Production are running in the very same version of .NET. It is not possible to compile against 4.5 in Development and to have the same compiled site work in 4.0.

    So, to summarize - either switch all your environments to 4.5 or bring back development to 4.0 and this will resolve the issue that you are experiencing.

    Regards,
    Genady Sergeev
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. Michel
    Michel avatar
    3 posts
    Member since:
    Feb 2014

    Posted 10 Feb 2014 in reply to Genady Sergeev Link to this post

    Thank you for the reply.  But when deploying on our Developpment Environnement which is on Framework 4.5,  we took care to setup the FrameworkTarget to 4.0.  I was thinking that this should be considered?

    Michel.
  4. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 13 Feb 2014 Link to this post

    Hello,

    If you are doing the proper configuration this should not be a problem. However, from the error in your first post I can see that the runtime version in production is not 4.0, at least according to the error message.

    So, can check and make sure that the:

    1) Application pool under which the application is running is 4.0
    2) The runtime of the hosted website is set to 4.0. (Right click on the project, website properties)
    3) You use Telerik.Web.UI for .NET 4.0

    Regards,
    Genady

    Regards,
    Genady Sergeev
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top