2012-06-06 70 views
0

我們在經典的asp應用程序中託管了一些aspx頁面。這些aspx頁面使用手動代碼來構建數據源。有沒有辦法使用ObjectDataSource呢?aspx頁面與經典asp中的實體數據源

試圖提示錯誤:

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虛擬目錄。

+0

您確定將名爲asp的失敗事件與.net應用程序混合是一個好主意嗎?仍然不明白爲什麼微軟決定將其稱爲asp.net,因爲它只會讓人感到困惑。 – walther

+0

我相信這樣做不是個好主意。但它已經混淆了。之後它將全部轉換爲NET。 – Nickolodeon

回答

1

您收到此消息是因爲您沒有將您的目錄設置爲網絡應用程序。

你必須明白asp和asp.net是兩種不同的想法。

可以一起工作,如果你同時設置,如果你只設置一個,另一個不工作,所以要運行asp.net你需要將它分配爲網絡應用程序,給一個池,並擁有所有需要的文件和目錄開始。