2013-08-18 36 views
0

我想在我的web應用程序中創建一個簡單的XtraReport。 爲此,我在App_Code文件夾中創建一個DataSet類,並從它的「服務器資源管理器」工具欄中拖動表格。但是這個新創建的DataSet類不會顯示在XtraReport的DataSource下拉列表中。此外,當我建立網站然後很多錯誤(幾乎16個消息+ 10個錯誤)發生象這些..如何在XtraReport中設置數據集

「錯誤:**

The type 'Oracle.DataAccess.Client.OracleCommand' exists in both 'c:\Windows\assembly\GAC_32\Oracle.DataAccess\2.112.3.0__89b483f429c47342\oracle.dataaccess.dll' and 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Oracle.DataAccess.dll' c:\Users\Awaidus\AppData\Local\Temp\Temporary ASP.NET Files\surveybuilder\8874cc1e\a1214053\App_Code.qqrotzbv.4.cs

Message 1 Could not find schema information for the element 'devExpress'. D:\Awaidus\Documents\visual studio 2012\Project\Global\SurveyBuilder\web.config 118 3 D:...\SurveyBuilder

Message 2 Could not find schema information for the element 'themes'. D:\Awaidus\Documents\visual studio 2012\Project\Global\SurveyBuilder\web.config 119 4 D:...\SurveyBuilder\

Message 6 Could not find schema information for the attribute 'customThemeAssemblies'. D:\Awaidus\Documents\visual studio 2012\Project\Global\SurveyBuilder\web.config 119 67 D:...\SurveyBuilder\

Message 10 Could not find schema information for the attribute 'enableResourceCompression'. D:\Awaidus\Documents\visual studio 2012\Project\Global\SurveyBuilder\web.config 120 79 D:...\SurveyBuilder\

Message 14 Could not find schema information for the attribute 'doctypeMode'. D:\Awaidus\Documents\visual studio 2012\Project\Global\SurveyBuilder\web.config 121 33 D:...\SurveyBuilder\

等等等等等等等等等等。等等,等等等等等等等等等等等等

我所限定的web.config中的ConnectionString文件是如下:

<connectionStrings> 
    <add name="OralceConnectionString" 
     connectionString="DATA SOURCE=SOHAIB;PASSWORD=pak;PERSIST SECURITY INFO=True;USER ID=AWAIDUS" 
     providerName="Oracle.DataAccess.Client" /> 
    </connectionStrings> 

,並從下面的「ConnectionManager.cs」此連接類如下:

public class ConnectionManager 
{ 
    public static OracleConnection getSohaibOracleConnection() 
    { 
     string connectionString = ConfigurationManager.ConnectionStrings["OralceConnectionString"].ConnectionString; 
     OracleConnection connection = new OracleConnection(connectionString); 

     connection.Open(); 
     return connection; 
    } 
} 

它也提到在這裏,我創建App_Code文件夾以外的DataSet類(如網站或某處根文件夾else),那麼這些錯誤消失了,但DataSet類仍然不顯示在XtraReport頁面中。請幫助我。我很困擾這個問題。我做什麼用DataSet類創建XtraReport。 許多thanxx和問候,

Awaidus

回答

0

我意識到,甲骨文正在給二版他們的Oracle數據提供一個2.0框架和第二的4.0。每當我把表拖入DataSet.xsd類,然後4.0版插入到我的程序集中,而我使用2.0版本,這就是爲什麼編譯器抱怨我有很多錯誤。所以我剛剛刪除了2.0版本並添加了Oracel.DataAccess程序集版本4.0.xx.x並解決了我的問題。 請認爲這是答案如果您在使用Oracle時面對這些錯誤。 謝謝。

相關問題