为什么在加密连接字符串中出现resive错误? [英] why resive error in encrypt connection string?

查看:350
本文介绍了为什么在加密连接字符串中出现resive错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

此链接中有加密连接字符串的解决方案。 [ ^ ]

i ,我试图加密以下连接,但错误发生:

hi everyone.
there is a solution for encrypt connection string in this link.[^]
i,m trying to encrypt below connection, but error ocured:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="LoginDBConnectionString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\Database.accdb;Jet OLEDB:Database Password=******"/>
</connectionStrings>
</configuration>



有什么问题?

谢谢。


what's the problem?
thanks.

推荐答案

几个可能的原因:

- | Da taDirectory |不会替换为实际的目录名称。尝试使用固定目录

- 在Microsoft.ACE.OLEDB.12之后你有额外的空间。 0之前
Few probable causes:
- the |DataDirectory| isn't replaced with an actual directory name. Try using a fixed directory
- you have extra space after Microsoft.ACE.OLEDB.12. before 0


谢谢。

我很抱歉空格。这是我的错。但是关于| DataDirectory |,我听说它是​​保留语句并引用app.path?

不是吗?
thanks.
I'm so sorry about spaces. this is my fault. but about |DataDirectory|, I'm heared it is reserved statement and refer to app.path?
isn't it?


这篇关于为什么在加密连接字符串中出现resive错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆