Archived Forum Post

Index of archived forum posts

Question:

error CS1061: 'Chilkat.MessageSet' does not contain a definition for 'LastErrorText' and no extension method 'LastErrorText' accepting a first argument of type 'Chilkat.MessageSet' could be found

Jun 04 '15 at 16:59

After installing version 9.5.0.50 compile fails.

error CS1061: 'Chilkat.MessageSet' does not contain a definition for 'LastErrorText' and no extension method 'LastErrorText' accepting a first argument of type 'Chilkat.MessageSet' could be found (are you missing a using directive or an assembly reference?)

Metadata for that object indicates that the property is no longer available, but the documentation says it should be. Has the implementation changed?

region Assembly ChilkatDotNet45.dll, v9.5.0.50

// C:TFS3Capture5.3SourceCaptureThirdPartyChilkatChilkatDotNet45.dll

endregion

using System; using System.Runtime.ExceptionServices;

namespace Chilkat { public class MessageSet : IDisposable { public MessageSet(); public MessageSet(void* impl);

    public int Count { get; }
    public bool HasUids { get; set; }

    public bool ContainsId(int id);
    public override sealed void Dispose();
    [HandleProcessCorruptedStateExceptions]
    protected virtual void Dispose(bool A_0);
    public bool FromCompactString(string str);
    public int GetId(int index);
    public void* getImpl();
    public void InsertId(int id);
    public void RemoveId(int id);
    public string ToCommaSeparatedStr();
    public string ToCompactString();
}

}


Answer

Re-import the .NET assembly. The LastErrorText and other standard methods/properties have been removed for a few lightweight objects (for cases where the object is too simply to justify the overhead of having these standard properties/methods). The documentation will be updated..


Answer

The lightweight Chilkat classes without LastErrorText are:

MessageSet
Mailboxes
SFtpFile
SFtpDir
Url
ZipCrc