How to add an ASP.NET MVC sub-application under Orchard CMS in IIS7?

99封情书 提交于 2019-12-11 06:39:38

问题


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

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

I get the following error:

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.

Compiler Error Message: CS0246: The type or namespace name 'Orchard' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 103: Line 104: Line 105: Line 106: Line 107:

Source File: c:\inetpub\wwwroot\Blog\Web.config Line: 105

can this be done? do I need to modify the Orchard site or IIS?

thanks

Mark


回答1:


What you need is an URL redirect/rewrite that would handle your URL and make it point to a separate app.

You can do that twofold:

  1. using the Orchard RewriteRules module or
  2. using the URL Rewrite feature in IIS


来源:https://stackoverflow.com/questions/8849584/how-to-add-an-asp-net-mvc-sub-application-under-orchard-cms-in-iis7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!