﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-永春阁</title><link>http://www.cnblogs.com/firstyi/</link><description>专注于技术，切不可沉湎于技术</description><language>zh-cn</language><lastBuildDate>Thu, 28 Aug 2008 14:54:33 GMT</lastBuildDate><pubDate>Thu, 28 Aug 2008 14:54:33 GMT</pubDate><ttl>60</ttl><item><title>C#读取WORD时发生“拒绝访问”及“消息筛选器显示应用程序正在使用中”异常的处理</title><link>http://www.cnblogs.com/firstyi/archive/2008/08/27/1277307.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Wed, 27 Aug 2008 01:26:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/08/27/1277307.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1277307.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/08/27/1277307.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1277307.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1277307.html</trackback:ping><description><![CDATA[&nbsp;
<p><strong>Asp.net中建立MS office组件时出现&#8220;拒绝访问&#8221;和&#8220;消息筛选器显示应用程序正在使用中&#8221;错误的解决方法<br />
</strong><br />
Asp.net中建立Microsoft.Office.Interop.Word.Application时出现&#8220;拒绝访问&#8221;错误的解决方法 </p>
<p>&nbsp;</p>
<p>项目中要实现在服务器端打开一个Word模版文件，修改其内容后再下载到客户端使用，在Asp.net页面中建立Microsoft.Office.Interop.Word.Application对象时出现&#8220;拒绝访问&#8221;的错误，提示信息如下： </p>
<p><font color="#ff0000">拒绝访问。<br />
说明: 执行当前 Web 请求期间，出现未处理的异常。请检查堆栈跟踪信息，以了解有关该错误以及代码中导致错误的出处的详细信息。 <br />
异常详细信息: System.UnauthorizedAccessException: 拒绝访问。 <br />
ASP.NET 未被授权访问所请求的资源。请考虑授予 ASP.NET 请求标识访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常，在 IIS 5 上为 {MACHINE}\ASPNET，在 IIS 6 上为网络服务)。<br />
如果应用程序正在通过&lt;identity impersonate="true"/&gt;模拟，则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。<br />
若要授予 ASP.NET 对文件的写访问权，请在资源管理器中右击该文件，选择&#8220;属性&#8221;，然后选择&#8220;安全&#8221;选项卡。单击&#8220;添加&#8221;添加适当的用户或组。突出显示 ASP.NET 帐户，选中所需访问权限对应的框。</font> </p>
<p>1、在命令行中输入：dcomcnfg，会显示出&#8220;组件服务&#8221;管理器 <br />
2、打开&#8220;组件服务-&gt;计算机-&gt;我的电脑-&gt;DCOM 配置&#8221;，找到&#8220;Microsoft Word文档&#8221;，单击右键，选择&#8220;属性&#8221; <br />
3、在&#8220;属性&#8221;对话框中单击&#8220;安全&#8221;选项卡，在&#8220;启动和激活权限&#8221;处选择&#8220;自定义&#8221;，再单击右边的&#8220;编辑&#8221;，在弹出的对话框中添加&#8220;ASPNET&#8221;（在IIS6中是NETWORD SERVICE）用户，给予&#8220;本地启动&#8221;和&#8220;本地激活&#8221;的权限，单击&#8220;确定<br />
4、在&#8220;属性&#8221;对话框中单击&#8220;安全&#8221;选项卡，在&#8220;访问权限&#8221;处选择&#8220;自定义&#8221;，再单击右边的&#8220;编辑&#8221;，在弹出的对话框中添加&#8220;ASPNET&#8221;（在IIS6中是NETWORD SERVICE）用户，给予&#8220;本地访问&#8221;的权限，单击&#8220;确定&#8221;，关闭&#8220;组件服务&#8221;管理器。 </p>
<p><font color="#ff0000">消息筛选器显示应用程序正在使用中。&nbsp;&nbsp;<br />
说明: 执行当前 Web 请求期间，出现未处理的异常。请检查堆栈跟踪信息，以了解有关该错误以及代码中导致错误的出处的详细信息。&nbsp;&nbsp;<br />
异常详细信息: System.Runtime.InteropServices.COMException: 消息筛选器显示应用程序正在使用中。 </font></p>
<p>1、在命令行中输入：dcomcnfg，会显示出&#8220;组件服务&#8221;管理器 <br />
2、打开&#8220;组件服务-&gt;计算机-&gt;我的电脑-&gt;DCOM 配置&#8221;，找到&#8220;Microsoft Word文档&#8221;，单击右键，选择&#8220;属性&#8221;<br />
3、在&#8220;属性&#8221;对话框中单击&#8220;标识&#8221;选项卡，选择&#8220;交互式用户&#8221;&#8221;，关闭&#8220;组件服务&#8221;管理器。</p>
<p>&nbsp;</p>
<p><strong style="color: red">修改好之后如果还不行，在 组件服务-&gt;计算机-&gt;我的电脑 上右键 "停止MS DTC"服务，然后再重启就可以了</strong><br />
</p>
<img src ="http://www.cnblogs.com/firstyi/aggbug/1277307.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41940/" target="_blank">[新闻]惠普139亿美元完成对EDS的收购</a>]]></description></item><item><title>Asp.Net之自定义表达式构造器(ExpressionBuilder)</title><link>http://www.cnblogs.com/firstyi/archive/2008/08/05/1260844.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Tue, 05 Aug 2008 05:05:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/08/05/1260844.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1260844.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/08/05/1260844.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1260844.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1260844.html</trackback:ping><description><![CDATA[摘要: 在Asp.Net的Page页面中我们经常会使用到资源文件。读取资源文件的方式为: Resources:Resource1,Test1 ，这样就可以显示Resource1这个资源文件中的Test1的键值，并且在页面设计过程中就可以正确的显示资源文件中的值了。这里就是使用到了.Net中的表达式构造器，那么它是如何实现的？我们能不能定义自己的表达式构造器呢？本文通过构建一个简单的Xml表达式构造器来说明这一过程。&nbsp;&nbsp;<a href='http://www.cnblogs.com/firstyi/archive/2008/08/05/1260844.html'>阅读全文</a><img src ="http://www.cnblogs.com/firstyi/aggbug/1260844.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41939/" target="_blank">[新闻]搜狗五笔输入法发布</a>]]></description></item><item><title>[Sharepoint2007对象模型]第三回：Web应用程序(SPWebApplication) </title><link>http://www.cnblogs.com/firstyi/archive/2008/08/01/1257592.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Fri, 01 Aug 2008 03:00:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/08/01/1257592.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1257592.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/08/01/1257592.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1257592.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1257592.html</trackback:ping><description><![CDATA[摘要: 在Sharepoint的管理中心创建一个网站的顺序大致如下：创建Web应用程序-〉创建网站集。所以Web应用程序是网站的一个基础，在一个Web应用程序下可以创建多个网站，本回就主要来介绍Web应用程序这个对象模型以及如何使用对象模型来创建一个Web应用程序。&nbsp;&nbsp;<a href='http://www.cnblogs.com/firstyi/archive/2008/08/01/1257592.html'>阅读全文</a><img src ="http://www.cnblogs.com/firstyi/aggbug/1257592.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41938/" target="_blank">[新闻]新学年开始 大学生适用的十大互联网应用</a>]]></description></item><item><title>Sharepoint2007对象模型系列</title><link>http://www.cnblogs.com/firstyi/archive/2008/07/31/1257583.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Thu, 31 Jul 2008 12:01:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/07/31/1257583.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1257583.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/07/31/1257583.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1257583.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1257583.html</trackback:ping><description><![CDATA[摘要: Sharepoint是微软一个很重要的服务器产品，它可以方便的创建和维护一个网站，在Sharepoint的管理中心提供了很强大的管理工具。同时为了更加灵活的后期定制和开发，Sharepoint提供了完整的对象模型，对象模型也就相当于Sharepoint的二次开发接口，从服务器场到一个网站，以至一个Sharepoint中的列表都有相应的对象模型。本系列希望能对Sharepoint的对象模型进行一个大体的介绍。&nbsp;&nbsp;<a href='http://www.cnblogs.com/firstyi/archive/2008/07/31/1257583.html'>阅读全文</a><img src ="http://www.cnblogs.com/firstyi/aggbug/1257583.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41937/" target="_blank">[新闻]Google拟在9月发布自有浏览器 或采用火狐内核</a>]]></description></item><item><title>[Sharepoint2007对象模型]第二回：Web应用程序服务(SPWebService) </title><link>http://www.cnblogs.com/firstyi/archive/2008/07/31/1257566.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Thu, 31 Jul 2008 11:59:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/07/31/1257566.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1257566.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/07/31/1257566.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1257566.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1257566.html</trackback:ping><description><![CDATA[摘要: 在上一回中说了Sharepoint中的服务器场，在服务器场中最重要的一个服务就是Web应用程序服务。我们自己的Sharepoint网站都是借助于这个服务才能正常运行的，也就是说所有的Sharepoint站点都是搭建在这个服务之上的。Web应用程序服务对应的对象模型为：SPWebService，本回就主要说说这个对象模型。&nbsp;&nbsp;<a href='http://www.cnblogs.com/firstyi/archive/2008/07/31/1257566.html'>阅读全文</a><img src ="http://www.cnblogs.com/firstyi/aggbug/1257566.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41937/" target="_blank">[新闻]Google拟在9月发布自有浏览器 或采用火狐内核</a>]]></description></item><item><title>[Sharepoint2007对象模型]第一回：服务器场(SPFarm)</title><link>http://www.cnblogs.com/firstyi/archive/2008/07/31/1257549.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Thu, 31 Jul 2008 11:28:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/07/31/1257549.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1257549.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/07/31/1257549.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1257549.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1257549.html</trackback:ping><description><![CDATA[摘要: Sharepoint是微软一个很重要的服务器产品，它可以方便的创建和维护一个网站，在Sharepoint的管理中心提供了很强大的管理工具。同时为了更加灵活的后期定制和开发，Sharepoint提供了完整的对象模型，对象模型也就相当于Sharepoint的二次开发接口，从服务器场到一个网站，以至一个Sharepoint中的列表都有相应的对象模型。本系列希望能对Sharepoint的对象模型进行一个大体的介绍。

第一回：服务器场
服务器场是Sharepoint2007中最高的一个层次，在安装Sharepoint时可以把几台机器安装在同一个服务器场中，比如同一个服务器场中可以包含一台搜索服务器、两台应用服务器......，服务器场对应的对象模型就是SPFarm&nbsp;&nbsp;<a href='http://www.cnblogs.com/firstyi/archive/2008/07/31/1257549.html'>阅读全文</a><img src ="http://www.cnblogs.com/firstyi/aggbug/1257549.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41937/" target="_blank">[新闻]Google拟在9月发布自有浏览器 或采用火狐内核</a>]]></description></item><item><title>C#强化系列文章九：代码访问安全性使用</title><link>http://www.cnblogs.com/firstyi/archive/2008/07/24/1250447.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Thu, 24 Jul 2008 08:31:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/07/24/1250447.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1250447.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/07/24/1250447.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1250447.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1250447.html</trackback:ping><description><![CDATA[摘要: 在.Net Framework中提供了代码访问安全性(Code Access Security)，它的主要作用就是限制代码的使用权限。可以控制各种系统资源的访问权限、可以要求代码的调用方拥有特定的权限......。比如我们可以控制自己的dll只能在什么条件下由什么人调用，特别是在Asp.net中可以限制不同代码的安全权限，从源头限制住网络上的攻击等。
本文的主要内容如下：
1、在Asp.Net中使用自定义的信任级别
2、配置Sqlconnection的代码访问权限
3、实现和使用一个最简版的自定义权限
&nbsp;&nbsp;<a href='http://www.cnblogs.com/firstyi/archive/2008/07/24/1250447.html'>阅读全文</a><img src ="http://www.cnblogs.com/firstyi/aggbug/1250447.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41936/" target="_blank">[新闻]微软正在构思将Wi-Fi带入汽车</a>]]></description></item><item><title>[转载]最经典,最可怕的qq聊天记录</title><link>http://www.cnblogs.com/firstyi/archive/2008/07/18/1246343.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Fri, 18 Jul 2008 13:00:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/07/18/1246343.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1246343.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/07/18/1246343.html#Feedback</comments><slash:comments>12</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1246343.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1246343.html</trackback:ping><description><![CDATA[摘要: 最经典,最可怕的qq聊天记录<br>胆大的来看看，被吓了不要怪我，我也是被吓了才转过来的&nbsp;&nbsp;<a href='http://www.cnblogs.com/firstyi/archive/2008/07/18/1246343.html'>阅读全文</a><img src ="http://www.cnblogs.com/firstyi/aggbug/1246343.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41935/" target="_blank">[新闻]对比测试：IE8 Beta 2 VS Firefox 3.0.1</a>]]></description></item><item><title>项目经理的个人修养</title><link>http://www.cnblogs.com/firstyi/archive/2008/07/18/1246295.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Fri, 18 Jul 2008 11:23:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/07/18/1246295.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1246295.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/07/18/1246295.html#Feedback</comments><slash:comments>42</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1246295.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1246295.html</trackback:ping><description><![CDATA[摘要:  一句套话：项目经理真不是人干的活。<br><br>不知道其他公司的项目经理具体是做什么的，我感觉我们公司的项目经理基本上要负责项目管理+技术经理+后期设计，目前手头上的一个国内项目就是这样，也是我感觉做的最累的一个，出现的问题不少，也获得了不少经验。以前总感觉项目经理比较好当，现在终于明白自己不足的地方还很多。<br><br>关于项目管理的理论书籍不少，以下只是我个人的一些体会，写下来提醒自己也希望能够给刚入行的程序员一个借鉴。&nbsp;&nbsp;<a href='http://www.cnblogs.com/firstyi/archive/2008/07/18/1246295.html'>阅读全文</a><img src ="http://www.cnblogs.com/firstyi/aggbug/1246295.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41935/" target="_blank">[新闻]对比测试：IE8 Beta 2 VS Firefox 3.0.1</a>]]></description></item><item><title>《博客园精华集－－Sharepoint分册》第三轮结果</title><link>http://www.cnblogs.com/firstyi/archive/2008/07/17/1245256.html</link><dc:creator>永春</dc:creator><author>永春</author><pubDate>Thu, 17 Jul 2008 08:01:00 GMT</pubDate><guid>http://www.cnblogs.com/firstyi/archive/2008/07/17/1245256.html</guid><wfw:comment>http://www.cnblogs.com/firstyi/comments/1245256.html</wfw:comment><comments>http://www.cnblogs.com/firstyi/archive/2008/07/17/1245256.html#Feedback</comments><slash:comments>38</slash:comments><wfw:commentRss>http://www.cnblogs.com/firstyi/comments/commentRss/1245256.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/firstyi/services/trackbacks/1245256.html</trackback:ping><description><![CDATA[摘要: 《博客园精华集－－Sharepoint分册》第三轮结果<br>写在前面：<br>	Sharepoint接触的人相对比较少，筛选下来感觉精华文章不多。对于本分册我准备采用入门、使用、开发、进阶的组织方式，当然如果大家认为不够精华有违精华集的宗旨的话，也可以将本分册拿掉，把其中的精华文章合并到其他分册。<br><br>	下面是我初步筛选的结果，时间、能力有限，难免有疏漏之处，希望大家能够提出宝贵意见，如分类不正确、转载文章、质量太差等，我们将根据大家的意见在后面的工作中进行调整。<br>	另外，如果您的文章当前已经被收录，但您不想让文章进入本书，请一并提出，谢谢合作。<br><br>目录如下：&nbsp;&nbsp;<a href='http://www.cnblogs.com/firstyi/archive/2008/07/17/1245256.html'>阅读全文</a><img src ="http://www.cnblogs.com/firstyi/aggbug/1245256.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41934/" target="_blank">[新闻]iPhone存在严重密码安全漏洞</a>]]></description></item></channel></rss>