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

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

博客园 - DiryBoy

修复运行 tasklist 命令时提示 ERROR: Not found 删除坏掉的 Active Directory Domain 为 WSUS 服务器定期运行清理向导 为 Exchange 服务器编写自定义的反垃圾插件 Windows 10 下安装 npm 后全局 node_modules 和 npm-cache 文件夹的设置 在 Win10 命令行使用 Consolas + 微软雅黑 Setting up SSL for SCM-Manager with Microsoft CA and TortoiseHg Installing SCM-Manager 为 IE8 写一个转跳加速器 WPF 实现已绑定集合项目的移除时动画过渡 成功在 Win 7 下用 VirtualBox 装 Win 7,分享一些经验 如何写递归的 Lambda 表达式 使用动态生成的委托提高调用动态程序集的性能 在 Azure 中部署支持 MVC 的 Asp.Net 应用程序 DIY 自己的多点触摸系统 未来就在眼前 用 C# 实现的前缀树 - Trie 自己改造 VSPaste 插件 用C# 写的龙贝格(Romberg)积分法
Win 7 装 SQL Server 2008 后使用 Asp.Net 需要进行的一些配置
DiryBoy · 2010-01-25 · via 博客园 - DiryBoy

我的系统是 64 位的 WIN7,装了 SQL Server 2008 (不是Express)之后发现使用 Profile 的功能都挂了,页面报出各种诡异的黄屏,具体的解决方法是这样的:

需要从 Visual Studio Command Prompt 运行 aspnet_regsql 为 ASP.NET Providers 指定一个数据库(默认是 aspnetdb)

非 Express 版本的 SQL Server 不支持 User Instancing,也就是说在连接字符串中要包括 User Instance=false

machine.config 的位置在 64 位系统上至少有两个:

  • %systemroot%\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG
  • %systemroot%\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG

这两个文件修改的内容是:

<connectionStrings>
    <add name="LocalSqlServer" connectionString="Data Source=.\SQLEXPRESS;Integrated Security=True;Initial Catalog=aspnetdb;User Instance=false" providerName="System.Data.SqlClient"/>
</connectionStrings>

注意:记事本需要用管理员账号打开,打开后查找 LocalSqlServer 可以快速定位到这里

还有 IIS 管理控制台那个 LocalSqlServer 连接字符串也要改成上面那样

Win7 的 IIS 7.5 还默认使用了 ApplicationPoolIdentity,不配置 SQL Server 会导致数据库访问出现 Login fail,具体解释可以看以下两个资源:

http://social.msdn.microsoft.com/Forums/zh-TW/236/thread/33f314d7-6c28-47f9-9076-732ef37c6419

http://blog.miniasp.com/post/2009/09/Introduce-IIS-75-Application-Pool-Identity-and-Virtual-Account.aspx

解决方法就在里面了!