SharePoint Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2262 Page Views: 

What settings are required for running SharePoint assemblies from BIN folder?



Posted By: Avi Date: 1 December 2009 04:32:07 AM
 Answer:

Following two settings are required for running SharePoint assemblies from BIN folder:

1) Add the following attribute in the assembly:

[assembly:System.Security.AllowPartiallyTrustedCallers]

2) Configure custom code access security (CAS) or set trust level to "Full" in the web.config as shown below:

<system.web>
<trust level="Full" />
</system.web>


Posted By: eTechPlanet


Date: 1 December 2009 04:32:07 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image vnWD2s
Related Questions
SharePoint : How to validate user in SharePoint's people picker control?

How to validate user in SharePoint's people picker control?

SharePoint's people picker control (PeopleEditor) has an attribute "ValidatorEnabled" whic....
Category: SharePoint Date: 12/7/2009 5:52:29 AM
SharePoint : While working on SharePoint site, we generally receive error messages like "Unknown Error" or another generic error message. Is there any way to display more descriptive error messages?

While working on SharePoint site, we generally receive error messages like "Unknown Error" or anothe....

Yes, we can display more descriptive error message in SharePoint site. To do this, following changes....
Category: SharePoint Date: 12/7/2009 2:28:33 AM
SharePoint : What settings are required for running SharePoint assemblies from BIN folder?

What settings are required for running SharePoint assemblies from BIN folder?

Following two settings are required for running SharePoint assemblies from BIN folder: 1) Add the f....
Category: SharePoint Date: 12/1/2009 4:32:07 AM
SharePoint : What is the best practice to deploy assemblies in the Global Assembly Cache (GAC) for SharePoint application?

What is the best practice to deploy assemblies in the Global Assembly Cache (GAC) for SharePoint app....

Assemblies should not be deployed to Global Assembly Cache (GAC) until application move to an integr....
Category: SharePoint Date: 12/1/2009 4:19:41 AM
SharePoint : Name various services provided by the Shared Services Provider in MOSS 2007?

Name various services provided by the Shared Services Provider in MOSS 2007?

Some of the services provided by the Shared Services Provider in MOSS 2007 are: 1) Full-text and pr....
Category: SharePoint Date: 11/30/2009 6:42:22 PM