我在webfrom 里面  和   winform 用的同样的类  但是调用后  webfrom 里页面一加载
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------试图访问已卸载的 AppDomain。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.AppDomainUnloadedException: 试图访问已卸载的 AppDomain。源错误: 
行 78:             AppDomain ad = AppDomain.CreateDomain("mp3", null, null);
行 79: 
行 80:             CaptureDevicesCollection devices = new CaptureDevicesCollection(); // 枚举音频捕捉设备  
行 81: 
行 82:             Guid deviceGuid = Guid.Empty; // 音频捕捉设备的ID
报如上的错误 
但是我在winform 里面  就不会出现上述问题
 

解决方案 »

  1.   

    asp.net web 应用程序如何解决 mp3 录音  有做过类似的功能的吗?  
      

  2.   

    http://www.leadbbs.com/MINI/Default.asp?205-2519255-0-0-0-0-0-a-.htm
      

  3.   

    在  web 应用程序中 
    using System.Web.Security;
    string upassmd5 = FormsAuthentication.HashPasswordForStoringInConfigFile(upass, "MD5");"123"  加密过后为 "202CB962AC59075B964B07152D234B70"但在winforms 中
    using System.Security.Cryptography; public string Get_MD5_Method(string strSource) 
            { 
                string strResult = "";              //Create 
                System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create(); 
                //注意编码UTF8、UTF7、Unicode等的选择 37  
                byte[] bytResult = md5.ComputeHash(System.Text.Encoding.UTF8.GetBytes(strSource)); 
                //字节类型的数组转换为字符串 
                for (int i = 0; i < bytResult.Length; i++) 
                { 
                //16进制转换 43 
                    strResult = strResult + bytResult[i].ToString("X");  
                } 
                return strResult;  
            } "123"  加密过后为 "202CB962AC5975B964B7152D234B70"  
    为什么两个md5 加密过后的值不一样  
    在winform 中如何 让加密过后的值同 web加密 后的值一样