Classic ASP using C# .net DLL Object doesn't support this property or method

走远了吗. 提交于 2019-12-06 04:41:31

I already provided some information in comment.

I also feel that you should not have static method for this. It seems that com does not support static method.

http://msdn.microsoft.com/en-us/library/ms182198.aspx

Also you are creating object of class by using Server.CreateObject method so it is quite obvious that you should have instance method for this.

public class Class1
  {
     public string Encrypt(string PlainText)
     {
     [code here]
     }

     public string Decrypt(string EncryptedText)
     {
     [code here]
     }
   }

Hope this help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!