2012-01-15 14 views
6

से 'System.Runtime.CompilerServices.ReferenceAssemblyAttribute' टाइप नहीं कर सका। मुझे अपने सीएसएचआरपी मोनो एप्लिकेशन को संकलित करने में समस्या हो रही है।मोनो संकलन त्रुटि - असेंबली 'सिस्टम'

मेरे मोनो संस्करण 2.10.2

है यह त्रुटि मैं विधानसभा /home/tmc/AcctTerm/System.dll, प्रकार System.Runtime में

गुम विधि .ctor प्राप्त कर रहा है। CompilerServices.ReferenceAssemblyAttribute कस्टम attr निर्माता छवि नहीं मिली: /home/tmc/AcctTerm/System.dll mtoken: 0x0a000054

बिना क्रिया के अपवाद: System.TypeLoadException: लोड नहीं कर सका प्रकार 'System.Runtime.CompilerServices.ReferenceAssemblyAttribute' असेंबली से 'सैम 'स्टेम। conAccountTerminator.cjcAccountTerminator..ctor पर() [0x00000] में: conAccountTerminator.MainClass.Main (System.String [] args) पर 0 [0x00000] में: 0

कोई भी विचार?

संपादित करें: कोड जोड़ना;

using System; 
using System.Net; 
using System.Collections; 
using System.Web; 
using System.Text; 
using System.IO; 
using MySql; 
using MySql.Data; 
using MySql.Data.MySqlClient; 
using System.Security; 
using System.Security.Authentication; 
using System.Net.Security; 
using System.Security.Cryptography; 
using System.Security.Cryptography.X509Certificates; 
using System.Data; 
using System.Xml; 

namespace conAccountTerminator 
{ 
    class MainClass 
    { 
     public static void Main(string[] args) 
     { 
      cjcAccountTerminator cjcAccountTerm = new cjcAccountTerminator(); 

      switch (args[0]) 
      { 
       case "update": 
        cjcAccountTerm.LoginToMyBilling(); 
        break; 
       case "notepad": 
        cjcAccountTerm.UpdateCustomerData(args[1], args[2]); 
        break; 
       case "terminate": 
        cjcAccountTerm.TerminateAccount(args[1]); 
        break; 
      } 
     }   
    } 
} 
+0

क्या आपके पास साझा करने के लिए कोई कोड है? यह कन्स्ट्रक्टर के साथ एक कस्टम विशेषता की तरह दिखता है। – Coder2000

+0

वहां कुछ मजाकिया पथ हैं, क्या आपके पास/home/tmc/AccTerm में एक मोनो इंस्टॉल है? System.dll के लिए एक अजीब जगह की तरह लग रहा है – IanNorton

उत्तर

4

ReferenceAssemblyAttribute हाल ही में एक विशेषता है, पहले में FX 4.0 देखा है।

कृपया सुनिश्चित करें कि आप मोनो 'dmcs संकलक (या -sdk=4 साथ mcs) का उपयोग कर रहे यह सुनिश्चित करने के mscorlib.dll (4.0) के एक संस्करण के साथ लिंक कर रहे हैं विशेषता मौजूद है।

संबंधित मुद्दे