App_code and bin folders in sharepoint site RRS feed

  • Question

  • Hi All

    In my current sharepoint 2010 site -> Under virtual directory -> Site port -> there are folders (app_code and bin)

    Under App_code folder there is one .cs file and under bin folder there are .dlls 

    Now i want to compile this .cs file under app_code folder into a dll and place it in gac. How can i achieve this?

    I am not sure why the team earlier , had the file placed in app_code folder instead of compiling to dll

    Please share if you have any clue why they might have done so?

    Also, can i move the dlls that are present in bin folder to GAC? I think i need add as safe assemblies in the webconfig file.

    Is here anything else i need to do here,

    Please help

    Thanks in advance


    Friday, May 27, 2016 10:22 AM


  • Hi Usha,

    In .NET development, we can use the App_code folder to store files which can be access through the whole project(might be a custom web service).

    More information about it:


    For most of the developing options in SharePoint 2010, there is no need to setup an extra folder in the virtual directory.

    If you don’t need this App_code folder, as it might be used in an existing solution which fulfills a specific requirement, if the file in this folder is not owned by you, I suggest you contact the author of it to get more information about how it is used in your environment before perform any action on it.

    Best regards,


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Edited by Patrick_Liang Monday, May 30, 2016 8:18 AM
    • Proposed as answer by Dennis Guo Friday, June 3, 2016 10:41 AM
    • Marked as answer by UshaJyothsna Saturday, June 4, 2016 3:01 PM
    Monday, May 30, 2016 8:11 AM