Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6908179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:31:48+00:00 2026-05-27T08:31:48+00:00

After upgrading my web app from .Net 3.5 to .Net4.0, I get a security

  • 0

After upgrading my web app from .Net 3.5 to .Net4.0, I get a security transparency rules failed.

enter image description here

I’ve never even heard of this or incorporated it into my project.
Does anyone have any idea what this may be?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:31:49+00:00Added an answer on May 27, 2026 at 8:31 am

    From Microsoft’s knowledge-base KB2635463:

    Cause
    This problem occurs because when the System.Web.UI.ScriptManager class
    is first instantiated it builds a cache of method information for
    classes in assemblies already loaded in the application. When it tries
    to examine the constructor of the InstrumentedAttribute the exception
    is thrown and not handled.

    Resolution
    To workaround this issue reliably, instantiate an instance of
    ScriptManager at a point during application start up prior to the
    first request actually being executed but after the assembly that has
    the InstrumentedAttribute has been loaded.

    For example, in global.asax add some new code to Application_Start:

    private void Application_Start(HttpApplication application) 
    { 
        if (applicationStartupComplete) return; 
        try 
        { 
            object osm = new System.Web.UI.ScriptManager(); 
        } 
        catch(Exception)
        {}
    }
    

    Additionally, a post at the asp.net forums reveals this answer from a Microsoft employee:

    We have seen a combination of issues that might cause this:

    1) The
    webserver has the trust level set less than “Full” at the machine
    web.config (ref)

    2) The webserver does not have the AJAX files (System.Web.Extensions)
    installed into the GAC.

    Solution 1: Set trust level to “Full” in the machine level web.config

    Solution 2: Install AJAX files into the GAC

    If refreshing resolves it – it might just be a timing issue loading
    the extensions. Probably if you install into the GAC it will resolve
    it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After upgrading from Spring 3.0.0.M4 to 3.0.0.RC1 and Spring Security 3.0.0.M2 to 3.0.0.RC1, I've
After upgrading our web application to .NET 3.5 we noticed a strange issue with
After upgrading to ReSharper5 it gives me even more useful tips on code improvements.
After upgrading to Ruby 1.9.3 (from 1.9.2 using system RVM) on Ubuntu 10.04.3, I
After seeing some of the problems that Microsoft has had upgrading people from Internet
After upgrading to NHibernate 3.1 and .Net 4 I am seeing a strange exception
After upgrading to MVC 3 RTM I get an exception where it previously worked.
We've recently upgraded from VS2008 -> VS2010 (and hence upgrading from Web Deployment Project
After upgrading to my ASP.NET MVC 4 Developer Preview assemblies to the latest MVC
After upgrading to the latest version of TortoiseSVN (1.5.2.13595), it's context menu is no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.