【问题标题】:aspx page with entity datasource in classic asp经典asp中带有实体数据源的aspx页面
【发布时间】:2012-06-10 05:47:24
【问题描述】:

我们在经典的 asp 应用程序中托管了一些 aspx 页面。这些 aspx 页面使用手动代码来构建数据源。有没有办法为此使用 ObjectDataSource?

尝试会报错:

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: The element 'buildProviders' cannot be defined below the application level.

请注意,asp 经典站点是作为 IIS 下的虚拟目录托管的。

【问题讨论】:

  • 你确定将名为 asp 的失败的东西与 .net 应用程序混合是个好主意吗?仍然无法理解为什么微软决定将其命名为 asp.net,因为它只会让人感到困惑。
  • 我确信这样做是个坏主意。但它已经混在一起了。稍后它将全部转换为 NET。

标签: asp.net asp-classic


【解决方案1】:

您收到此消息是因为您没有将目录设置为网络应用程序。

你必须明白asp和asp.net是两种不同的想法。

如果你设置两者可以一起工作,如果你只设置一个,另一个不起作用,所以要运行 asp.net,你需要将它分配为 web 应用程序,给一个池,并拥有所有需要的文件和目录开始。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-09-20
    • 2011-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多