asp.net mvc 3 - Configuring Virtual Directory for Multiproject Areas in MVC3 -


i using technique described in answer: https://stackoverflow.com/a/7167198/22399 set multi-project areas in mvc3. issue, though, seems in configuring iis express, not in technique itself.

i doing wrong in step 7 (using iis express.) keep getting error saying cannot find views (my test area called "sample") here error:

the view 'index' or master not found or no view engine supports searched locations. following locations searched:  ~/areas/sample/views/index/index.aspx<br /> ~/areas/sample/views/index/index.ascx<br /> ~/areas/sample/views/shared/index.aspx<br /> ~/areas/sample/views/shared/index.ascx<br /> ~/views/index/index.aspx<br /> ~/views/index/index.ascx<br /> ~/views/shared/index.aspx<br /> ~/views/shared/index.ascx<br /> ~/areas/sample/views/index/index.cshtml<br /> ~/areas/sample/views/index/index.vbhtml<br /> ~/areas/sample/views/shared/index.cshtml<br /> ~/areas/sample/views/shared/index.vbhtml<br /> ~/views/index/index.cshtml<br /> ~/views/index/index.vbhtml<br /> ~/views/shared/index.cshtml<br /> ~/views/shared/index.vbhtml 

my iis express applicationhost.config set way:

    <site name="vo.mainsite" id="5">         <application path="/" applicationpool="clr4integratedapppool">             <virtualdirectory path="/" physicalpath="d:\{long path}\mainsite\mainsite\mainsite" />         </application>         <application path="/areas/sample" applicationpool="clr4integratedapppool">             <virtualdirectory path="/" physicalpath="d:\{long path}\modules\samplemodule\samplemodule.web" />         </application>         <bindings>             <binding protocol="http" bindinginformation="*:47001:localhost" />         </bindings>     </site> 

which, googling, should correct. have post build process copying dll fine. can put breakpoint in samplecontroller , breakpoint gets hit. looks good, except finding views. suggestions?

be sure views marked embedded resources.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -