2014-08-29 31 views
0

我今天第一次在Debian上使用mono,並且在加載我的.dll時出現錯誤。我正在使用Linq to SQL單聲道2.8(4.0 .net)引發NotImplementedException的方法

錯誤狀態:在程序集中缺少方法.ctor,輸入System.Runtime.CompilerServices.ExtensionAtribute無法找到自定義attr構造函數圖像。

於是,我又試圖紐約現代藝術博物館的工具,我展示這些錯誤

拋出NotImplementedException

void .ctor()      void DataContext..ctor (string, MappingSource) 
void .ctor (string)     void DataContext..ctor (string, MappingSource) 
void .ctor (string, MappingSource)  void DataContext..ctor (string, MappingSource) 
void LoadAll()      void DataContext.set_CommandTimeout (int) 

這是從我的代碼

public SwitchDataDataContext(string connection) : 
      base(connection, mappingSource) 
    { 
     OnCreated(); 
    } 

所以調用方法的方法,我能活沒有超時,但其他我認爲是連接字符串的構造函數。

我正在編譯VS 4.5.2,如果那麼重要,然後把它交給Debian。

比重新編碼到ADO.NET 感謝 其他任何想法安德烈

+2

單聲道2.8已過時,您應該使用3. *現在。 http://www.mono-project.com/download/ – 2014-08-30 04:09:56

+0

有沒有辦法看到當前版本?我剛安裝它。我認爲它是2.8。可能是錯的。 – 2014-08-30 12:15:00

+0

看起來像你是正確的。有趣的是我昨天從他們的網頁上下載了它。我仍然想知道如何驗證版本。 tks – 2014-08-30 13:18:40

回答

0

我有錯誤的版本。升級到最新的固定它。