How to add an ASP.NET MVC sub-application under Orchard CMS in IIS7?
-
27-10-2019 - |
Question
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
Solution
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:
- using the Orchard RewriteRules module or
- using the URL Rewrite feature in IIS