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

  • SEARCH
  • Home
  • 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 397093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:36:58+00:00 2026-05-12T16:36:58+00:00

We have a Sharepoint project where we have deployed the dll’s of the project

  • 0

We have a Sharepoint project where we have deployed the dll’s of the project to the GAC.

We have seen that the best practices is to have them in the bin directory. This is based on the information in the answer to this question: Web part dll in Gac or bin using sharepoint 2007

What are the steps that we have to do to make this change?

Thanks

Shiraz

  • 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-12T16:36:59+00:00Added an answer on May 12, 2026 at 4:36 pm

    Essentially two things:

    • Add the AllowPartiallyTrustedCallers attribute to the web part assembly.

    This allows SharePoint’s full trust assemblies to make use of those operating under partial trust (yours).

    • Write a custom Code Access Security file and add it to the web.config for the SharePoint web application.

    Writing your own CAS file can be tricky and error prone if you want to do it properly. If you use a tool such as WSPBuilder it can create one automatically for you, which I strongly recommend. Otherwise, there’s a written-by-hand guide here. A “cheat” method is to write a CAS file that fully trusts your assembly, but that’s going against the point.

    Note: Certain SP artifacts such as event handlers must be deployed to the GAC.

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

Sidebar

Related Questions

I have deployed an SSRS 2008 R2 project into our SharePoint Integration. This worked
I have a sharepoint project that deploys list instances to sharepoint. This has been
I have this WinForms project (based on this one , but modified for SharePoint
I have a sharepoint page that loads six webparts, each one of them consumes
I have a custom item template that I am adding to a Sharepoint project.
I have an ASP.NET 2.0 web project that lives within SharePoint 2007. A couple
I have a Visual Studio 2010 project that targets .NET v3.5 (it's a Sharepoint
I have a SharePoint 2010 project with a feature. This feature will create an
I have generated a C# SharePoint Sequential Workflow project using the very handy STSDEV
We have a sharepoint instance on our network that we get automatically logged into

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.