I've an asp.internet mvc application, phpBB forum and asp.internet webservice which i would like them all within the same wwwroot.

My hosting that is shared enables virtual sites and so i went a mind making one. It made your directory plus some web.config inside it.

Then i submitted my asp.internet webservice and overrode the net.config which was in virtual directory using the one in the webservice.

 Couldn't load file or set up 'System.Web.Mvc, Version=1..., Culture=neutral, PublicKeyToken=31bf3856ad364e35' a treadmill of their dependencies. The machine cannot discover the file specified.

Description: An unhandled exception happened throughout the execution from the current web request. Please evaluate the stack trace to learn more concerning the error and where it came from within the code.

Exception Particulars: System.IO.FileNotFoundException: Couldn't load file or set up 'System.Web.Mvc, Version=1..., Culture=neutral, PublicKeyToken=31bf3856ad364e35' a treadmill of their dependencies. The machine cannot discover the file specified.

Source Error:

An unhandled exception was produced throughout the execution from the current web request. Specifics of the foundation and placement from the exception could be recognized while using exception stack trace below.

Set up Load Trace: The next information could be useful to find out why the set up 'System.Web.Mvc, Version=1..., Culture=neutral, PublicKeyToken=31bf3856ad364e35' couldn't be loaded.

WRN: Set up binding logging is switched OFF.

Make it possible for set up bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to at least one.

Note: There's some performance penalty connected with set up bind failure logging.

To show this feature off, take away the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].

Stack Trace:

[FileNotFoundException: Couldn't load file or set up 'System.Web.Mvc, Version=1..., Culture=neutral, PublicKeyToken=31bf3856ad364e35' a treadmill of their dependencies. The machine cannot discover the file specified.]

   System.Reflection.Set up._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Set up locationHint, StackCrawlMark&lifier stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +

   System.Reflection.Set up.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Set up locationHint, StackCrawlMark&lifier stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43

   System.Reflection.Set up.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&lifier stackMark, Boolean forIntrospection) +127

   System.Reflection.Set up.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&lifier stackMark, Boolean forIntrospection) +142

   System.Reflection.Set up.Load(String assemblyString) +28

   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Couldn't load file or set up 'System.Web.Mvc, Version=1..., Culture=neutral, PublicKeyToken=31bf3856ad364e35' a treadmill of their dependencies. The machine cannot discover the file specified.]

   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613

   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +57

   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178

   System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +163

   System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +53

   System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +175

   System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +83

   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +261

   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101

   System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +83

   System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath) +10

   System.Web.UI.WebServiceParser.GetCompiledType(String inputFile, HttpContext context) +43

   System.Web.Services.Methods.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +180

   System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +47

   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +307

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&lifier completedSynchronously) +155

And So I have no idea why it wants the MVC .dll could it be mad because I erased the default web.config within the virtual directory?

Ok I've this

    <location path="." inheritInChildApplications="false">

        <compilation debug="true">

            <assemblies>

                <add set up="System.Core, Version=3.5.., Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

                <add set up="System.Web.Extensions, Version=3.5.., Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                <add set up="System.Web.Abstractions, Version=3.5.., Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                <add set up="System.Web.Routing, Version=3.5.., Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                <add set up="System.Web.Mvc, Version=1..., Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                <add set up="System.Data.DataSetExtensions, Version=3.5.., Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

                <add set up="System.Xml.Linq, Version=3.5.., Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

                <add set up="System.Data.Linq, Version=3.5.., Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

                <add set up="System.Data.Entity, Version=3.5.., Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

            </devices>

        </compilation>

    </location>

however i understand this

Configuration Error

Description: A mistake happened throughout the processing of the configuration file needed to service this request. Please evaluate the specific error particulars below and modify your configuration file properly.

Parser Error Message: <location> sections are permitted only within <configuration> sections.

Source Error:

Line 68:             throughout development.

Line 69:     -->

Line 70:        <location path="." inheritInChildApplications="false">

Line 71:            <compilation debug="true">

Line 72:                <assemblies>

I additionally attempted this

<configuration>

  <location path="."  inheritInChildApplications="false">

    <configSections>

Therefore it wants configSections first but I don't know where you can move it

 Configuration Error

Description: A mistake happened throughout the processing of the configuration file needed to service this request. Please evaluate the specific error particulars below and modify your configuration file properly.

Parser Error Message: Just one <configSections> element permitted per config file and when present should be the very first child from the root <configuration> element.

Source Error:

Line 10: <configuration>

Line 11:   <location path="."  inheritInChildApplications="false">

Line 12:    <configSections>

Line 13:        <sectionGroup title="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.., Culture=neutral, PublicKeyToken=31BF3856AD364E35">

Line 14:            <sectionGroup title="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.., Culture=n