asp.net mvc - Do Virtual Directories in shared hosting conflict with stuff in wwwroot? -


i have asp.net mvc application, phpbb forum , asp.net webservice want them in same wwwroot.

my shared hosting allows virtual directories went head , made one. made directory , web.config in it.

i uploaded asp.net webservice , overrode web.config in virtual directory 1 webservice.

 not load file or assembly 'system.web.mvc, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file specified. description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.  exception details: system.io.filenotfoundexception: not load file or assembly 'system.web.mvc, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file specified.  source error:  unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.  assembly load trace: following information can helpful determine why assembly 'system.web.mvc, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' not loaded.  wrn: assembly binding logging turned off. enable assembly bind failure logging, set registry value [hklm\software\microsoft\fusion!enablelog] (dword) 1. note: there performance penalty associated assembly bind failure logging. turn feature off, remove registry value [hklm\software\microsoft\fusion!enablelog].   stack trace:  [filenotfoundexception: not load file or assembly 'system.web.mvc, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file specified.]    system.reflection.assembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, assembly locationhint, stackcrawlmark& stackmark, boolean throwonfilenotfound, boolean forintrospection) +0    system.reflection.assembly.nload(assemblyname filename, string codebase, evidence assemblysecurity, assembly locationhint, stackcrawlmark& stackmark, boolean throwonfilenotfound, boolean forintrospection) +43    system.reflection.assembly.internalload(assemblyname assemblyref, evidence assemblysecurity, stackcrawlmark& stackmark, boolean forintrospection) +127    system.reflection.assembly.internalload(string assemblystring, evidence assemblysecurity, stackcrawlmark& stackmark, boolean forintrospection) +142    system.reflection.assembly.load(string assemblystring) +28    system.web.configuration.compilationsection.loadassemblyhelper(string assemblyname, boolean stardirective) +46  [configurationerrorsexception: not load file or assembly 'system.web.mvc, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find 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.protocols.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& completedsynchronously) +155 

so have no clue why wants mvc .dll mad because deleted default web.config in virtual directory?

ok have this

    <location path="." inheritinchildapplications="false">         <compilation debug="true">             <assemblies>                 <add assembly="system.core, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>                 <add assembly="system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>                 <add assembly="system.web.abstractions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>                 <add assembly="system.web.routing, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>                 <add assembly="system.web.mvc, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>                 <add assembly="system.data.datasetextensions, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>                 <add assembly="system.xml.linq, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>                 <add assembly="system.data.linq, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>                 <add assembly="system.data.entity, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>             </assemblies>         </compilation>     </location> 

but this

configuration error description: error occurred during processing of configuration file required service request. please review specific error details below , modify configuration file appropriately.  parser error message: <location> sections allowed within <configuration> sections.  source error:  line 68:             during development. line 69:     --> line 70:        <location path="." inheritinchildapplications="false"> line 71:            <compilation debug="true"> line 72:                <assemblies> 

i tried this

<configuration>   <location path="."  inheritinchildapplications="false">     <configsections> 

so wants configsections first not sure move it

 configuration error description: error occurred during processing of configuration file required service request. please review specific error details below , modify configuration file appropriately.  parser error message: 1 <configsections> element allowed per config file , if present must first child of root <configuration> element.  source error:  line 10: <configuration> line 11:   <location path="."  inheritinchildapplications="false"> line 12:    <configsections> line 13:        <sectiongroup name="system.web.extensions" type="system.web.configuration.systemwebextensionssectiongroup, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"> line 14:            <sectiongroup name="scripting" type="system.web.configuration.scriptingsectiongroup, system.web.extensions, version=3.5.0.0, culture=n 

did put mvc dlls in /bin folder?

sometimes work locally because mvc bins in gac, may not in gac on server.

eta:

sounds maybe webservice virtual inheriting settings main web. have in main web.config:

    <compilation debug="true">         <assemblies>             <add assembly="system.core, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>             <add assembly="system.web.mvc, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>             <add assembly="system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>             <add assembly="system.web.abstractions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>             <add assembly="system.web.routing, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>             <add assembly="system.data.datasetextensions, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>             <add assembly="system.xml.linq, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>             <add assembly="system.data.linq, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>         </assemblies>     </compilation> 

try surrounding (or whole <system.web> section) this:

<location path="." inheritinchildapplications="false"> .... </location>  

more info here


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -