System error:
System error occurs, the information system records, please try again later or contact your administrator.Error message: Unable to load DLL 'DLLDecrypt.dll ': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))Stack Trace:System.DllNotFoundException: Unable to load DLL 'DLLDecrypt.dll ': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at NKE.Common.ivocallMethod.DecryptDBKey(String KeyStr, String EncryptStr) at NKE.DBUtility.PubConstant.IvoCallClientConnectionString() at NKE.DBUtility.IvoCallDbHelperSQLByLoginClientDB.Query(String SQLString) at NKE.DAL.IvocallCampaigns.GetView(String viewname, String strWhere) at NKE.BLL.IvocallCampaigns.GetView(String viewname, String strWhere) at NKE.Web.synchroIvocall.ivoCallCampaigns.bandcampaigns() at NKE.Web.synchroIvocall.ivoCallCampaigns.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

解决方案 »

  1.   

    补充:  本地调用没问题,放到服务器的bin目录后,就出现上述问题
      

  2.   

    System.DllNotFoundException,没找到dll,你检查路径吧,asp中路径不要写成绝对的
      

  3.   

    非托管调用,像这样
    [DllImport(@"DLLDecrypt.dll ", EntryPoint = "DecryptDBKey", CharSet = CharSet.Ansi)]     
            public static extern string DecryptDBKey(string KeyStr, string EncryptStr);关键本地调试可以