<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_syuko</title><subtitle type="text">Just For Fun。生存，社会秩序，娱乐</subtitle><id>http://feed.cnblogs.com/blog/u/30031/rss</id><updated>2011-10-20T04:25:15Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/30031/rss"/><entry><id>http://www.cnblogs.com/syuko/archive/2011/07/14/2106053.html</id><title type="text">【转】d:DesignInstance, d:DesignData in Visual Studio 2010 Beta2</title><summary type="text">d:DesignInstance, d:DesignData in Visual Studio 2010Beta2The WPF and Silverlight Designer for Visual Studio 2010 shares several new design time (d:) properties and design time MarkupExtensions with Expression Blend 3 that provide necessary information for the WPF and Silverlight Designer to deliver </summary><published>2011-07-14T02:36:00Z</published><updated>2011-07-14T02:36:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2011/07/14/2106053.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2011/07/14/2106053.html"/><content type="html">&lt;p&gt;&lt;strong&gt;&lt;a title="Permanent Link: d:DesignInstance, d:DesignData in Visual Studio 2010&amp;nbsp;Beta2" href="http://karlshifflett.wordpress.com/2009/10/28/ddesigninstance-ddesigndata-in-visual-studio-2010-beta2/" rel="bookmark"&gt;d:DesignInstance, d:DesignData in Visual Studio 2010&amp;nbsp;Beta2&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;div &gt;&#xD;
&lt;p&gt;The WPF and Silverlight Designer for Visual Studio 2010 shares several new design time (d:) properties and design time MarkupExtensions with Expression Blend 3 that provide necessary information for the WPF and Silverlight Designer to deliver a great editing experience.&lt;/p&gt;&#xD;
&lt;p&gt;I have explained the d:DesignData MarkupExtension in detail in this blog post:&amp;nbsp; &lt;a href="http://karlshifflett.wordpress.com/2009/10/21/visual-studio-2010-beta2-sample-data-project-templates/" target="_blank"&gt;Visual Studio 2010 Beta2 Sample Data Project Templates&lt;/a&gt;.&lt;/p&gt;&#xD;
&lt;p&gt;In this post I&amp;rsquo;ll cover the d:DataContext property and the d:DesignInstance MarkupExtension.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;d:DataContext&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;d:DataContext gives developers the ability to set a design time d:DataContext that is separate and independent of the run-time DataContext property.&lt;/p&gt;&#xD;
&lt;p&gt;This feature solves the problem of developers wanting to set their DataContext programmatically but also wanting design time data.&lt;/p&gt;&#xD;
&lt;p&gt;All d: properties are ignored during compilation and are not part of any run-time assemblies.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;d:DesignInstance&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt;&amp;nbsp; Provides a design time shape to the d:DataContext its applied to.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Example:&amp;nbsp; &lt;/strong&gt;In the below snippet the Person class is the shape provided by d:DesignInstance to the Grid&amp;rsquo;s d:DataContext.&lt;/p&gt;&#xD;
&lt;div &gt;&#xD;
&lt;pre&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Grid &lt;/span&gt;&lt;span style="color: red;"&gt;d&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: red;"&gt;DataContext&lt;/span&gt;&lt;span style="color: blue;"&gt;="{&lt;/span&gt;&lt;span style="color: #a31515;"&gt;d&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: #a31515;"&gt;DesignInstance &lt;/span&gt;&lt;span style="color: red;"&gt;local&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: red;"&gt;Person&lt;/span&gt;&lt;span style="color: blue;"&gt;}"&amp;gt; &lt;/span&gt;&lt;/pre&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Note: &lt;/strong&gt;In the above example, the Person class is actually a faux type (fake or substitute type).&amp;nbsp; This faux type enables types that are not creatable to be created and their properties exposed as a shape.&amp;nbsp; See the below section on creating creatable types.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Usage:&lt;/strong&gt;&amp;nbsp; So, now that the d:DataContext has shape, what can I do with it?&lt;/p&gt;&#xD;
&lt;p&gt;The shape is used by the new Binding Builder to expose the properties of the type in d:DataContext.&amp;nbsp; You can see in the below image, the four properties exposed by the Person class.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;a href="http://karlshifflett.files.wordpress.com/2009/10/bindingbuilder.png"&gt;&lt;img style="display: inline; border-width: 0px;" title="BindingBuilder" border="0" alt="BindingBuilder" src="http://karlshifflett.files.wordpress.com/2009/10/bindingbuilder_thumb.png?w=480&amp;amp;h=467" width="480" height="467" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;The Binding Builder is opened by clicking or right clicking on the Property Marker in the Properties Window.&amp;nbsp; The Property Marker is the icon to the right of the property name.&amp;nbsp; The Binding Builder is a GUI for editing bindings in WPF and Silverlight.&amp;nbsp; This is a super feature&lt;/p&gt;&#xD;
&lt;blockquote style='border:2px solid #EFEFEF;color:#333333;padding:5px 10px;'&gt;&#xD;
&lt;p&gt;The Cider Team has a great explanation of the new features on &lt;a href="http://windowsclient.net/wpfdesigner/" target="_blank"&gt;WindowsClient.net&lt;/a&gt; that you can read here: &lt;a href="http://windowsclient.net/wpfdesigner/articles/visual-studio-setup.aspx" target="_blank"&gt;Setting Up Visual Studio for WPF and Silverlight Development&lt;/a&gt;.&amp;nbsp; There is an article and video.&lt;/p&gt;&#xD;
&lt;p&gt;You can read additional Cider Team Online material here:&amp;nbsp; &lt;a href="http://windowsclient.net/wpfdesigner/default.aspx" target="_blank"&gt;WPF and Silverlight Designer for Visual Studio 2010&lt;/a&gt;.&amp;nbsp; We are in the process of adding many more articles.&amp;nbsp; While the material is initially geared for developers coming from other platforms to WPF or Silverlight, it has a lot of great information even for the seasoned XAML Head.&amp;nbsp; Yea, I said it.&amp;nbsp; I&amp;rsquo;m a XAML Head too and proud of it.&amp;nbsp; (LOL)&lt;/p&gt;&#xD;
&lt;/blockquote&gt;&#xD;
&lt;p&gt;Without d:DesignInstance, d:DesignData or d:Source applied to a CollectionViewSource the Binding Builder would have no way to determine shape and provide a list of properties.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp; If d:DataContext is not set, but DataContext is set and has a created type assigned to it, this will also supply shape that the Binding Builder can use for listing properties.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Creating Creatable Types&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;div &gt;&#xD;
&lt;pre&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Grid &lt;/span&gt;&lt;span style="color: red;"&gt;d&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: red;"&gt;DataContext&lt;/span&gt;&lt;span style="color: blue;"&gt;="{&lt;/span&gt;&lt;span style="color: #a31515;"&gt;d&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: #a31515;"&gt;DesignInstance &lt;/span&gt;&lt;span style="color: red;"&gt;local&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: red;"&gt;Person&lt;/span&gt;&lt;span style="color: blue;"&gt;, &lt;/span&gt;&lt;span style="color: red;"&gt;IsDesignTimeCreatable&lt;/span&gt;&lt;span style="color: blue;"&gt;=True}"&amp;gt; &lt;/span&gt;&lt;/pre&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;p&gt;d:DesignInstance provides a technique for creating a non-faux type.&amp;nbsp; Setting the property IsDesignTimeCreatable to True on the d:DesignInstance MarkupExtension enables this.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Links&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/dd490796(VS.100).aspx" target="_blank"&gt;MSDN d:DesignInstance Walkthrough&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Video showing d:DesignData and d:DesignInstance can be viewed from this blog post:&amp;nbsp; &lt;a title="Permanent Link: Visual Studio 2010 Beta2 Sample Data Project&amp;nbsp;Templates" href="http://karlshifflett.wordpress.com/2009/10/21/visual-studio-2010-beta2-sample-data-project-templates/"&gt;Visual Studio 2010 Beta2 Sample Data Project Templates&lt;/a&gt;.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #333333;" color="#333333"&gt;The above post also has source code for sample data templates.&amp;nbsp; There four of the templates are tutorial walkthroughs on this topic and sample data.&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;The two .xaml files in the DesignInstance Samples folder are the walkthroughs.&amp;nbsp; You can create this project in VB.NET or C# by using one of the below templates when creating your project.&lt;/p&gt;&#xD;
&lt;ul&gt;&#xD;
&lt;li&gt;VB WPF Application DesignData Sample &amp;ndash; VB.NET Sample WPF Application that demonstrates consuming sample data.&lt;/li&gt;&#xD;
&lt;li&gt;CS WPF Application DesignData Sample &amp;ndash; C# Sample WPF Application that demonstrates consuming sample data.&lt;/li&gt;&#xD;
&lt;/ul&gt;&#xD;
&lt;p&gt;&lt;a href="http://karlshifflett.files.wordpress.com/2009/10/designinstanceexamples.png"&gt;&lt;img style="display: inline; border-width: 0px;" title="DesignInstanceExamples" border="0" alt="DesignInstanceExamples" src="http://karlshifflett.files.wordpress.com/2009/10/designinstanceexamples_thumb.png?w=266&amp;amp;h=313" width="266" height="313" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Close&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Hope you find d:DesignInstance and d:DesignData Sample Data in Visual Studio 2010 Beta2 a productive feature for your application development.&lt;/p&gt;&#xD;
&lt;p&gt;Have a great day,&lt;/p&gt;&#xD;
&lt;p&gt;转自:&lt;a href="http://karlshifflett.wordpress.com/2009/10/28/ddesigninstance-ddesigndata-in-visual-studio-2010-beta2/"&gt;这里&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;/div&gt;&lt;img src="http://www.cnblogs.com/syuko/aggbug/2106053.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/syuko/archive/2011/07/14/2106053.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/syuko/archive/2011/03/18/1988174.html</id><title type="text">RadTreeView：How to Get Item by Path</title><summary type="text">在实际多选项卡的应用程序中，如果调用一个不是当前选项卡页面（或是隐藏）里的RadTreeView的GetItemByPath时一般返回的就是Null。正确的做法是先将该选项卡设为Selected或isHidden=false然后再去GetItemByPath；</summary><published>2011-03-18T07:38:00Z</published><updated>2011-03-18T07:38:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2011/03/18/1988174.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2011/03/18/1988174.html"/><content type="html">&lt;p&gt;Telerik官方说：&amp;ldquo;The &lt;strong&gt;RadTreeView&lt;/strong&gt; API offers you the ability to get an item by&amp;nbsp;path programmatically. This tutorial will show you how to do that.&amp;rdquo;。并给出了如下的使用方法：&lt;/p&gt;&#xD;
&lt;p&gt;For example,&amp;nbsp;see the following situation - you&amp;nbsp;want to retrieve the treeview item with &lt;strong&gt;Header&lt;/strong&gt; Soccer. In order to do that you need to perform the following steps:&lt;/p&gt;&#xD;
&lt;p&gt;1. Create a path, including only the treeview items' header and using some separator.&lt;/p&gt;&#xD;
&lt;p&gt;2. Set the &lt;strong&gt;telerik:TextSearch.TextPath&lt;/strong&gt; attached property to indicate which&amp;nbsp;property&amp;nbsp;to be used&amp;nbsp;as a path segment.&lt;/p&gt;&#xD;
&lt;p&gt;3. Invoke the &lt;strong&gt;GetItemByPath()&lt;/strong&gt; method of the &lt;strong&gt;RadTreeView&lt;/strong&gt; class.&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;和例子：&lt;/p&gt;&#xD;
&lt;div &gt;&lt;span color="blue" style="color: #0000ff;"&gt;private&lt;/span&gt; &lt;span color="blue" style="color: #0000ff;"&gt;void&lt;/span&gt; &lt;span color="black" style="color: #000000;"&gt;GetTreeViewItemByPath()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span color="blue" style="color: #0000ff;"&gt;string&lt;/span&gt; &lt;span color="black" style="color: #000000;"&gt;path =&lt;/span&gt; &lt;span color="#a31515" style="color: #a31515;"&gt;"Sport Categories|Football|Soccer"&lt;/span&gt;&lt;span color="black" style="color: #000000;"&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;RadTreeViewItem targetItem = radTreeView.GetItemByPath( path,&lt;/span&gt; &lt;span color="#a31515" style="color: #a31515;"&gt;"|"&lt;/span&gt; &lt;span color="black" style="color: #000000;"&gt;);&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&#xD;
&lt;div &gt;&lt;span color="black" style="color: #000000;"&gt;其中Telerik列举了很多注意事项，其中有一条是：&amp;ldquo;&lt;span style="color: #333300;"&gt;Using the &lt;strong&gt;GetItemByPath()&lt;/strong&gt; method of the &lt;strong&gt;RadTreeViewItem&lt;/strong&gt; class is a &lt;strong&gt;potentially expensive operation if the item is not visible&lt;/strong&gt;. The method will recursively expand and scroll items into view, updating the layout numerous times. Almost certainly the method should not be called in a loop (multiple times). If you need to do so, there is probably a better way to achieve what you need.&amp;rdquo;，这句话说明了节点不可见时是一项比较消耗资源的操作，可Telerik没说当整个RadTreeView不可见（或不属于当前选中窗体）时该方法会返回Null，所以在实际多选项卡的应用程序中，如果调用一个不是当前选项卡页面（或是隐藏）里的RadTreeView的&lt;strong&gt;GetItemByPath&lt;/strong&gt;时一般返回的就是Null。正确的做法是先将该选项卡设为Selected或isHidden=false然后再去&lt;strong&gt;GetItemByPath；&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/syuko/aggbug/1988174.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/syuko/archive/2011/03/18/1988174.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/syuko/archive/2011/03/18/1988159.html</id><title type="text">RadTreeViewItem - event MouseLeftButtonDown or Up never fires</title><summary type="text">I bound the RadTreeViewItem.MouseLeftButtonDown to an event handler in code, but in debug I noticed the event never fires. I didn't use the RadTreeViewItem.Selected event because when a the item is selected, when use click the item again the Selected event don't fire - this is not I want, so I have to handle the MouseLeftButtonDown or Up events but... the two events never fire. Help!</summary><published>2011-03-18T07:25:00Z</published><updated>2011-03-18T07:25:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2011/03/18/1988159.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2011/03/18/1988159.html"/><content type="html">&#xD;
&lt;p&gt;这是借用TeleriK官网论坛上的帖子名字。由于自己也碰到了这个问题，当时也是看了官方的回复才解决的。废话不多说直接说应用场景和解决方案。&lt;/p&gt;&#xD;
&lt;p&gt;应用场景：需要在RadTreeView实现点击节点响应事件，并且当前节点处于Selected状态下点击仍然能触发响应事件。&lt;/p&gt;&#xD;
&lt;p&gt;（原文：I bound the RadTreeViewItem.MouseLeftButtonDown to an event handler in code, but in debug I noticed the event never fires. I didn't use the RadTreeViewItem.Selected event because when a the item is selected, when use click the item again the Selected event don't fire - this is not I want, so I have to handle the MouseLeftButtonDown or Up events but... the two events never fire. Help!）&lt;/p&gt;&#xD;
&lt;p&gt;解决方案：通常情况下会使用RadTreeView的SelectionChanged事件，但该时间只有在改变当前选中节点的时候才能触发，并且设置节点的IsSelected=true时也会被触发（这个点在做节点定位的时候非常不方便，定位到节点后设置节点的IsSelected=true时会触发SelectionChanged），所以SelectionChanged事件在这个场景里不适用。&lt;/p&gt;&#xD;
&lt;p&gt;在项目中习惯性的使用MouseLeftButtonDown事件发现竟然不触发，这点很无语呀。&lt;/p&gt;&#xD;
&lt;p&gt;看了Telerik官方的回复发现官方使用MouseLeftButtonUp事件来处理这个场景。Telerik没解释为什么用Up事件而不是Down事件，有可能Telerik在实现控件的时候没有去获取当前节点，只是在Up事件的时候才去获取。&lt;/p&gt;&#xD;
&lt;p&gt;代码：&lt;/p&gt;&#xD;
&lt;p&gt;private void TreeViewRoot_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ObjTreeNodeClass oNodeEnt = TreeViewRoot.SelectedItem as ObjTreeNodeClass;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (null == oNodeEnt)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&#xD;
&lt;p&gt;//处理逻辑&lt;/p&gt;&#xD;
&lt;p&gt;}&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;对这个处理方式真是很无语，没办法是用别人的控件就得遵守别人的规则，不管别人的规则有时是多么的别扭。&lt;/p&gt;&lt;img src="http://www.cnblogs.com/syuko/aggbug/1988159.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/syuko/archive/2011/03/18/1988159.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/syuko/archive/2010/06/25/1765109.html</id><title type="text">visual studio 2005 中的部署 产生“不可恢复的生成错误”</title><summary type="text">visual studio 2005 中的部署 产生“不可恢复的生成错误”</summary><published>2010-06-25T05:52:00Z</published><updated>2010-06-25T05:52:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2010/06/25/1765109.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2010/06/25/1765109.html"/><content type="html">&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;visual studio 2005 中的部署 产生&amp;#8220;不可恢复的生成错误&amp;#8221;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;刚才在生成一个WebForm的程序时总是报&amp;#8220;未能创建文件&amp;#8220;C:\Users\ADMINI~1\AppData\Local\Temp\VSI7A91.tmp&amp;#8221; '拒绝访问。'&amp;#8221;，&amp;#8220;不可恢复的生成错误&amp;#8221;这两个错误。&lt;/p&gt;&#xD;
&lt;p&gt;先是在网上查询了&amp;#8220;C:\Users\ADMINI~1\AppData\Local\Temp\VSI7A91.tmp&amp;#8221; '拒绝访问。'&amp;#8221;的错误原因，大部分是说设置&amp;#8220;C:\Windows\Temp&amp;#8221;文件夹的权限，我机器上是&amp;#8220;C:\Users\Administrator\AppData\Local\Temp&amp;#8221;，可是设置了这个文件夹的权限后问题仍然存在。由于机器使用的是Windows 7操作系统，而且Win7操作系统确实有很多兼容性的问题，我当时就认为有可能又是兼容性的问题，要真是这样解决起来就麻烦了。但工作还是要继续，不能因为兼容性问题就不干活了，而且重做系统也浪费时间，也不符合我一贯遇到问题直接解决不回避的做事风格。然后又在网上查询了一下&amp;#8220;不可恢复的生成错误&amp;#8221;产生的原因。这次有的说是文件丢失或者Mergemod.dll的版本不对造成的，可是其他WebForm的程序也都没有这个问题，说明不是这个原因造成的，也没有贸然去试。然后就查到微软msdn的技术资源库里面，&lt;a title="这篇" href="http://msdn.microsoft.com/zh-cn/library/ms228633(VS.80).aspx" target="_blank"&gt;这篇&lt;/a&gt;文章也是说的这个问题。文章对错误的原因描述不清，不过却列出了更正错误的方法。其中第一项就让我眼睛一亮。&amp;#8220;项目中重复的文件夹名称会导致此错误。为文件夹指定唯一的名称。&amp;#8221;，这个程序项目中因为打包方法的原因真的形成了重复的文件夹名称。正常情况下在一个工程下不会产生相同文件夹的项目，不过由于VS2005在WebForm打包方面有时不注意会把源文件给打包到输出文件，所以这个工程采取了发布网站后再添加到工程中作为输出文件的打包方法。解决办法就是把发布后添加到工程的那个网站删除，采用其他的打包方法即可同时解决上述的两个问题。&lt;/p&gt;&#xD;
&lt;p&gt;有可能这只是个个例，其他人也不会这么打包，从而也不会产生这么个怪问题。不过既然问题产生了，就得想办法去解决。就是因为问题比较特殊所以几下以备后用。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/zh-cn/library/ms228633(VS.80).aspx" target="_blank"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/syuko/aggbug/1765109.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/syuko/archive/2010/06/25/1765109.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/syuko/archive/2010/03/29/windows7.html</id><title type="text">Windows 7使用记事及琐事流水帐-职称英语考试始末记事</title><summary type="text">在这里记下几件事。2010-3-291 昨天刚考完职称英语B级的考试。自我感觉考的不错估计在85至90分之间，等到成绩出来时再来更新成绩，希望不要有太大的分数起伏。2 今天把Windows7 旗舰版给装上并激活了，使用的是软激活，运行了一下午都很稳定。装了DAEMON Tools Lite，VB6.0，QQ2009都没有问题，待续。2010-3-301 今天为了装Windows XP Mode去微...</summary><published>2010-03-29T09:31:00Z</published><updated>2010-03-29T09:31:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2010/03/29/windows7.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2010/03/29/windows7.html"/><content type="html">&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;在这里记下几件事。&lt;/p&gt;&#xD;
&lt;p&gt;2010-3-29&lt;/p&gt;&#xD;
&lt;p&gt;1 昨天刚考完职称英语B级的考试。自我感觉考的不错估计在85至90分之间，等到成绩出来时再来更新成绩，希望不要有太大的分数起伏。&lt;/p&gt;&#xD;
&lt;p&gt;2 今天把Windows7 旗舰版给装上并激活了，使用的是软激活，运行了一下午都很稳定。装了DAEMON Tools Lite，VB6.0，QQ2009都没有问题，待续。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;2010-3-30&lt;/p&gt;&#xD;
&lt;p&gt;1 今天为了装Windows XP Mode去微软的网站上去搞那个正版验证，结果验证失败让我看到了传说中的黑屏。尝试了几次再次注册均告失败，没招了就重做系统了。重做完系统使用了另一个激活工具，一次性激活。激活完后就激动地再去官网验证，OK，这次验证通过了。然后就是下载xp mode 了，500M的文件下了我很长时间。下载完成后就开始安装,XP Mode正常安装成功，然后安装virtual PC，安装失败，告诉我硬件不支持虚拟化技术，郁闷。本打算装完XP mode然后在它下面装上oracle 9i的，看来这个做法不通了，得想招了。又不想在自己机器上装10G或11G，怕机器慢影响我使用。最后只能找了另一台机器装了server2003+oracle9i+oracle10G，作为我个人的数据库服务器，oracle9i作为备用，10G作为我工作使用。接下来就是在win7下面装个客户端了，配置完一切OK能连上服务器了，能干活了。装了个win7折腾了我快两天了。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;2010-4-15&lt;/p&gt;&#xD;
&lt;p&gt;WIN7也用了半个月了，期间也进行过日常的开发。发现WIN7的兼容性问题还是比较严重，简单的罗列一下：&lt;/p&gt;&#xD;
&lt;p&gt;1 例如单位有个用word2003创建的文档模板在win7下用word2007显示格式就乱了，在XP下用word2007显示也是正常的。&lt;/p&gt;&#xD;
&lt;p&gt;开发方面：&lt;/p&gt;&#xD;
&lt;p&gt;1 pl/sql dev7.1在win7下面经常由于数据库密码输入不正确而无响应，这点有时很难忍受。&lt;/p&gt;&#xD;
&lt;p&gt;2 vs2005也会出现莫名其妙的错误。比如用VS2005访问数据库的时候，就是查询一下记录总数有时能查出正确的数据很多时候查出的是0条，这也有可能是我用的oracle客户端的问题。&lt;/p&gt;&#xD;
&lt;p&gt;3 VB6.0支持的非常差.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;上周通过安装WIN7的一个补丁解决了安装XP Mode需要硬件虚拟化支持的限制了。终于把XP Mode给装上去了，在XP虚拟机上装了个oracle9i，VB 等作为VB的开发平台，并通过oracle9i的客户端连接oracle10G的服务器。在这个XP虚拟机上基本可以进行日常的开发，就是内存我只给XP划分了300M，有点小，VB生成EXE的时候非常的慢，得无响应几分钟才能生成完。有时VB6干脆就出错直接退出了，提示保存的对话框都没有。虽然XP虚拟机下问题多多，但至少可以使用，总比用不了好。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;不过WIN7有个很好的长处，就是发音部分非常不错，做了一个读文本的小程序，在WIN7下表现的非常优秀，和真人发音差不多，语速，分词等做的都非常好。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;记录一个&lt;a href="http://blogs.msdn.com/adonet/archive/2009/06/15/system-data-oracleclient-update.aspx" target="_blank"&gt;Microsoft deprecate OracleClient as a part of our ADO.NET roadmap&lt;/a&gt;的文章。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;2010-06-12&lt;/p&gt;&#xD;
&lt;p&gt;今天职称英语考试成绩出来了。查了一下满分100考了91分，还行，和自己估的分数多一份。&lt;/p&gt;&#xD;
&lt;p&gt;windows7也用了一段时间，总体的感觉是界面还是非常的漂亮，但用在开发上还是有很多的问题，兼容性还是一个比较大的问题。对硬件的要求还是比windows xp高。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;oracle 10g 客户端安装&lt;br /&gt;1. 从&lt;a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html" target="_blank"&gt;http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html&lt;/a&gt;&lt;br /&gt;下载几个压缩包,解压到一个目录, d:\oracleclient&lt;/p&gt;&#xD;
&lt;p&gt;instantclient-basic-win32-10.1.0.2.zip : 这是最核心的包&lt;br /&gt;instantclient-jdbc-win32-10.1.0.2.zip: 包含JDBC Driver的包&lt;br /&gt;instantclient-sqlplus-win32-10.1.0.2.zip: 最简单的SQLPLUS包 &lt;br /&gt;2.配置tnsnames.ora 如下格式（必须在主目录如D:\oracleclient下network\admin下）&lt;br /&gt;oracledata =&lt;br /&gt;&amp;nbsp; (DESCRIPTION =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS_LIST =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.58)(PORT = 1521))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (CONNECT_DATA =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SERVICE_NAME = oracledata)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;&amp;nbsp; )&lt;br /&gt;3.下载并安装PL.SQL.Developer配置应用&lt;br /&gt;&amp;nbsp; 配置tools-&amp;gt;preferences-&amp;gt;connection&lt;br /&gt;&amp;nbsp; Oracle Home=D:\oracleclient&lt;br /&gt;&amp;nbsp; OCI library=D:\oracleclient\oci.dll&lt;br /&gt;4.再次打开plsql则会在database中有oracledata 选项输入用户名密码就可以登陆&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;本文来自CSDN博客，转载请标明出处：&lt;a href="http://blog.csdn.net/oseica/archive/2007/02/08/1505409.aspx" target="_blank"&gt;http://blog.csdn.net/oseica/archive/2007/02/08/1505409.aspx&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/syuko/aggbug/1699823.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/syuko/archive/2010/03/29/windows7.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/syuko/archive/2009/11/11/1600844.html</id><title type="text">Oracle难道不能处理大数据并发的问题</title><summary type="text">多用户在大数据量的密集录入时Oracle数据库出现了数据文件相互占用的情况。</summary><published>2009-11-11T04:37:00Z</published><updated>2009-11-11T04:37:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2009/11/11/1600844.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2009/11/11/1600844.html"/></entry><entry><id>http://www.cnblogs.com/syuko/archive/2009/06/02/1494348.html</id><title type="text">[转载]DNS解析错误解决办法</title><summary type="text">转载自http://hi.baidu.com/ahboot/blog/item/420707ce754a563ab700c8ee.html。备查。</summary><published>2009-06-02T03:27:00Z</published><updated>2009-06-02T03:27:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2009/06/02/1494348.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2009/06/02/1494348.html"/></entry><entry><id>http://www.cnblogs.com/syuko/archive/2009/05/23/1487491.html</id><title type="text">鼠标(Mouse)的复数问题告诉我们治学要严谨 </title><summary type="text">治学要严谨。</summary><published>2009-05-23T01:50:00Z</published><updated>2009-05-23T01:50:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2009/05/23/1487491.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2009/05/23/1487491.html"/></entry><entry><id>http://www.cnblogs.com/syuko/archive/2009/05/16/1458174.html</id><title type="text">Just for Fun-生存，社会秩序，娱乐</title><summary type="text">生存-》社会秩序-》娱乐</summary><published>2009-05-16T02:53:00Z</published><updated>2009-05-16T02:53:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2009/05/16/1458174.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2009/05/16/1458174.html"/></entry><entry><id>http://www.cnblogs.com/syuko/archive/2009/05/08/1452797.html</id><title type="text">软件创作</title><summary type="text">其实也没什么好顾影自怜，功成名就的冠冕从来也不曾落在程序员头上：我们可能想纽约街头的普普（POP）工作者，自认为艺术家，可别人怎么看呢？</summary><published>2009-05-08T09:33:00Z</published><updated>2009-05-08T09:33:00Z</updated><author><name>syuko</name><uri>http://www.cnblogs.com/syuko/</uri></author><link rel="alternate" href="http://www.cnblogs.com/syuko/archive/2009/05/08/1452797.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/syuko/archive/2009/05/08/1452797.html"/></entry></feed>
