<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>MAVERICK</title>
	<atom:link href="http://maverick83.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://maverick83.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 19 Jun 2009 10:22:33 +0000</lastBuildDate>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='maverick83.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>MAVERICK</title>
		<link>http://maverick83.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://maverick83.wordpress.com/osd.xml" title="MAVERICK" />
	<atom:link rel='hub' href='http://maverick83.wordpress.com/?pushpress=hub'/>
		<item>
		<title>DBDesigner4 e MySql Problem</title>
		<link>http://maverick83.wordpress.com/2009/06/19/dbdesigner4-e-mysql-problem/</link>
		<comments>http://maverick83.wordpress.com/2009/06/19/dbdesigner4-e-mysql-problem/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 10:22:33 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=38</guid>
		<description><![CDATA[I had a problem connecting mysql from DBDesigner4. Error occurs : Connection to database failed. dbExpress Error: Invalid Username/Password Username/Password spelled correctly. The problem is because DBDesigner4 was designed for MySQL 3.x.x. For MySQL 4 and higher we have to do the old password trick. This is the solution which is works fine for me. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=38&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a problem connecting mysql from DBDesigner4. Error occurs :</p>
<blockquote><p>Connection to database failed.</p>
<p>dbExpress Error: Invalid<br />
Username/Password</p></blockquote>
<p>Username/Password spelled correctly. The problem is because DBDesigner4 was designed for MySQL 3.x.x. For MySQL 4 and higher we have to do the old password trick. This is the solution which is works fine for me. In your terminal, connect to your database:</p>
<p><code>mysql -u root -p<br />
SET PASSWORD FOR 'root'@'localhost' = OLD_PASSWORD('r00tp45sw0rd');<br />
UPDATE mysql.user SET Password = OLD_PASSWORD('r00tp45sw0rd') WHERE Host = 'localhost' AND User = 'root';<br />
FLUSH PRIVILEGES;</code></p>
<p>Then you should have no problem connecting to your MySQL servers. You may change the username (root), password (r00tp45sw0rd) &amp; host (localhost) with your own.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=38&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2009/06/19/dbdesigner4-e-mysql-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>
	</item>
		<item>
		<title>Esempio dell&#8217;utilizzo di &#8220;ValidationOption&#8221;</title>
		<link>http://maverick83.wordpress.com/2009/03/05/esempio-dellutilizzo-di-validationoption/</link>
		<comments>http://maverick83.wordpress.com/2009/03/05/esempio-dellutilizzo-di-validationoption/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 11:10:08 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[Workflow Foundation]]></category>
		<category><![CDATA[activity]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=35</guid>
		<description><![CDATA[public static DependencyProperty __ListItemProperty = DependencyProperty.Register("__ListItem", typeof(int), typeof(AddSPWeb)); [Description("Id of the list")] [Category("Custom")] [Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] [ValidationOption(ValidationOption.Required)] public string __ListId { get { return ((string)(base.GetValue(__ListIdProperty))); } set { base.SetValue(__ListIdProperty, value); } }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=35&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="code"> public static DependencyProperty __ListItemProperty = DependencyProperty.Register("__ListItem", typeof(int), typeof(AddSPWeb));

        [Description("Id of the list")]
        [Category("Custom")]
        [Browsable(true)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        [ValidationOption(ValidationOption.Required)]
        public string __ListId
        {
            get
            {
                return ((string)(base.GetValue(__ListIdProperty)));
            }
            set
            {
                base.SetValue(__ListIdProperty, value);
            }
        }</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=35&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2009/03/05/esempio-dellutilizzo-di-validationoption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>
	</item>
		<item>
		<title>Validare una Custom Workflow Activity</title>
		<link>http://maverick83.wordpress.com/2009/03/05/validare-una-custom-workflow-activity/</link>
		<comments>http://maverick83.wordpress.com/2009/03/05/validare-una-custom-workflow-activity/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 10:48:14 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Workflow Foundation]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=32</guid>
		<description><![CDATA[Validation component is a good way to avoid some predictable exceptions which come from wrong inputs and cause unexpected state for your application.  Using validator component you can avoid these exceptions and give appropriate error texts before compilation to correct your input parameters. Adding a validator component to a custom workflow is very simple and consists of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=32&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Validation component is a good way to avoid some predictable exceptions which come from wrong inputs and cause unexpected state for your application.  Using validator component you can avoid these exceptions and give appropriate error texts before compilation to correct your input parameters.</p>
<p>Adding a validator component to a custom workflow is very simple and consists of two steps:</p>
<ul>
<li>Create a validator component for custom activity by inheriting from ActivityValidator base class.</li>
<li>Add an ActivityValidator attribute to custom workflow class.</li>
</ul>
<p>Ok, most things will be done in first step.</p>
<p>There is a ActivityValidator class in System.Workflow.ComponentModel.Compiler.  To build a validator you need to create a new class and derive it from this base class and override its Validate() method.  Validate() returns a ValidationErrorCollection object which consists of all validation errors for the activity.  This method also has two parameters: a ValidationManager and an object.  Later you can use this second parameter (object) to convert it to the type of your custom activity and get access to your activity components.</p>
<p>I want to extend the custom workflow activity that I used in my previous post to validate its Path property and use a regular expression to make sure user enters a valid path with .txt file extension.</p>
<p>I add a CustomActivityValidator class to my Class Library project (created in my previous post) and derive it from ActivityValidator then override Validate() method.  After that I convert object parameter to my custom activity type (named CustomActivity) and use this newly created object to get access to its Path property and validate its value.  In next step I use a regular expression to check if given Path property is valid otherwise I add a new ValidationError to my ValidationErrorCollection and finally returns this ValidationErrorCollection.</p>
<div style="background:white none repeat scroll 0 0;font-size:10pt;color:black;font-family:courier new;">
<p style="margin:0;"><span style="color:blue;">using</span> System;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Text.RegularExpressions;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Workflow.ComponentModel.Compiler;</p>
<p style="margin:0;">
<p style="margin:0;"><span style="color:blue;">namespace</span> CustomActivitySample</p>
<p style="margin:0;">{</p>
<p style="margin:0;"><span style="color:blue;">internal</span> <span style="color:blue;">sealed</span> <span style="color:blue;">class</span> <span style="color:teal;">CustomActivityValidator</span> : <span style="color:teal;">ActivityValidator</span></p>
<p style="margin:0;">{</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">override</span> <span style="color:teal;">ValidationErrorCollection</span> Validate(<span style="color:teal;">ValidationManager</span> manager, <span style="color:blue;">object</span> obj)</p>
<p style="margin:0;">{</p>
<p style="margin:0;"><span style="color:teal;">CustomActivity</span> customActivity = obj <span style="color:blue;">as</span> <span style="color:teal;">CustomActivity</span>;</p>
<p style="margin:0;">
<p style="margin:0;"><span style="color:teal;">ValidationErrorCollection</span> errorCollection = <span style="color:blue;">new</span> <span style="color:teal;">ValidationErrorCollection</span>();</p>
<p style="margin:0;">
<p style="margin:0;"><span style="color:blue;">if</span> (customActivity != <span style="color:blue;">null</span>)</p>
<p style="margin:0;">{</p>
<p style="margin:0;"><span style="color:green;">// Regular Expression inspired from Steve&#8217;s RegExLib.Com</span></p>
<p style="margin:0;"><span style="color:teal;">Regex</span> regEx = <span style="color:blue;">new</span> <span style="color:teal;">Regex</span>(<span style="color:maroon;">&#8220;([a-zA-Z]:(\\w+)*\\[a-zA-Z0_9]+)?.txt&#8221;</span>,</p>
<p style="margin:0;"><span style="color:teal;">RegexOptions</span>.IgnoreCase | <span style="color:teal;">RegexOptions</span>.Multiline);</p>
<p style="margin:0;">
<p style="margin:0;"><span style="color:blue;">if</span> (!regEx.IsMatch(customActivity.Path))</p>
<p style="margin:0;">errorCollection.Add(<span style="color:blue;">new</span> <span style="color:teal;">ValidationError</span></p>
<p style="margin:0;">(<span style="color:maroon;">&#8220;String value provided for Path property is not valid!&#8221;</span>, 1984));</p>
<p style="margin:0;">}</p>
<p style="margin:0;">
<p style="margin:0;"><span style="color:blue;">return</span> errorCollection;</p>
<p style="margin:0;">}</p>
<p style="margin:0;">}</p>
<p style="margin:0;">}</p>
</div>
<p>Now that I have a validator component in hand, I can simply add an ActivityValidator attribute to my custom workflow class and pass the type of this validator class to it.  Do not forget to add a reference to System.Workflow.ComponentModel.Compiler before adding this attribute.</p>
<div style="background:white none repeat scroll 0 0;font-size:10pt;color:black;font-family:courier new;">
<p style="margin:0;"><span style="color:blue;">using</span> System;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Collections.Generic;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Text;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Workflow;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Workflow.Activities;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Workflow.Runtime;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Workflow.ComponentModel;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Workflow.ComponentModel.Design;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.IO;</p>
<p style="margin:0;"><span style="color:blue;">using</span> System.Workflow.ComponentModel.Compiler;</p>
<p style="margin:0;">
<p style="margin:0;">
<p style="margin:0;"><span style="color:blue;">namespace</span> CustomActivitySample</p>
<p style="margin:0;">{</p>
<p style="margin:0;">[<span style="color:teal;">ActivityValidator</span>(<span style="color:blue;">typeof</span>(<span style="color:teal;">CustomActivityValidator</span>))]</p>
<p style="margin:0;"><span style="color:blue;">public</span> <span style="color:blue;">class</span> <span style="color:teal;">CustomActivity</span> : <span style="color:teal;">Activity</span></p>
<p style="margin:0;">{</p>
</div>
<p>Alright, now my custom activity has a validator component and I can test it.  After compiling this custom activity to an assembly and replacing my previous custom activity in Toolbox with this new one and add it to a Sequential Workflow, I can set its properties.</p>
<p>If I put an invalid value for Path property (for example a path with .jpg extension), I can see that an error icon appears on top right corner of my activity.  If I click on it then it shows an error text (provided in validator component code).</p>
<p><img src="http://nayyeri.net/misc/HowtoWriteaValidatorforCustomWorkflowAct_10E4E/WF14.jpg" alt="" width="350" height="141" /></p>
<p>It also shows this error in Error List window.</p>
<p><img src="http://nayyeri.net/misc/HowtoWriteaValidatorforCustomWorkflowAct_10E4E/WF26.jpg" alt="" width="420" height="76" /></p>
<p>Heh, do you want to escape and build?!  Just do that to see what will happen!</p>
<p><img src="http://nayyeri.net/misc/HowtoWriteaValidatorforCustomWorkflowAct_10E4E/WF314.jpg" alt="" width="420" height="78" /></p>
<p>Articolo preso dal seguente link:</p>
<p>http://nayyeri.net/blog/how-to-write-a-validator-for-custom-workflow-activity/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=32&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2009/03/05/validare-una-custom-workflow-activity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>

		<media:content url="http://nayyeri.net/misc/HowtoWriteaValidatorforCustomWorkflowAct_10E4E/WF14.jpg" medium="image" />

		<media:content url="http://nayyeri.net/misc/HowtoWriteaValidatorforCustomWorkflowAct_10E4E/WF26.jpg" medium="image" />

		<media:content url="http://nayyeri.net/misc/HowtoWriteaValidatorforCustomWorkflowAct_10E4E/WF314.jpg" medium="image" />
	</item>
		<item>
		<title>Metodo per l&#8217;invio di e-mail in C#</title>
		<link>http://maverick83.wordpress.com/2008/12/03/metodo-per-linvio-di-e-mail-in-c/</link>
		<comments>http://maverick83.wordpress.com/2008/12/03/metodo-per-linvio-di-e-mail-in-c/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 10:00:21 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=30</guid>
		<description><![CDATA[public static bool SendMail(string fromName, string fromAddress, string toName, string toAddress, string body, string subject, bool sslEnabled)         {            string pswd = ConfigurationManager.AppSettings["SmtpPwd"];             string userName = ConfigurationManager.AppSettings["SmtpUser"];             string host = ConfigurationManager.AppSettings["SmtpServer"];             int port [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=30&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>public static bool SendMail(string fromName, string fromAddress, string toName, string toAddress, string body, string subject, bool sslEnabled)<br />
        {<br />
            string pswd = ConfigurationManager.AppSettings["SmtpPwd"];<br />
            string userName = ConfigurationManager.AppSettings["SmtpUser"];<br />
            string host = ConfigurationManager.AppSettings["SmtpServer"];<br />
            int port = Convert.ToInt32(ConfigurationManager.AppSettings["SmtpPort"]);<br />
         <br />
   if (string.IsNullOrEmpty(pswd) || string.IsNullOrEmpty(userName) || string.IsNullOrEmpty(host))<br />
            {<br />
                string s = &#8220;Configuration error&#8221;;<br />
                return false;<br />
            }<br />
            else<br />
            {<br />
                bool inviato = false;<br />
                MailMessage msg = new MailMessage(new MailAddress(fromAddress), new MailAddress(toAddress));<br />
                msg.Subject = string.Format(&#8220;Messaggio per {0} da parte di {1} &lt;{2}&gt;&#8221;, toName, fromName, fromAddress);  <br />
                msg.SubjectEncoding = System.Text.Encoding.UTF8;<br />
                msg.Body = body;  <br />
                msg.BodyEncoding = System.Text.Encoding.UTF8;<br />
                msg.IsBodyHtml = false;<br />
                SmtpClient client = new SmtpClient(host, port);<br />
                client.Credentials = new NetworkCredential(userName, pswd);<br />
                client.EnableSsl = sslEnabled;  </p>
<p>               try<br />
                {<br />
                    client.Send(msg);  <br />
                    inviato = true;<br />
                }<br />
                catch (SmtpException ex)<br />
                {<br />
                    string message = ex.Message;<br />
                    inviato = false;<br />
                }<br />
                return inviato;<br />
            }<br />
        }</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=30&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2008/12/03/metodo-per-linvio-di-e-mail-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming SharePoint List Data</title>
		<link>http://maverick83.wordpress.com/2008/11/10/programming-sharepoint-list-data/</link>
		<comments>http://maverick83.wordpress.com/2008/11/10/programming-sharepoint-list-data/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 18:13:29 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[List Data]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=28</guid>
		<description><![CDATA[Data Insertion using (SPSite spsite = new SPSite(http://SPS01)) {     using (SPWeb spweb = spsite.OpenWeb())     {      spweb.AllowUnsafeUpdates = true;      SPList splist = spweb.Lists["Custom List"];      SPListItem splistitem = splist.Items.Add();      splistitem["Title"] = &#8220;Paul Joseph Adame&#8221;;      splistitem["First_x0020_Name"] = &#8220;Luke Martin&#8221;;      splistitem["Last_x0020_Name"] = &#8220;Adame&#8221;;      [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=28&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color:#0000ff;"><em>Data Insertion</em></span></strong></p>
<p>using (SPSite spsite = new SPSite(http://SPS01))<br />
{<br />
    using (SPWeb spweb = spsite.OpenWeb())<br />
    {<br />
     spweb.AllowUnsafeUpdates = true;<br />
     SPList splist = spweb.Lists["Custom List"];<br />
     SPListItem splistitem = splist.Items.Add();<br />
     splistitem["Title"] = &#8220;Paul Joseph Adame&#8221;;<br />
     splistitem["First_x0020_Name"] = &#8220;Luke Martin&#8221;;<br />
     splistitem["Last_x0020_Name"] = &#8220;Adame&#8221;;<br />
     splistitem.Update();<br />
     }<br />
}</p>
<p><span style="color:#0000ff;"><strong><em>Data Retrieval</em></strong></span></p>
<p>using (SPSite spsite = new SPSite(&#8220;http://SPS01&#8243;))<br />
{<br />
    using (SPWeb spweb = spsite.OpenWeb())<br />
    {<br />
     spweb.AllowUnsafeUpdates = true;<br />
     SPSiteDataQuery spsitedataquery = new SPSiteDataQuery();<br />
     spsitedataquery.Lists = &#8220;&lt;Lists BaseType=&#8217;0&#8242;/&gt;&#8221;;<br />
     spsitedataquery.Query = &#8220;&lt;Where&gt;&lt;Gt&gt;&lt;FieldRef Name=&#8217;ID&#8217; /&gt;&lt;Value Type=&#8217;Number&#8217;&gt;0&lt;/Value&gt;&lt;/Gt&gt;&lt;/Where&gt;&#8221;;<br />
     spsitedataquery.Webs = &#8220;&lt;Webs Scope=&#8217;SiteCollection&#8217; /&gt;&#8221;;<br />
     spsitedataquery.ViewFields = &#8220;&lt;FieldRef Name=&#8217;Title&#8217; /&gt;&lt;FieldRef Name=&#8217;First_x0020_Name&#8217;    /&gt;&lt;FieldRef Name=&#8217;Last_x0020_Name&#8217; /&gt;&#8221;;<br />
     spsitedataquery.RowLimit = 10;<br />
     DataTable datatable = spweb.GetSiteData(spsitedataquery);<br />
     gvwList.DataSource = datatable;<br />
     gvwList.DataBind();<br />
     }<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=28&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2008/11/10/programming-sharepoint-list-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>
	</item>
		<item>
		<title>Modificare la password di Mediawiki da Mysql</title>
		<link>http://maverick83.wordpress.com/2008/11/06/modificare-la-password-di-mediawiki-da-mysql/</link>
		<comments>http://maverick83.wordpress.com/2008/11/06/modificare-la-password-di-mediawiki-da-mysql/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 09:46:51 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[Mediawiki]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=26</guid>
		<description><![CDATA[Mediawiki non memorizza la password in chiaro ma tramite l&#8217;algoritmo MD5. I passi che ho effettuato per modificare una password sono stati i seguenti: installazione nel sistema il tool &#8220;Mysql query browser&#8221; accesso tramite le credenziali di root del database esecuzione della seguenti query: update user set user_password = md5(concat(user_id,’-&#8217;,md5(’new_password’))) where user_name=someone<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=26&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mediawiki non memorizza la password in chiaro ma tramite l&#8217;algoritmo MD5. I passi che ho effettuato per modificare   una password sono stati i seguenti:</p>
<ol>
<li>installazione nel sistema il tool &#8220;Mysql query browser&#8221;</li>
<li>accesso tramite le credenziali di root del database</li>
<li>esecuzione della seguenti query:
<p><em><span style="color:#0000ff;">update user set user_password = md5(concat(user_id,’-&#8217;,md5(’new_password’))) where user_name=someone</span></em></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=26&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2008/11/06/modificare-la-password-di-mediawiki-da-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL Root Password Recovery</title>
		<link>http://maverick83.wordpress.com/2008/11/05/mysql-root-password-recovery/</link>
		<comments>http://maverick83.wordpress.com/2008/11/05/mysql-root-password-recovery/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 09:55:06 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Root Password Recovery]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=24</guid>
		<description><![CDATA[ Seguono le istruzioni per resettare una password di root di mysql: # stoppare mysqld #killall mysqld # lanciare mysqld con l&#8217;opzione skip-grant-tables, che evita di caricare le tabelle di sistema (tra cui anche quella degli accessi) fornendo libero accesso al servizio mysqld # mysqld_safe (o mysql_safe) &#8211;skip-grant-tables &#8211;user=mysql &#38; /usr/libexec/mysqld: ready for connections # entrare [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=24&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Seguono le istruzioni per resettare una password di root di mysql:<br />
<span style="color:#0000ff;"><em># stoppare mysqld</em></span><br />
<span style="color:#ff0000;">#killall mysqld</span></p>
<p><em><span style="color:#0000ff;"># lanciare mysqld con l&#8217;opzione skip-grant-tables, che evita di caricare le tabelle di sistema (tra cui anche quella degli accessi) fornendo libero accesso al servizio mysqld</span></em><br />
<span style="color:#ff0000;"># mysqld_safe (o mysql_safe) &#8211;skip-grant-tables &#8211;user=mysql &amp;</span></p>
<p>/usr/libexec/mysqld: ready for connections</p>
<p><span style="color:#0000ff;"><em># entrare in modalità client</em></span><br />
<span style="color:#ff0000;"># mysql</span></p>
<p>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 1 to server version: 3.23.56<br />
Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p><span style="color:#0000ff;"><em>#collegarsi al db mysql e inserire la query di update di cambio password</em></span><br />
<span style="color:#ff0000;">mysql&gt; USE mysql</span></p>
<p>Reading table information for completion of table and column names<br />
You can turn off this feature to get a quicker startup with -A<br />
Database changed</p>
<p><span style="color:#ff0000;">mysql&gt; UPDATE user SET password=password(&#8220;mianuovapassword&#8221;)WHERE user=&#8221;root&#8221;;</span></p>
<p>Query OK, 2 rows affected (0.00 sec)<br />
Rows matched: 2  Changed: 2  Warnings: 0</p>
<p><span style="color:#ff0000;">mysql&gt; flush privileges;</span><br />
Query OK, 0 rows affected (0.00 sec)</p>
<p><span style="color:#ff0000;">mysql&gt; exit</span><br />
poi<br />
<span style="color:#ff0000;">#mysqladmin flush-privileges</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=24&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2008/11/05/mysql-root-password-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>
	</item>
		<item>
		<title>Export/Import Spreadsheet</title>
		<link>http://maverick83.wordpress.com/2008/10/21/exportimport-spreadsheet/</link>
		<comments>http://maverick83.wordpress.com/2008/10/21/exportimport-spreadsheet/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 16:17:12 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Spreadsheet]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=22</guid>
		<description><![CDATA[Problema: durante l&#8217;importazione di una lista da Excel 2007 viene restituito in output l&#8217;errore &#8221; Method &#8216;Post&#8217; of object &#8216;IOWSPostData&#8217; failed&#8221; Soluzione: posizionarsi nella cartella C:\Program Files\Microsoft Office\Office12\1033 ed eseguire il file &#8216;EXPTOOWS&#8217; con Excel. Premere ALT+F11 ed aggiungere lVer=2 alla seguente riga lVer=Application.SharePointVersion(URL) per poi salvare il tutto. Provare l&#8217;operazione di importazione su SharePoint, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=22&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><strong><em>Problema:</em></strong> durante l&#8217;importazione di una lista da Excel 2007 viene restituito in output l&#8217;errore <em>&#8221; Method &#8216;Post&#8217; of object &#8216;IOWSPostData&#8217; failed&#8221;</em></p>
<p style="text-align:justify;"><strong><em>Soluzione: </em></strong>posizionarsi nella cartella C:\Program Files\Microsoft Office\Office12\1033 ed eseguire il file &#8216;EXPTOOWS&#8217; con Excel. Premere ALT+F11 ed aggiungere lVer=2 alla seguente riga lVer=Application.SharePointVersion(URL) per poi salvare il tutto. Provare l&#8217;operazione di importazione su SharePoint, se non funziona rimpiazzare la riga precedente con lVer=3 e riavviare la macchina.</p>
<p style="text-align:justify;">p.s. Nella macchina deve essere installato Microsoft Office 2007.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=22&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2008/10/21/exportimport-spreadsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>
	</item>
		<item>
		<title>Trasformare workflow creati con SharePoint Designer in Workflow template per Visual Studio</title>
		<link>http://maverick83.wordpress.com/2008/10/21/trasformare-workflow-creati-con-sharepoint-designer-in-workflow-template-per-visual-studio/</link>
		<comments>http://maverick83.wordpress.com/2008/10/21/trasformare-workflow-creati-con-sharepoint-designer-in-workflow-template-per-visual-studio/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 10:05:31 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=18</guid>
		<description><![CDATA[Riusare più volte, ed in contesti diversi un workflow, occorre create un workflow template da Visual Studio e pubblicarlo sul server SharePoint. Normalmente, un workflow creato semplicemente da SharePoint Designer è utilizzabile solo nel contesto del sito e della lista (o document library) su cui è stato creato. Nel blog ufficiale del team di SharePoint Designer viene [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=18&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Riusare più volte, ed in contesti diversi un workflow, occorre create un workflow template da Visual Studio e pubblicarlo sul server SharePoint. Normalmente, un workflow creato semplicemente da SharePoint Designer è utilizzabile solo nel contesto del sito e della lista (o document library) su cui è stato creato. Nel blog ufficiale del team di SharePoint Designer viene spiegato come fare per creare un workflow template partendo dal Designer: </p>
<ol>
<li>Crea un nuovo workflow project in Visual Studio</li>
<li>Copia i file .xoml e .rules da da SharePoint Designer al progetto Visual Studio</li>
<li>Genera in file .cs se desideri aggiungere altro codice al di sotto dello .xoml</li>
<li>Fai il deploy ed il debug del workflow</li>
</ol>
<p>dal blog di <a href="http://blogs.devleap.com/igor/archive/2007/07/08/trasformare-workflow-creati-con-sharepoint-designer-in-workflow-template-per-visual-studio.aspx">Igor Macori</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=18&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2008/10/21/trasformare-workflow-creati-con-sharepoint-designer-in-workflow-template-per-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>
	</item>
		<item>
		<title>Accesso anonimo su SharePoint</title>
		<link>http://maverick83.wordpress.com/2008/10/15/accesso-anonimo-su-sharepoint/</link>
		<comments>http://maverick83.wordpress.com/2008/10/15/accesso-anonimo-su-sharepoint/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 13:12:56 +0000</pubDate>
		<dc:creator>maverick</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Accesso Anonimo]]></category>

		<guid isPermaLink="false">http://maverick83.wordpress.com/?p=11</guid>
		<description><![CDATA[Attivando l&#8217;accesso anonimo a un sito Web, si consente agli utenti anonimi, nonché agli utenti autenticati ai quali non è stato concesso l&#8217;accesso al sito, di esplorare l&#8217;intero sito, compresi elenchi, raccolte, cartelle all&#8217;interno di un elenco o una raccolta, voci di elenco o documenti che ereditano le relative autorizzazioni dal sito Web. Se l&#8217;amministratore [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=11&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Attivando l&#8217;accesso anonimo a un sito Web, si consente agli utenti anonimi, nonché agli utenti autenticati ai quali non è stato concesso l&#8217;accesso al sito, di esplorare l&#8217;intero sito, compresi elenchi, raccolte, cartelle all&#8217;interno di un elenco o una raccolta, voci di elenco o documenti che ereditano le relative autorizzazioni dal sito Web. Se l&#8217;amministratore del server ha attivato l&#8217;accesso anonimo, i membri del gruppo di SharePoint Proprietari di <em>Nome sito</em> possono eseguire le operazioni seguenti:</p>
<ul style="text-align:justify;">
<li>Concedere l&#8217;accesso anonimo a un sito.</li>
<li>Concedere l&#8217;accesso anonimo solo a elenchi e raccolte.</li>
<li>Bloccare l&#8217;accesso anonimo a un sito.</li>
</ul>
<p style="text-align:justify;"><a href="http://maverick83.files.wordpress.com/2008/10/spaccessoanonimo.jpg"><img class="alignnone size-full wp-image-12" title="Accesso Anonimo SharePoint" src="http://maverick83.files.wordpress.com/2008/10/spaccessoanonimo.jpg?w=482&#038;h=582" alt="" width="482" height="582" /></a></p>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;"><strong> <span style="color:#0000ff;">ATTENZIONE </span></strong><span style="color:#0000ff;">  </span>L&#8217;attivazione dell&#8217;accesso anonimo riduce inevitabilmente il livello di protezione di un server Web, poiché gli utenti anonimi e gli utenti autenticati ai quali non è stato concesso l&#8217;accesso al sito possono potenzialmente modificarne le impostazioni o il contenuto, oppure lanciare un attacco Denial of Service ai danni del server e non sarà possibile risalire a un account utente reale.</p>
<p style="text-align:justify;"><strong><em>Considerazioni sull&#8217;accesso anonimo:</em></strong></p>
<p style="text-align:justify;">Quando si concede agli utenti anonimi di visualizzare il sito, gli elenchi o le raccolte, gli utenti anonimi possono inoltre individuare informazioni del sito, ad esempio gli indirizzi di posta elettronica e i contenuti inviati agli elenchi, alle raccolte e alle discussioni. Quando si concedono agli utenti anonimi autorizzazioni diverse dall&#8217;autorizzazione di lettura per elenchi e raccolte, gli utenti anonimi possono collaborare agli elenchi, partecipare alle discussioni, rispondere ai sondaggi e modificare i documenti, e quindi utilizzare una grande quantità di spazio su disco del server e altre risorse. Per garantire un livello di protezione più elevato per un sito, un elenco o una raccolta, non è consigliabile attivare l&#8217;accesso anonimo. Gli utenti anonimi non possono aprire siti per la modifica in programmi compatibili con Microsoft Windows SharePoint Services, ad esempio Microsoft Office SharePoint Designer 2007 né utilizzare il protocollo Cartelle Web in Windows, ovvero non possono visualizzare il sito in Risorse di rete.</p>
<p style="text-align:justify;"><strong><span style="color:#0000ff;">SUGGERIMENTO </span></strong>  Invece di concedere l&#8217;accesso anonimo, è possibile aggiungere il gruppo di protezione di Windows <strong>Authenticated Users</strong> al gruppo di SharePoint Visitatori di <em>Nome sito</em>. In questo modo, l&#8217;accesso in lettura al sito Web viene concesso a tutti i membri autenticati del dominio di Windows. A differenza di quelle degli utenti anonimi, le azioni degli utenti autenticati possono essere ricondotte all&#8217;esecutore. Per ulteriori informazioni sull&#8217;aggiunta di utenti ai gruppi di SharePoint, vedere <a class="OAnc" href="http://office.microsoft.com/search/redir.aspx?AssetID=HA101001461040&amp;CTT=5&amp;Origin=HA101130181040">Gestire i gruppi di SharePoint</a>.</p>
<p style="text-align:justify;">Come avviene per altre impostazioni delle autorizzazioni, quando si concede l&#8217;accesso anonimo a un sito, lo si concede anche ai siti secondari che ereditano le autorizzazioni da tale sito.</p>
<p style="text-align:justify;"><strong><em>Attivare l&#8217;accesso anonimo a un sito:</em></strong></p>
<p style="text-align:justify;">Per eseguire questa procedura è necessario che un amministratore abbia attivato l&#8217;accesso anonimo per l&#8217;applicazione Web. In caso contrario, l&#8217;opzione <strong>Accesso anonimo</strong> non verrà visualizzata.</p>
<ol style="text-align:justify;">
<li>Aprire il sito per il quale si desidera attivare l&#8217;accesso anonimo.</li>
<li>Scegliere <strong>Impostazioni sito</strong> dal menu <strong>Azioni sito</strong>.<strong> </strong>In un sito nel quale il menu <strong>Azioni sito</strong> è stato personalizzato, scegliere <strong>Impostazioni sito</strong>, quindi fare clic sulle impostazioni che si desidera visualizzare.</li>
<li>Nella colonna <strong>Utenti e autorizzazioni</strong> della pagina Impostazioni sito fare clic su <strong>Autorizzazioni avanzate</strong>.</li>
<li>Nella pagina Autorizzazioni scegliere <strong>Accesso anonimo</strong> dal menu<strong>Impostazioni</strong>.</li>
<li>Nella pagina Modifica impostazioni accesso anonimo selezionare le parti del sito Web alle quali gli utenti anonimi devono avere accesso.</li>
<p><strong> NOTA </strong>  Per ulteriori informazioni sulle opzioni disponibili in questa pagina, fare riferimento alla tabella precedente.</ol>
<p style="text-align:justify;"><strong><em>Attivare l&#8217;accesso anonimo a un elenco o una raccolta:</em></strong></p>
<p style="text-align:justify;"><strong> NOTE </strong></p>
<ul style="text-align:justify;">
<li>Utilizzare questa procedura solo se si è attivato l&#8217;accesso anonimo a un sito come descritto in precedenza e si è concesso l&#8217;accesso all&#8217;intero sito Web oppure solo a determinati elenchi e raccolte nel passaggio 5 precedente.</li>
<li>I passaggi successivi possono essere eseguiti solo su elenchi o raccolte che utilizzano autorizzazioni esclusive.</li>
</ul>
<ol style="text-align:justify;">
<li>Aprire l&#8217;elenco o la raccolta per il quale si desidera attivare l&#8217;accesso anonimo.</li>
<li>Scegliere <strong>Impostazioni elenco</strong> o <strong>Impostazioni raccolta</strong> dal menu<strong>Impostazioni</strong>.</li>
<li>Nella colonna <strong>Autorizzazioni e gestione</strong> fare clic su <strong>Autorizzazioni per questo elenco</strong> oppure su <strong>Autorizzazioni per questa raccolta</strong>.</li>
<p><strong> NOTA </strong>  Se l&#8217;elenco o la raccolta eredita le autorizzazioni dal relativo sito padre, il menu <strong>Impostazioni</strong> non sarà disponibile nella pagina Autorizzazioni.</p>
<li>Se l&#8217;elenco o la raccolta eredita le autorizzazioni dal sito, è necessario interrompere prima l&#8217;ereditarietà dal sito. A tale scopo, scegliere <strong>Modifica autorizzazioni</strong> dal menu <strong>Azioni</strong> e quindi fare clic su <strong>OK</strong> per continuare. In caso contrario, andare al passaggio 5.</li>
<li>Nella pagina Autorizzazioni scegliere <strong>Accesso anonimo</strong> dal menu <strong>Impostazioni</strong>.</li>
<li>Nella pagina Modifica impostazioni accesso anonimo selezionare le autorizzazioni che si desidera concedere agli utenti anonimi per l&#8217;elenco o la raccolta.</li>
<p style="text-align:justify;"><strong> NOTA </strong>  Per le raccolte è disponibile solo l&#8217;autorizzazione Visualizzazione elementi. Ciò consente di proteggere il sito da potenziali attacchi intrusivi nel codice script.</p>
</ol>
<p style="text-align:right;"><strong><em>fonte articolo: <span style="font-weight:normal;"><a href="http://office.microsoft.com/it-it/help/HA101130181040.aspx?pid=CL100605171040">Microsoft Office Online</a></span></em></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maverick83.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maverick83.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maverick83.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maverick83.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maverick83.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maverick83.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maverick83.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maverick83.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maverick83.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maverick83.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maverick83.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maverick83.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maverick83.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maverick83.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maverick83.wordpress.com&amp;blog=2252433&amp;post=11&amp;subd=maverick83&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maverick83.wordpress.com/2008/10/15/accesso-anonimo-su-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/049e7c2a1a6c6c06acd913b07572a2e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maverick</media:title>
		</media:content>

		<media:content url="http://maverick83.files.wordpress.com/2008/10/spaccessoanonimo.jpg" medium="image">
			<media:title type="html">Accesso Anonimo SharePoint</media:title>
		</media:content>
	</item>
	</channel>
</rss>
