OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Create a new module for the site cuase site crash [5413 (6ea840f570c0)] #1860

Open orchardbot opened 13 years ago

orchardbot commented 13 years ago

Yinhaixia created: https://orchard.codeplex.com/workitem/18033

Run Orchard.Web\bin>Orchard.exe

orchard> codegen module module1 Creating Module module1 Module module1 created successfully

orchard> codegen datamigration module1 Creating Data Migration for module1 Data migration created successfully in Module module1

orchard> codegen controller module1 controller1 A change of configuration requires the session to be restarted. (Retrying...) Initializing Orchard session. (This might take a few seconds...) Creating Controller controller1 in Module module1 Controller controller1 created successfully in Module module1

open the site, the site pop up crash, see the attached file

In addtion, when I open the solution and reload the project, it failed with the error info

"Loading D:\Workspace\Orchard\src\Orchard.Web\Modules\module1\module1.csproj ... D:\Workspace\Orchard\src\Orchard.Web\Modules\module1\module1.csproj : error : The project file 'D:\Workspace\Orchard\src\Orchard.Web\Modules\module1\module1.csproj' cannot be opened.

The project type is not supported by this installation. "

orchardbot commented 13 years ago

@bleroy commented:

Issue is probably the the MVC project type made its way into the new module template (again), probably through a patch we shouldn't have taken. If you don't have MVC installed, VS will refuse to open the project. When we revert that, we should include a big, obvious comment explaining why it should never be added back.