<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-27364426</id><updated>2011-12-15T03:52:33.711+01:00</updated><title type='text'>Experiencias .NET</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-27364426.post-2977650588147942031</id><published>2007-11-05T22:31:00.001+01:00</published><updated>2007-11-05T22:31:02.934+01:00</updated><title type='text'>T-SQL: Concatenate something + null=null</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;Today I have lost 2 hours until I have discovered this rule. I wanted to concatenate the contents of a field in the database with a variable using something like that:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;UPDATE &lt;em&gt;TableName&lt;/em&gt;&lt;br /&gt;				&lt;br/&gt;SET &lt;em&gt;FieldName=FieldName &lt;/em&gt;+ ',' + @value &lt;br/&gt;WHERE ID=@ID&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If the value of &lt;em&gt;FieldName&lt;/em&gt; is null this operation is very stupid because the result will be null too. In my case I have forced that the field was not nullable (default value: '') and all runs.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-2977650588147942031?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/2977650588147942031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=2977650588147942031' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/2977650588147942031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/2977650588147942031'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2007/11/t-sql-concatenate-something-nullnull.html' title='T-SQL: Concatenate something + null=null'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-5832949558484670432</id><published>2007-10-30T18:45:00.001+01:00</published><updated>2007-10-30T18:45:24.354+01:00</updated><title type='text'>Vertical Label</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;Recently I have needed to display a label with the text in vertical direction. I have accomplished it using CSS with the next CSS class:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:maroon; font-family:Courier New; font-size:10pt'&gt;.verticaltext&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;{&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;    &lt;span style='color:red'&gt;writing-mode&lt;/span&gt;: &lt;span style='color:blue'&gt;tb-rl&lt;/span&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;    &lt;span style='color:red'&gt;filter&lt;/span&gt;: &lt;span style='color:blue'&gt;flipv&lt;/span&gt;&lt;br /&gt;					&lt;span style='color:blue'&gt;fliph&lt;/span&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;    &lt;span style='color:red'&gt;text-indent&lt;/span&gt;: &lt;span style='color:blue'&gt;60&lt;/span&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;    &lt;span style='color:red'&gt;padding&lt;/span&gt;: &lt;span style='color:blue'&gt;2px&lt;/span&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;    &lt;span style='color:red'&gt;height&lt;/span&gt;: &lt;span style='color:blue'&gt;75px&lt;/span&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;Related links:&lt;br/&gt;&lt;a href='http://www.ssi-developer.net/css/vertical-text.shtml'&gt;http://www.ssi-developer.net/css/vertical-text.shtml&lt;/a&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-5832949558484670432?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/5832949558484670432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=5832949558484670432' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/5832949558484670432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/5832949558484670432'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2007/10/vertical-label.html' title='Vertical Label'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-4293984267442025563</id><published>2007-06-01T12:51:00.001+02:00</published><updated>2007-06-01T12:51:34.016+02:00</updated><title type='text'>Accessibility, CSS Friendly Controls, AspNet Menu and IE6</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;If you are developing an accesible site with ASP.NET 2.0 you can use the CSS Friendly Controls Adapters to render the controls without tables. You can access to the project at &lt;a href='http://www.codeplex.com/cssfriendly'&gt;http://www.codeplex.com/cssfriendly&lt;/a&gt;.  The current release of the AspNet Menu does not work with IE6 and the menus are invisible. After some investigation I discover that the problem is the Menu.css in the project. I have excluded this file and it shows the menu in IE6. Finally I have discovered what was happening. There is a bug in IE6 with the next class included in the Menu.css:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;span style='color:#a31515'&gt;ul.AspNet-Menu&lt;/span&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;{&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;&lt;br /&gt;					&lt;span style='text-decoration:line-through'&gt;&lt;span style='color:red'&gt;position&lt;/span&gt;: &lt;span style='color:blue'&gt;relative&lt;/span&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;If you delete it all will works fine. For that reason I recommend to check the CSS files included in the project and verify it if you detect some strange behavior. In our case we have model the menu in the css of the application.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Special thanks to Edu and Victor who detect it.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:8pt'&gt;Related Links:&lt;br&gt;&lt;/br&gt;&lt;a href='http://www.codeplex.com/cssfriendly'&gt;http://www.codeplex.com/cssfriendly&lt;/a&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:8pt'&gt;&lt;br /&gt;				&lt;/span&gt; &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-4293984267442025563?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/4293984267442025563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=4293984267442025563' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/4293984267442025563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/4293984267442025563'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2007/06/accessibility-css-friendly-controls.html' title='Accessibility, CSS Friendly Controls, AspNet Menu and IE6'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-4252892657403874614</id><published>2007-04-23T02:09:00.001+02:00</published><updated>2007-04-23T02:12:54.025+02:00</updated><title type='text'>Writing into Event Log from an ASP.NET application</title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;If you try to write an entry to events log form an ASP.NET application is probably that you find an exception like this "The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.". The reason is that the ASP.NET process cannot find the source of the entry. You have to create it manually because, by default, the ASP.NET process, cannot do it programmatically. To create it manually you have to add a new entry in the registry (regedit.exe) with the name of your source (in the example TEST under Application log) in the following path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application". Then, with the following code, you can write your entries.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt; sSource;&lt;br /&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt; sEvent;&lt;br /&gt;sSource = &lt;span style="color:maroon;"&gt;"TEST"&lt;/span&gt;;&lt;br /&gt;sLog = &lt;span style="color:maroon;"&gt;"Application"&lt;/span&gt;;&lt;br /&gt;sEvent = &lt;span style="color:maroon;"&gt;"Sample Event"&lt;/span&gt;;&lt;br /&gt;&lt;span style="color:teal;"&gt;EventLog&lt;/span&gt;.WriteEntry(sSource, sEvent); &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;font-size:78%;"&gt;Related Links:&lt;br /&gt;&lt;/span&gt;&lt;a href="http://pranas.net/Tutorials/asp/EventLog.htm"&gt;&lt;span style="font-family:courier new;font-size:78%;"&gt;http://pranas.net/Tutorials/asp/EventLog.htm&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:courier new;font-size:78%;"&gt; (example)&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-4252892657403874614?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/4252892657403874614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=4252892657403874614' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/4252892657403874614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/4252892657403874614'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2007/04/writing-into-event-log-from-aspnet.html' title='Writing into Event Log from an ASP.NET application'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-7217168242548901637</id><published>2007-03-09T23:44:00.000+01:00</published><updated>2007-03-09T23:55:13.437+01:00</updated><title type='text'>New certification</title><content type='html'>Today I have passed the 70-528 (Microsoft .NET Framework 2.0 - Web-Based Client Development). It adds to my previous certification in Windows and web development on the .net framework 1.1 (70-316 &amp;amp; 70-315).&lt;br /&gt;Personally I have found this last exam more util than the previous version due the more general questions.&lt;br /&gt;If you are preparing this exam I recomend the books of Dino Esposito about ASP.NET 2.0.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-7217168242548901637?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/7217168242548901637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=7217168242548901637' title='141 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/7217168242548901637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/7217168242548901637'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2007/03/new-certification.html' title='New certification'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>141</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-117162053199483895</id><published>2007-02-16T11:08:00.000+01:00</published><updated>2007-02-16T18:17:36.026+01:00</updated><title type='text'>CRCDISK.SYS</title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;After the last crash of my old XP I decided to install Vista on my Dell Latitude 610. I have installed Office 2007 and it was so pretty…&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But when all were running perfectly during two days, this morning I could not start my notebook. After rebooting in safe mode it stopped at the load of the CRCDISK.SYS and 10-15 minutes later it continues with the boot process. Searching on the net I found a lot of posts about this issue, but apparently nothing could be applied to my notebook. Some posts talked about the external devices, other about the upgrade from XP and other about the energy supply. Then I remembered that the only suspicious thing that I had done about energy supply was to change de "Power Plan" of my machine from "Balanced" to "High Performance". Finally, I reverted this setting and all works.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Note: Now I am writing this post from Vista and directly from Word 2007. A great feature!&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-117162053199483895?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/117162053199483895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=117162053199483895' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/117162053199483895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/117162053199483895'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2007/02/crcdisksys.html' title='CRCDISK.SYS'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-117069697782091337</id><published>2007-02-05T18:30:00.000+01:00</published><updated>2007-02-05T18:36:18.493+01:00</updated><title type='text'>Creating a secure site using SSL</title><content type='html'>I have found this utility to do it in less than 1 minute and the most important thing... WITHOUT TYPING! Its name is &lt;strong&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=CABEA1D0-5A10-41BC-83D4-06C814265282&amp;amp;displaylang=en"&gt;SSL Diagnostics Version 1.1 (x86)&lt;/a&gt; &lt;/strong&gt;and you can get it from Microsoft. You only have to identify your IIS instance, right-click and choose &lt;em&gt;Create New Cert&lt;/em&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-117069697782091337?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/117069697782091337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=117069697782091337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/117069697782091337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/117069697782091337'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2007/02/creating-secure-site-using-ssl.html' title='Creating a secure site using SSL'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-116902545724556970</id><published>2007-01-17T10:03:00.000+01:00</published><updated>2007-01-17T10:17:39.760+01:00</updated><title type='text'>Closing a terminal server sesison remotely.</title><content type='html'>Several times I get an error when I try to conenct to a server through remote desktop. That is due to the number of termional server sessions on the server has been exceeded. My solution was to go to the phisical machine, log in and disconnect one of the sessions. But what happens if the machine is not accessible phisically.&lt;br /&gt;&lt;br /&gt;Well there are two commands that will do my live easier: qwinsta and rwinsta. With qwinsta you can &lt;strong&gt;query&lt;/strong&gt; the opened sessions in a server:&lt;br /&gt;qwinsta /server:[&lt;em&gt;IP&lt;/em&gt; | &lt;em&gt;name&lt;/em&gt;]&lt;br /&gt;&lt;br /&gt;rdp-tcp                                 65536  Escuchar  rdpwd&lt;br /&gt;rdp-tcp#2         Administrator             2  Activo    rdpwd&lt;br /&gt;rdp-tcp#4         Administrator             1  Activo    rdpwd&lt;br /&gt;&lt;br /&gt;With rwinsta you can &lt;strong&gt;reset&lt;/strong&gt; the connections. You have to specify the server and the session ID. &lt;br /&gt;rwinsta /server:[&lt;em&gt;IP&lt;/em&gt; | &lt;em&gt;name&lt;/em&gt;] id&lt;br /&gt;&lt;br /&gt;In the last example we could reset the session with: rwinsta /server:NEO 2&lt;br /&gt;Where NEO is the name of the machine and '2' is the session id.&lt;br /&gt;&lt;br /&gt;For more administration utilities you can visit this &lt;a href="http://www.microsoft.com/technet/sysinternals/default.mspx"&gt;page&lt;/a&gt; about sysinternals.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-116902545724556970?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/116902545724556970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=116902545724556970' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/116902545724556970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/116902545724556970'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2007/01/closing-terminal-server-sesison.html' title='Closing a terminal server sesison remotely.'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-115973382878581728</id><published>2006-10-01T22:11:00.000+02:00</published><updated>2006-10-01T22:17:09.056+02:00</updated><title type='text'>How was that connection string...?</title><content type='html'>How many times have you made this question?&lt;br /&gt;Well, in this &lt;a href="http://www.connectionstrings.com/"&gt;page&lt;/a&gt; you can find all the connection strings that you need.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-115973382878581728?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/115973382878581728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=115973382878581728' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/115973382878581728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/115973382878581728'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2006/10/how-was-that-connection-string.html' title='How was that connection string...?'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-115934882937988441</id><published>2006-09-27T11:10:00.000+02:00</published><updated>2006-09-27T11:20:29.830+02:00</updated><title type='text'>Creating users programmatically in DNN 4.3.5</title><content type='html'>We had creted a custom registration module in DNN 4.0.3. When I updated my module to DNN 4.3.5 I found that this version had several changes.&lt;br /&gt;&lt;br /&gt;The major issue I have found is the fact that I can not set any profile property. In this &lt;a href="http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/ctl/PostEdit/mid/2108/forumid/111/postid/61646/action/reply/Default.aspx"&gt;DNN forum&lt;/a&gt; you can finf how to resolve it. In my case in didnt' work. After try several alternatives I have fixed setting the properties out of the profile and directly into the UserInfo properties:&lt;br /&gt;&lt;br /&gt;Example in DNN 4.0.X:&lt;br /&gt;objNewUserInfo.Profile.FirstName="Alex";&lt;br /&gt;&lt;br /&gt;Example in DNN 4.3.X:&lt;br /&gt;objNewUserInfo.Firstname="Alex";&lt;br /&gt;&lt;br /&gt;With this solution now I can sign in my users in portal.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-115934882937988441?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/115934882937988441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=115934882937988441' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/115934882937988441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/115934882937988441'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2006/09/creating-users-programmatically-in-dnn.html' title='Creating users programmatically in DNN 4.3.5'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-115928386145657887</id><published>2006-09-26T17:16:00.000+02:00</published><updated>2006-09-26T17:17:42.416+02:00</updated><title type='text'>Shrinking the Log File in SQL Server 2005</title><content type='html'>Sometimes we need to delete the log file as quickly as possible. This is not the best way but is the most simple. Only in 6 steps:&lt;br /&gt;   1 - Detach DataBase&lt;br /&gt;   2 - Rename Log file or remove if tou are completely sure.&lt;br /&gt;   3 - Attach the database. You have to select the mdf file of the database.&lt;br /&gt;   4 - If you have deleted or renamed the log file tou will see an error "Not found" in the log file of the attached database.&lt;br /&gt;   5 - Select the log file with the error and click on "Remove"&lt;br /&gt;   6 - Click on "OK"&lt;br /&gt;&lt;br /&gt;Now you have the same database without the large log file. Automatically SQL Server creates another file with minimum size and you can delete the file.&lt;br /&gt;&lt;br /&gt;Use this method only to shrink database files without imprtance (development or test DB).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-115928386145657887?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/115928386145657887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=115928386145657887' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/115928386145657887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/115928386145657887'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2006/09/shrinking-log-file-in-sql-server-2005.html' title='Shrinking the Log File in SQL Server 2005'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-115002946547390820</id><published>2006-06-11T14:35:00.000+02:00</published><updated>2006-06-11T14:44:34.816+02:00</updated><title type='text'>DotNetNuke, HttpContext &amp; Scheduler</title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;This post resolves an issue with the HttpContext in a scheduled task.  I had created a function that deleted the users from a portal. The problem was that I could not invoke to UserController because the application crash throwing an “Object reference not set to an instance of an object” Exception.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The reason is the invocation to UserController needs to get the HttpContext and it does not exist during the execution of a scheduler task. The solution consists is create an HttpContext and use it. In order to do I get the code from this &lt;a href="http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/436/Default.aspx"&gt;&lt;span style="color:#0070c0"&gt;post&lt;/span&gt;&lt;/a&gt; and translate to C#. &lt;br /&gt;&lt;/p&gt;&lt;span style="font-family:Courier New; font-size:8"&gt;&lt;p&gt;public class SchedulerHttpContext&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        private static string appPhysicalDir;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        public static void setHttpContextWithSimulatedRequest()&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;           string appVirtualDir = "/";&lt;br /&gt;&lt;/p&gt;&lt;p&gt;           if (appPhysicalDir == null)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;               if (Thread.GetDomain().GetData(".appPath") != null)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                    appPhysicalDir = Thread.GetDomain().GetData(".appPath").ToString();&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                else&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                    throw new Exception("Error 1: CRASH!");&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            if (appPhysicalDir.Length == 0)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                if (Thread.GetDomain().GetData(".appPath") != null)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                    appPhysicalDir = Thread.GetDomain().GetData(".appPath").ToString();&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                else&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                    throw new Exception("Error 2: CRASH!");&lt;br /&gt;&lt;/p&gt;&lt;p&gt;                }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;           Thread.GetDomain().SetData(".appPath", null);&lt;br /&gt;&lt;/p&gt;&lt;p&gt;           string page = ((string)(System.Web.HttpRuntime.AppDomainAppVirtualPath + "/default.aspx")).TrimStart("/".ToCharArray());&lt;br /&gt;&lt;/p&gt;&lt;p&gt;           string query = "";&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            StringWriter output = new StringWriter();&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            SimpleWorkerRequest workerRequest = new SimpleWorkerRequest(appVirtualDir, appPhysicalDir, page, query, output);&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            HttpContext.Current = new HttpContext(workerRequest);&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    }&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;When I need to retrieve the user information I only have to invoke to SchedulerHttpContext.setHttpContextWithSimulatedRequest() at the beginning. Here you can see an example of a SchedulerClient:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;span style="font-family:Courier New; font-size:8"&gt;&lt;p&gt;public class CleanUsers : DotNetNuke.Services.Scheduling.SchedulerClient&lt;br /&gt;&lt;/p&gt;&lt;p&gt;    {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        public CleanUsers(DotNetNuke.Services.Scheduling.ScheduleHistoryItem objScheduleHistoryItem)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            : base()&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            this.ScheduleHistoryItem = objScheduleHistoryItem;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        public override void DoWork()&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        {&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            this.Progressing();&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            this.ScheduleHistoryItem.AddLogNote("Begin Task!");&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            SchedulerHttpContext.setHttpContextWithSimulatedRequest();&lt;br /&gt;&lt;/p&gt;&lt;p&gt;            soSomething(); //doSomething can call to UserController methods&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;     this.ScheduleHistoryItem.AddLogNote("Finished Task");&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;            this.ScheduleHistoryItem.Succeeded = true;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;        }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-115002946547390820?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/115002946547390820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=115002946547390820' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/115002946547390820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/115002946547390820'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2006/06/dotnetnuke-httpcontext-sch_115002946547390820.html' title='DotNetNuke, HttpContext &amp; Scheduler'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-114997373083890186</id><published>2006-06-10T23:06:00.000+02:00</published><updated>2007-02-05T18:42:55.493+01:00</updated><title type='text'>Scheduled Task in DotNetNuke 4.0</title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;DotNetNuke offers the possibility of schedule some tasks. In this &lt;a href="http://www.dotnetnuke.com/LinkClick.aspx?link=DotNetNuke+Skinning.doc&amp;tabid=478&amp;amp;mid=857"&gt;document&lt;/a&gt; you will get the instructions to create a scheduled task. This is valid for .NET framework 1.1. The problem is that we need to specify where the assembly that contains the scheduled task is, and the compilation model in ASP.NET 2.0 compiles our classes dynamically and we cannot know what the assembly that contains the class is.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In this &lt;a href="http://forums.asp.net/1114393/ShowPost.aspx"&gt;post&lt;/a&gt; of Shaun Walker we can get a solution. He proposes to publish our web site in order to get the assemblies of our portal. This solution is a good solution when you need to deploy the website, but when you are developing the scheduled tasks you have to publish all website to get the assembly. This is a waste of time and it is not necessary. We can generate the assembly from the command line in a few seconds. These are the steps:&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;Create a SchedulerClient task. The class in the above &lt;a href="http://www.dotnetnuke.com/LinkClick.aspx?link=DotNetNuke+Skinning.doc&amp;amp;amp;tabid=478&amp;mid=857"&gt;document&lt;/a&gt; can be used as example.&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Save the file as “Scheduler.cs” for example.&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Compile the assembly from command line. If you are using VS 2005 you can do it from “Visual Studio 2005 Command Prompt” inside “Visual Studio Tools”. A valid command might be:&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:courier new;color:green;"&gt;csc /target:library /out:Scheduler.dll /r:.\ReferenceAssembly.dll,&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;color:green;"&gt;.\DotNetNuke.dll /recurse:Scheduler.cs&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Copy the generated assembly (Scheduler.dll) in the bin directory of the DotNetNuke portal.&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;At this point you can follow the instructions in the &lt;a href="http://www.dotnetnuke.com/LinkClick.aspx?link=DotNetNuke+Skinning.doc&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;tabid=478&amp;amp;mid=857"&gt;document&lt;/a&gt; to configure the scheduled task.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-114997373083890186?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/114997373083890186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=114997373083890186' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/114997373083890186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/114997373083890186'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2006/06/scheduled-task-in-dotnetnuke-40.html' title='Scheduled Task in DotNetNuke 4.0'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27364426.post-114648233628343732</id><published>2006-05-01T13:15:00.000+02:00</published><updated>2006-05-01T13:18:56.340+02:00</updated><title type='text'>Hola a tod@s!</title><content type='html'>Nace "Experiencias .NET", un blog destinado a compartir todo aquello que crea interesante en el desarrollo de software en .NET 2.0.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/27364426-114648233628343732?l=experienciasnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experienciasnet.blogspot.com/feeds/114648233628343732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27364426&amp;postID=114648233628343732' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/114648233628343732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27364426/posts/default/114648233628343732'/><link rel='alternate' type='text/html' href='http://experienciasnet.blogspot.com/2006/05/hola-tods.html' title='Hola a tod@s!'/><author><name>Àlex</name><uri>http://www.blogger.com/profile/10077073064731942315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_LzxAFX1gXeI/SqJdYj4QRqI/AAAAAAAAACQ/-5NSxr3MaOM/S220/Dibujo.JPG'/></author><thr:total>0</thr:total></entry></feed>
