惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
Cisco Talos Blog
Cisco Talos Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Scott Helme
Scott Helme
Project Zero
Project Zero
E
Exploit-DB.com RSS Feed
S
Secure Thoughts
K
Kaspersky official blog
L
Lohrmann on Cybersecurity
NISL@THU
NISL@THU
WordPress大学
WordPress大学
N
News and Events Feed by Topic
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LINUX DO - 热门话题
小众软件
小众软件
P
Privacy & Cybersecurity Law Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
Hacker News: Ask HN
Hacker News: Ask HN
AWS News Blog
AWS News Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hacker News: Front Page
F
Full Disclosure
Latest news
Latest news
Schneier on Security
Schneier on Security
The Hacker News
The Hacker News
T
Troy Hunt's Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Jina AI
Jina AI
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
TaoSecurity Blog
TaoSecurity Blog
G
GRAHAM CLULEY
Forbes - Security
Forbes - Security
V
V2EX - 技术
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Vulnerabilities – Threatpost
C
Cyber Attacks, Cyber Crime and Cyber Security
MongoDB | Blog
MongoDB | Blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
P
Privacy International News Feed
C
Check Point Blog
N
News and Events Feed by Topic

博客园 - 园友28312

用Visual C#实现MVC模式的简要方法 Visual C#常用函数和方法集汇总 需要Niagara邀请码的伙伴可以联系 一个通过百度贴吧找到身份证失主的案例(供参考) 家庭多层路由器网络不通设置问题一解 原创点滴 丽香之行 二 云南旅游之吸引力——文化 丽香之行(一) 小岛上的故事==浅显易懂的经济学故事,值得看看 今年有意义的生日--接受革命的洗礼 有幸重新体验了两件儿时的往事,勾起了一点回忆 通过2009年12月5日PMP考试纪念一下 昨晚(2009-09-08),自己的第一个项目上线成功,踩个脚印 重庆(四川)方言汇总(北方人到重庆可以先看看) js函数(比较全) - 园友28312 - 博客园 将权限授予文件夹和程序集 在奥运开幕式上,日本代表队拿着太阳旗和五星红旗什么意思?大家讨论一下 身份证号码 C#获取硬盘编号、CPU编号及类型、内存大小及使用情况
ASP.NET连接带密码Access的方法
园友28312 · 2008-07-18 · via 博客园 - 园友28312

虽然Access加上密码破解起来非常容易,但是出于一些安全性的考虑,还是要做一下的。

1、为Access加上密码

先打开 Microsoft Access,选择“文件-打开”,选择好要加密的mdb数据库文件,展开“打开”按钮(注意:按钮旁边有一个下拉的选项),并选择“以独占方式打开”。打开mdb数据库文件以后(这里我打开的是weste_net.mdb数据库),选择“工具-安全-设置数据库密码”,在“密码”和“验证”文本框中输入相同的密码,关闭数据库即可。

2、相应的连接字符串

在Web.config加入

<appSettings> <add key="oleDSN" value="Provider=Microsoft.Jet.OLEDB.4.0;Data source="/> <add key="oleFile" value="~/DataBase/weste_net.mdb;" /></appSettings>

在相应连接处这样写

string strConn = ConfigurationSettings.AppSettings["oleDSN"]+Server.MapPath(ConfigurationSettings.AppSettings["oleFile"].Trim())+"Jet OLEDB:Database Password=123456";//Database Password就是设置好的密码
OleDbConnection conn = new OleDbConnection(strConn);

这样就可以了。

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\bin\Debug\DB.mdb;Persist Security Info=True;Jet OLEDB:Database Password=10

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""D:\aa.mdb"";Jet OLEDB:Database Password=1";

==============

//以下是解决方法--------------------------------
1.进入DOS命令行
2.cd \
3.cd c:\windows\microsoft.net\framework\v2.0.50727
4.然后执行命令 aspnet_regiis -ga administrator //注:administrator为当前登录用户名
5.aspnet_regiis -i -enable
6.net stop iisadmin
7.net start w3svc
//对了说一下,aspnet_regiis.exe这个程序是在c:\windows\microsoft.net\framework\v2.0.50727目录下的,如果你的不是windows xp sp2,那么请您搜寻该程序,只要执行相同的命令即可.

导致错误的原因:

先装visual studio 2005后装IIS,导致asp.net没有注册成功。

=================

当您尝试查看 ASP.NET 应用程序中的页面时,可能会收到以下错误信息:

Server Application Unavailable

The web application you are attempting to access on this web server is currently unavailable.Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note:An error message detailing the cause of this specific request failure can be found in the system event log of the web server.Please review this log entry to discover what caused this error to occur.

还会在应用程序事件日志中显示以下错误信息:

aspnet_wp.exe could not be started.HRESULT for the failure:80070005

事件类型: 错误
事件来源: ASP.NET 1.1.4322.0
事件种类: 无
事件 ID: 1084
日期:  2005-12-10
事件:  0:00:44
用户:  N/A
计算机: NHUCC1
描述:
aspnet_wp.exe could not be started. The error code for the failure is

80070545. This error can be caused when the worker process account has

insufficient rights to read the .NET Framework files. Please ensure

that the .NET Framework is correctly installed and that the ACLs on the

installation directory allow access to the configured account.

原因

出现此问题的原因是进程模型用户帐户(默认情况下为 ASPNET)没有所需系统文件和文件夹的正确用户权限,以便运行 ASP.NET 工作进程。

替代方法

要解决此问题,请验证该 ASPNET 帐户拥有如下所示的正确用户权限:

%windir%\Microsoft.NET\Framework\Version\Temporary ASP.NET 文件:完全控制
%windir%\Temp:完全控制
应用程序文件夹:读取
%installroot% 层次结构(例如,%windir%\Microsoft.Net\Framework\Version):读取
%windir%\Assembly:读取

注意:这是全局程序集缓存。不能直接使用 Windows 资源管理器编辑此文件夹的 ACL。正确做法是,打开命令窗口,然后运行以下命令:

cacls %windir%\assembly /e /t /p domain\useraccount:R

另外,在使用 Windows 资源管理器之前,请先运行以下命令以取消对 Shfusion.dll 的注册:

regsvr32–u shfusion.dll

在 Windows 资源管理器中设置了用户权限后,请运行以下命令重新注册 Shfusion.dll:

regsvr32 shfusion.dll

网站根目录(例如,%root%\Inetpub\Wwwroot)或默认网站指向的路径:读取
%windir%\System32:读取
(通常情况下,ASPNET 帐户已被授予了用户组成员的用户权限。)

状态

请定期更改 ASPNET 帐户的密码。每次安装产品时会重新为 ASPNET 帐户设置密码。 这种现象是设计导致的。
==============
替换:模板中的空格和回车符
dd.Replace("\r\n", "<br>").Replace(" ", "&nbsp;");