如何在IIS 7中设置ASP.NET MVC 3子应用程序? [英] How to set up an ASP.NET MVC 3 sub-application in IIS 7?

查看:113
本文介绍了如何在IIS 7中设置ASP.NET MVC 3子应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在IIS 7上设置MVC 3 sup-application.根应用程序也是MVC 3应用程序.

I try set up an MVC 3 sup-application on IIS 7. Root app is a MVC 3 application too.

因此,我的根应用程序在www.mysite.com上运行-子应用程序必须是www.myapp.com/subapp

So, my root app runs on www.mysite.com - sub-app must be www.myapp.com/subapp

我认为问题出在web.config ...

I think the problem is in web.config...

推荐答案

该应用程序和子应用程序必须在同一版本的.NET上运行.

The application and sub application have to be running on the same version of .NET.

此外,与web.configs存在父/子关系-因此,除非被告知不要使用配置中的"inheritInChildApplications",否则子应用程序将继承父级web.config.

In addition, there is a parent/child relationship with the web.configs - so the child application will inherit the parents web.config unless told not to do so using 'inheritInChildApplications' in the configs.

这篇关于如何在IIS 7中设置ASP.NET MVC 3子应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆