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 8605675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:53:56+00:00 2026-06-12T02:53:56+00:00

My project structure looks like this: src — class library 1 — class library

  • 0

My project structure looks like this:

  • src
    — class library 1
    — class library 2
    — web project
  • bin
    — debug
    — release

The default output directory for an MVC4 web project is .\Bin\ (i.e. within the web project’s directory), but I change it to something like ..\bin\debug\ or ..\bin\release\ to fit my above project structure. It compiles fine and the binaries go to the correct places.

But when I run the project it complains that Could not load type Myproject.MvcApplication, whereas if I don’t make the above changes then it works.

How do I control the location for the binaries? I want the output directory to be completely separate from the source directories – it’s easier to deploy and more secure because I don’t have a mixture of source and binaries in one place.

  • 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-12T02:53:58+00:00Added an answer on June 12, 2026 at 2:53 am

    Short answer, you can’t. It has nothing to do with Visual Studio or even .NET, it’s an IIS restriction.

    The reason is that IIS expects the bin directory to be directly under the web site folder location. This is a security mechanism that you cannot bypass. It’s purpose is to prevent a compromised web site from “escaping” from the bounds of the root directly of the site.

    Why would you even WANT to do this?

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

Sidebar

Related Questions

My structure looks like this \Project1 \src \pkg1 Main.java \pkg2 Auxillary.java \Destination \class \lib
I'm trying to setup my bin-debug folder so that the structure looks like this:
My Java project structure in Eclipse looks like this: myproject src/main/java com.mypackage.mysubpackage1 com.mypackage.mysubpackage2 com.mypackage.mysubpackage3
Im using a asp.net 4.0 project. My file structure looks like this RootSite  -Web.Config
Is this possible in any way? My project folder structure looks like this: my_project:
When applying a multi-project Gradle structure to our project, my settings.gradle looks like this:
I have a file structure that looks something like this: project1_root/ tests/ ... src/
I have a project structure that looks like this: Parent -- ChildProjects1 -- ChildProjects2
My project structure looks like this: parent POM |-- app-core |-- app-model |-- app-services
Part of my project directory structure looks like: \projects\project\main.R \projects\project\src where \src contains a

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.