【发布时间】: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