0

我在 Orchard 1.8 中创建了我的模块,在 orchard 1.8.1 中安装它时出现错误:

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 89:                 <add namespace="System.Web.Routing"/>
Line 90:                 <add namespace="System.Web.WebPages"/>
Line 91:                 <add namespace="Orchard.Mvc.Html"/>
Line 92:             </namespaces>
Line 93:         </pages>

该错误是由 ajax 调用引起的。我已经检查过我使用的是与以前版本相同的 jquery。任何想法为什么会发生这种情况?

4

1 回答 1

0

我发现了错误。它在 web.config 中,因为我在必须添加的同一个应用程序池中运行 webapi,因此 webapi 确实从 Orchard 继承。所以问题根本不在版本中。

于 2015-03-13T08:07:14.433 回答