如何在IIS7下果园CMS添加一个ASP.NET MVC的子应用程序? [英] How to add an ASP.NET MVC sub-application under Orchard CMS in IIS7?
问题描述
我已经创建了一个果园CMS像www.testurl.com一个博客网址我想有在地址www.testurl.com/subsite另一个子网站
I have created an orchard cms blog with a url like www.testurl.com I would like to have another sub site at the address www.testurl.com/subsite
我添加在IIS7的应用和果园博客工作正常,但当我尝试访问的网址:www.testurl.com/subsite
I have added the application in IIS7 and the orchard blog works fine but when I try to access the URL: www.testurl.com/subsite
我收到以下错误:
编译错误说明:在发生错误
一个资源编译需要此请求提供服务。请
检查下列特定错误详细信息并修改源
code正确。
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
编译器错误信息:CS0246:类型或命名空间名称'果园'
找不到(是否缺少using指令或程序集
引用?)
Compiler Error Message: CS0246: The type or namespace name 'Orchard' could not be found (are you missing a using directive or an assembly reference?)
源错误:
103线:线104:105行:行106:107线:
Line 103: Line 104: Line 105: Line 106: Line 107:
源文件:C:\\的Inetpub \\ wwwroot的\\博客\\ web.config行:105
Source File: c:\inetpub\wwwroot\Blog\Web.config Line: 105
可以这样做?我需要修改果园网站或IIS?
can this be done? do I need to modify the Orchard site or IIS?
感谢
标记
推荐答案
您需要的是一个URL重定向/重写,将处理您的网址,使之指向一个单独的应用程序。
What you need is an URL redirect/rewrite that would handle your URL and make it point to a separate app.
您可以做两方面的:
- 使用 果园的RewriteRules 模块或
- 使用 URL重写 的功能在IIS
这篇关于如何在IIS7下果园CMS添加一个ASP.NET MVC的子应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!