/dev/null [tony lombardo]

Anything and everything ASP.NET and more. Expect to see tips and tricks, opinions on new technology, and fun code samples, along with the occasional rant.
Partial Trust for ASP.NET

Copies of the Infragistics NetAdvantage for ASP.NET assemblies marked with the AllowPartiallyTrustedCallersAttribute, are now available for download. These assemblies come packaged in a single zip file, which you can simply unzip into the bin directory of your hosting server.

NetAdvantage 2006 Vol. 2 for ASP.NET (CLR 1.X)[APTCA]
NetAdvantage 2006 Vol. 2 for ASP.NET (CLR 2.0)[APTCA]

Update: [09/25/06] The latest builds will be posted to a private forum which can be accessed using your Infragistics Member ID.

Prior versions of NetAdvantage will also be made available later this week.

NOTE: These assemblies should be used at run-time only, in a case where you require deployment to a partially trusted site.

Posted: 25 Sep 2006, 14:14

Comments

Chris said:

I unziped these files into my bin and still get the following:

Required permissions cannot be acquired.
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.Security.Policy.PolicyException: Required permissions cannot be acquired.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2736869
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly 'Infragistics2.WebUI.UltraWebListbar.v6.2, Version=6.2.20062.1038, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'Infragistics2.WebUI.UltraWebListbar.v6.2, Version=6.2.20062.1038, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
System

# August 8, 2006 11:01 PM

Tony Lombardo said:

Hi Chris - Thanks for the report. I had the developers look into this, and they found and fixed the problem. It turns out that the WebListbar CLR2.0 project somehow got marked with "AllowUnsafeBlocks=True". This will be resolved in the next hotfix.
# August 9, 2006 1:38 PM

drew said:

is this weblistbar fixed yet? this little item is ruining a deadline of mine.
# August 31, 2006 8:05 PM

Johnny Ingram said:

When will this hot fix be available to the public?
# September 5, 2006 9:28 AM

Tony Lombardo said:

The APTCA assemblies corresponding to the NetAdvantage 2006 Volume 2 1045 hotfix have been posted to a private forum - http://forums.infragistics.com/readgroup?group=infragistics.products.netadvantage.aspnet.deployment.aptca

You will need to log in with your UserID that has a valid subscription registered to it, in order to gain access to the forum. If you have any trouble, please contact the Infragistics Developer Support team.
# September 6, 2006 12:00 PM

drew said:

i am a tad confused as the last post reviews to the 1045 hotfix, and the above initial links seem to indicate a 1038 hotfix, and, my newest latest bits are not binding due to incorrect assembly references. Can the hotfix be confirmed to be correct? thanks, drew..
# September 6, 2006 3:50 PM

ML said:

How does one make use of these in a medium trust environment? Do you simple replace the files in the bin folder with these or wha tother changes must be made to app itself? We cannot seem to get these to work properly.
# September 30, 2006 11:06 AM

Tony Lombardo said:

Hi ML. Replacing the assemblies is the first step. But if your original application was built using a different version than the latest APTCA assemblies (highly likely), you will either need to upgrade your project or use binding redirects to force the runtime to use the updated assemblies. For more on Binding Redirects, you can read this post http://blogs.infragistics.com/blogs/tony_lombardo/archive/2006/08/08/291.aspx
# October 3, 2006 2:52 PM

Tony Lombardo said:

Partial trust builds have been posted to the APTCA forum.

These builds correspond to the latest hotfix...
# October 25, 2006 12:20 PM

Tony Lombardo said:

Partial trust builds have been posted to the APTCA forum.

These builds correspond to the latest hotfix...
# October 25, 2006 12:20 PM

Martin said:

Hi,

I've just purchased NA 2006/3 and have the same problem. But I can't find an APTCA build for this new version.
# November 22, 2006 1:00 PM

Shawn said:

Where I can download the AllowPartiallyTrustedCallersAttribute for "Infragistics2.WebUI.Shared.v6.3"

The link "http://forums.infragistics.com/readgroup?group=infragistics.products.netadvantage.aspnet.deployment.aptca"

does not work.

thanks

Shawn

# October 10, 2008 10:24 AM

Tony Lombardo said:

@Shawn - The link changed when we moved to a new forum system.  replace forums.infragistics.com with forums.archive.infragistics.com and it should work for you - http://forums.archive.infragistics.com/readgroup?group=infragistics.products.netadvantage.aspnet.deployment.aptca

# October 10, 2008 1:43 PM

John said:

Is it possible that version 8+ of the DLLs can be having the trust issues?

# October 29, 2008 9:23 AM

Tony Lombardo said:

The APTCA marked assemblies are now shipped with the product.  I believe we started shipping them back in 2007 Volume one.  Just take a look in your install folder (c:\program files\infragistics\netadvantage 2007 vol 3 CLR 2.0\asp.net\)

# October 30, 2008 12:09 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS