在经典asp中使用实体数据源的aspx页面

时间:2012-06-06 08:04:54

标签: asp.net asp-classic

我们在经典的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下的虚拟目录托管。

1 个答案:

答案 0 :(得分:1)

您收到此消息是因为您没有将目录设置为net application。

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

如果您同时设置两者,可以一起工作,如果您只设置一个,另一个不起作用,那么要运行asp.net,您需要将其指定为Web应用程序,提供池,并拥有所有需要的文件和目录开始。

相关问题