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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:28:28+00:00 2026-06-17T10:28:28+00:00

I have been working for some time with sitecore. Since my arrival, I have

  • 0

I have been working for some time with sitecore.

Since my arrival, I have been taking the existing projects as a reference and creating new projects.

For Sitecore, we will have loads of folders and files for the website. We only need to create sublayouts (*.ascx) together with JavaScripts and CSS files.

For those *.ascx files, I put them under layouts/Project_Name/The_File_Name.ascx and layouts/Project_Name/The_File_Name.ascx.cs.

In a *.ascx file, I have the following.

<%@ Control Language="c#" AutoEventWireup="true" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"  Inherits="Layouts.The_File_Name.The_File_NameSublayout" CodeFile="~/layouts/Project_Name/The_File_Name.ascx.cs" %>

After finishing, I deploy the whole layout folder onto the production server.

I will create a blank website on the production server and copy over the necessary files, mainly JavaScripts, CSS and *.ascx files.

Yesterday, A Sitecore consultant suggested that I change from CodeFile to CodeBehind and compile them.

I understand that if we create web application in Visual Studio, the system gives us CodeBehind and whenever we change, we need to compile.

But if we create a web site, we don’t need to compile. We can however, publish the site.

My question is: what did the consultant mean? Do I need to compile the whole Sitecore website folder?

If so, can I compile (build) the whole folder?

And can I get the *.dll from it?

So far, i have tried to compile 2 of my sites and I am getting this error

Could not load assembly or file ChilkaDotNet2 or one of its dependencies

  • 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-06-17T10:28:29+00:00Added an answer on June 17, 2026 at 10:28 am

    I agree with the consultant. There are two project types in Visual Studio:

    1. Website Project
    2. Web Application Project

    Sitecore itself comes shipped as a compiled web app, so for you to add layouts, sublayouts and anything else into it, you should create a Web Application Project (WAP) in VS and only include your files in the project. When you do this, you then just need to deploy your project’s *.dll‘s to the target server’s /bin/ and any *.aspx or *.ascx files (no code behinds or designer files).

    Now, in theory, you can create a WAP in VS and manually change CodeBehind to CodeFile but then you need to deploy the *cs files. In general, its recommend to use a web app so you can use automation processes like a build server or batch script to build your project.

    The error message you posted is because you’re trying to build the Website Project. A standard non-Sitecore Website Project can be built, but not if its Sitecore since Sitecore itself already exists as a compiled WAP and you cannot exclude files from the project from being built.

    Here is a blog post by the CTO of Sitecore that may help you: Create a Visual Studio 2010 Project for a Sitecore Solution

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

Sidebar

Related Questions

I have one web application which I have been working for some time.I am
I have been working on this for some time now and just cant quite
I have been working in C++ for some time now, but I am unsure
I have been working on this for some time. The script does work and
I have been working on a project for some time, and it has branched
I have been working for some time on an application form for an insurance
Image: https://i.stack.imgur.com/53Ms1.png I have been working with XNA some time now and this is
Okay, I have been working for quite some time on a website for a
I have been working solo on a project for quite some time and am
I have been working with Flixel in FlashDevelop for quite some time, and I

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.