foz1284
foz1284

Reputation: 373

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

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

Upvotes: 1

Views: 1324

Answers (1)

Piotr Szmyd
Piotr Szmyd

Reputation: 13366

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

Upvotes: 1

Related Questions