Hosting Umbraco Site with MVC Site in IIS

I created a Umbraco 7 MVC site and deployed it to IIS. So the url looks like this: www.mydomain.com. In a subdirectory, I have placed a separate MVC website. so the url goes for example: www.mydomain.com/MVCApplication.

When I tried to access the app url; He gives

Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

      

So, I added this DLL to the bin folder which is in a subdirectory. Then it throws another error

Could not load file or assembly 'UrlRewritingNet.UrlRewriter' or one of its dependencies. The system cannot find the file specified.

      

The routine seems to be trying to read the root dlls folder or root web.config. The Umbraco site is working fine. When I removed the umbraco site, the sub-app works. Any idea please?

+3


source to share


3 answers


Finally, here is the solution. Had to wrap up <System.web>

with the <system.webServer>

following piece of code in the parent website web.config

. This is not a recommendation issue. It inherited the parent web.config file in sub-web apps:

<location path="." inheritInChildApplications="false">
   <system.web> 
    ...
  </system.web>
</location>

      



Hope this helps someone else too.

+2


source


To disable umbraco inheritance try wrap <system.webserver>

and <system.web>

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

in webconfig



http://www.experts-exchange.com/Networking/Misc/Q_26535962.html

+1


source


Can you add the following line to your web.config

<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

      

This should go to the Compilations> Assemblies section.

<compilation>
   <assemblies>
   </assemblies>
</compilation>

      

Can you also verify that the "UrlRewritingNet.UrlRewriter" dll was installed correctly in the secondary application? You can also try setting the Copy Local link to TRUE. You can see these properties by selecting a specific link and pressing F4 to open the Protests panel.

Hello

0


source







All Articles