Monday, April 22, 2013

csharp develop error log

1.error log 1:

错误    22    “SBFJCAENANDSIGNLib.SBFjCAEnAndSignClass.SBFJCAENANDSIGNLib._DSBFjCAEnAndSign.ServerCert”: 虚拟成员或抽象成员不能是私有的    D:\work\svn\jm\esign\src\Interop.SBFJCAENANDSIGNLib\SBFJCAENANDSIGNLib\SBFjCAEnAndSignClass.cs    62    31    SBFJCAENANDSIGNLib




fixed:


old is:

 [DispId(2)]
public virtual string SBFJCAENANDSIGNLib._DSBFjCAEnAndSign.ServerCert { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(2)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(2)] set; }

[DispId(1)]
public virtual string SBFJCAENANDSIGNLib._DSBFjCAEnAndSign.ServerData { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(1)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(1)] set; }

[DispId(3)]
public virtual string SBFJCAENANDSIGNLib._DSBFjCAEnAndSign.ServerSignData { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(3)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(3)] set; }

[DispId(2)]
public virtual string ServerCert { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(2)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(2)] set; }

[DispId(1)]
public virtual string ServerData { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(1)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(1)] set; }

[DispId(3)]
public virtual string ServerSignData { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(3)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(3)] set; }

delete some rows:



[DispId(2)]
public virtual string ServerCert { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(2)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(2)] set; }

[DispId(1)]
public virtual string ServerData { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(1)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(1)] set; }

[DispId(3)]
public virtual string ServerSignData { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(3)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(3)] set; }





2.error log 2:


错误    20    命名空间“System.Security”中不存在类型或命名空间名称“SecurityRules”(是否缺少程序集引用?)    D:\work\svn\jm\esign\src\Interop.SBFJCAENANDSIGNLib\AssemblyInfo.cs    4    28    SBFJCAENANDSIGNLib

错误    19    命名空间“System.Security”中不存在类型或命名空间名称“SecurityRulesAttribute”(是否缺少程序集引用?)    D:\work\svn\jm\esign\src\Interop.SBFJCAENANDSIGNLib\AssemblyInfo.cs    4    28    SBFJCAENANDSIGNLib




fixed:


delete the line:

[assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level2)]




3.error 3

error CS0423: 由于“SBFJCAENANDSIGNLib.SBFjCAEnAndSignClass”具有 ComImport 特性,因此“SBFJCAENANDSIGNLib.SBFjCAEnAndSignClass.ServerCert.get”必须是外部的或抽象的



fixed:


wait for me.

No comments: