.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

CLR Inside Out: Migrating an APTCA Assembly to the .NET Framework 4

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

The CLR security model in the Microsoft .NET Framework 4 has undergone some substantial changes, including the adoption of "Level2" transparency, similar to the Silverlight security model. Mike Rousos provides an in-depth explanation of how that will likely impact authors of AllowPartiallyTrustedCallers (APTCA) libraries.

Mike Rousos

MSDN Magazine March 2010

View Complete Post

More Related Resource Links

CLR Inside Out: Formatting and Parsing Time Intervals in the .NET Framework 4


Learn about enhanced TimeSpan formatting and parsing features coming in the .NET Framework 4, and some helpful tips for working with TimeSpan values.

Ron Petrusha

MSDN Magazine February 2010

CLR Inside Out: Exploring the .NET Framework 4 Security Model


The .NET Framework 4 introduces many updates to the .NET security model that make it much easier to host, secure and provide services to partially trusted code. This article dives into the many features and benefits of the .NET security model.

Andrew Dai

MSDN Magazine November 2009

CLR Inside Out: What's New in the .NET Framework 4 Base Class Library


Just about everyone who uses Microsoft .NET uses the Base Class Libraries (BCL).When we make the BCL better, almost every managed developer benefits. This column will focus on the new additions to the BCL in .NET 4 beta 1.

Justin Van Patten

MSDN Magazine September 2009

CLR Inside Out: CLR Optimizations In .NET Framework 3.5 SP1


See the changes the CLR team made to the CLR .for NET Framework 3.5 SP1 and the improvements you'll get running your existing CLR 2.0-based apps against this service pack.

Surupa Biswas

MSDN Magazine April 2009

CLR Inside Out: Ensuring .NET Framework 2.0 Compatibility


If we learned only one thing about compatibility in the past few years, it is that compatibility is much more than avoiding breaking changes. On the Microsoft®. NET Framework and Visual Studio® teams, we do our part to ensure that the products we build are stable platforms that developers can truly rely on.

Jesse Kaplan

MSDN Magazine March 2006

Framework error:Could not load file or assembly 'Microsoft.AnalysisServices, Version=

Hi,I use sql clr sp's to load data in to database using .net framework 2.0. I never had aproblem using this and it went well for months.I recently updated to net framework 3.5 sp1 and sqlserver sp3 on 32-bit sql server and win 2003.I am facing an error which i could not resolve.Error:System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AnalysisServices, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. Assembly in host store has a different signature than assembly in GAC. (Exception from HRESULT: 0x80131050)System.IO.FileLoadException:    at StoredProcedures.checktable(String paramComponent, String paramParameters)I have gone through different forums, and trie different options,but did not help. I am using 'unsafe'  option.I also tried to alter assembly which is mentioned in http://support.microsoft.com/kb/949080/pt But when i tried to alter the assembly using the above link or try to change the permission to external access on the assembly, i get the below error.Alter ASSEMBLY AccessibilityFROM 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Accessibility.dll'Cannot alter the assembly 'Accessibility', because it does not exist or you do not have permission.I am an admin on the server/sqlCan some one suggest how to alter assembly with permissions or solve this issue or am i missing anything important.Do i

Extract assembly from all the dll's inside xap


Hi ,

I have byte array for the silverlight XAP . I need to extract all the dll's inside the xap from the byte array. Once I get the  dll's I need to extract the assemblies from it.Silverlight XAP is stored in a repository and the repository always return me XAP byte array .Is there any Standard API available in C# to achieve this functionality ?If not how can we achieve this ?


Compiled Assembly with Framework Targeted to 3.5 will not run without Framework 4.0 installed



I'm working in VS2010, VB.Net, compiling and packaging a dll which is callled from a right click menu.  I was ordered to require .Net 4.0 as the target framework and as a prerequisite for the program, so I did and it everything worked.  A week later, a client complained, so I have to revert to requiring and targeting .Net Framework 3.5.   I went into the solution, changed the Targeted Framework, Launch Condition and Prerequisites back to 3.5.  Everything compiled fine.  

But new installs wouldn't show the right click option until .Net Framework 4 was installed too.  I've tried changing the framework target back to 3.0, 2.5 and 2.0, and reverting the vbproj back to a build where it worked, but same results.  Take a working install, uninstall 4.0 framework and it stops working.   Take a 3.5 targeted install, run the install on a clean machine, and it doesn't work.   Add the .Net Framework 4.0 and it works instantly.   Same results when a compiled dll is dropped into working installation.  (They all require 4.0, despite the selected target environment....)

Any htoughts welcome...  I'm stumped and spent all day yesterday on this.


Migrating .Net 2.0 Framework Web service project to .Net 3.5 Project & impact on Proxy




We are upgrading .Net 2.0 Framework Web service project to .Net 3.5 Project. We are not changing any methods.

 Will there be any change in the proxy because of this Framework Upgrade.

My requirement is to all the existing clients consuming this webservice should not have any impact due to this framework upgrade.


PVASN Murthy

.Net Framework 4 on Windows Server 2003/IIS6: where is the assembly folder ??

I installed and configured Framework4 on a Windows Server 2003 Standard SP2
following this guide:


Trying to access the website, I received this error:


Server Error in '/' Application.

Access to the path 'C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\' is denied.
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.UnauthorizedAccessException: Access to the path
'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\' is

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6 and IIS 7, and the configured application pool
identity on IIS 7.5) that is used if the application is not impersonating.
If the appli

Dynamic assembly creation in .NET Framework 4.0


While creating dynamic assembly

in .net frame work 4.0 the assembly type is generating as System.Reflection.E

Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Accessing the different controls inside a GridView control

how we can access a particular control which resides inside a GridView control. In this article I will show you how you can access different controls inside a GridView control. We will see how we can access a TextBox control, a DropDownList control and a ListBox control. If you are working with ASP.NET 1.X then you might want to check out my article Accessing Different Controls Inside a DataGrid.

Creating a Generic Entity Framework 4.0 Repository

With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.

ASP.NET 4.0 Dynamic Data and Many to Many Entity Framework Entities

I did not play much with Dynamic Data controls in VS2008 and just made a cool discovery in VS2010 Beta 2. This may not even be new, but as I'm sitting 30,000+ feet over the Atlantic ocean, I don't have access to VS2008 at the moment to check.

How To Add calendar control inside a GridView

This article show hot to add calendar control inside a GridView with code in c#

Using ATLAS PopUp Control with Calendar inside the GridView Control

In this video tutorial Mohammad demonstrates how you can access the Calendar control which is displayed using the ATLAS PopUp control inside the GridView control.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend