<?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:blogger='http://schemas.google.com/blogger/2008' 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-6982826</id><updated>2026-09-17T09:39:35.093+02:00</updated><category term="VB.Net"/><category term=".Net"/><category term="Android"/><category term="VB"/><category term="mysql"/><category term="ubuntu server"/><category term="Apache2"/><category term="C#"/><category term="ClickOnce"/><category term="DateTime"/><category term="Enum"/><category term="VB.Net IsDisposed"/><category term="hex"/><category term="linux"/><category term="raspberry pi"/><category term="ubuntu"/><category term=".Net System.Text.ASCIIEncoding.ASCII"/><category term="127.0.0.53"/><category term="&lt;&lt;"/><category term="&gt;&gt;"/><category term="AnkhSVN"/><category term="Automatic updates"/><category term="BSoD"/><category term="Backgroundworker"/><category term="Barts PE"/><category term="C$"/><category term="CANoe"/><category term="COM Server"/><category term="COM object"/><category term="ChromeCast"/><category term="ClickOnce .Net"/><category term="DEFINER"/><category term="DNS"/><category term="DataTable.Select"/><category term="Declare"/><category term="ERUNT"/><category term="External IP"/><category term="Filezilla server"/><category term="Functions"/><category term="GRANT"/><category term="GetSharedDefaultFolder"/><category term="Google USB Driver"/><category term="Hostnamelookups"/><category term="IDE"/><category term="INVOKER"/><category term="MySQL MariaDB"/><category term="Netflix"/><category term="No Icon"/><category term="Optional"/><category term="OutLook"/><category term="PIC"/><category term="PIC10F322"/><category term="Procedures"/><category term="RA3"/><category term="Random"/><category term="SYSTEM_USER"/><category term="Samba share"/><category term="ShiftRight"/><category term="SpecialDirectories.CurrentUserApplicationData"/><category term="Sqlite"/><category term="Structure"/><category term="StumbleUpon"/><category term="TLS setting"/><category term="TwinCat"/><category term="TypeLib error"/><category term="UTC"/><category term="VS2010"/><category term="VS2013"/><category term="Views"/><category term="VirtualBox"/><category term="Visual Basic 2005"/><category term="Windows 10"/><category term="Windows XP"/><category term="Windows11"/><category term="XML"/><category term="ZWSP"/><category term="Zabbix 7.0.26"/><category term="access sucks"/><category term="android app inventor"/><category term="app.config"/><category term="bug"/><category term="checkbox"/><category term="cmd"/><category term="combobox"/><category term="cs"/><category term="database"/><category term="display failure"/><category term="error CS0234"/><category term="format"/><category term="framework version net problem"/><category term="fsck"/><category term="fsutil"/><category term="gambas"/><category term="gambas2"/><category term="grub2 change default"/><category term="hiberfile.sys"/><category term="ipconfig"/><category term="java"/><category term="kernel32.dll"/><category term="local"/><category term="office365"/><category term="ping .net"/><category term="radiobutton"/><category term="saa7134"/><category term="shared folder"/><category term="shiftLeft"/><category term="split vbCrLf"/><category term="sql"/><category term="sqlite database list tables"/><category term="sunset"/><category term="svchost.exe"/><category term="tabindex"/><category term="this operation requires an interactive window station"/><category term="time"/><category term="timer"/><category term="ubuntu server raid"/><category term="unity"/><category term="varible name valid"/><category term="vs2017"/><category term="webmin"/><category term="wheezy"/><category term="wpf"/><title type='text'>malamsson</title><subtitle type='html'>Welcome to Malamsson Blogg.&#xa;Here you find lots of accidental keyboard slips.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>94</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6982826.post-9007925223466142825</id><published>2026-09-17T09:39:35.093+02:00</published><updated>2026-09-17T09:39:35.093+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL MariaDB"/><title type='text'>MySQL to MariaDB</title><content type='html'>&lt;p&gt;&amp;nbsp;Here is a good description how to migrate to MariaDb&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/migrating-to-mariadb/moving-from-mysql/mysql-to-mariadb-migration-the-master-guide&quot; target=&quot;_blank&quot;&gt;MySQL to MariaDb&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Example of how to dump data from MySQL port=3307:&lt;/p&gt;&lt;p&gt;mysqldump --user=root --password=SECRET --port=3307 --databases automaze --single-transaction --routines --events --triggers --hex-blob &amp;gt; c:\junk\migration_dump.sql&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Import to MariaDb:&lt;/p&gt;&lt;p&gt;mariadb -u root -p &amp;lt; c:\junk\migration_dump.sql&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/9007925223466142825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/9007925223466142825' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/9007925223466142825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/9007925223466142825'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2026/09/mysql-to-mariadb.html' title='MySQL to MariaDB'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-5669828615999080444</id><published>2026-09-01T20:29:09.776+02:00</published><updated>2026-09-01T20:29:09.777+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DEFINER"/><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="INVOKER"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="Procedures"/><category scheme="http://www.blogger.com/atom/ns#" term="Views"/><title type='text'></title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;MySQL, Views, Procedures and Functions.&lt;/h1&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Having problem exporting Schemas to other computers due to DEFINER = &#39;OldCreator&#39;@&#39;%&#39;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;If the Schema have a default user change DEFINER = &#39;DefaultUser&#39;@&#39;%&#39; will make it easier to export the Schema to another user or database.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Also change SQL Security from Definer to Invoker.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Example: function CountJumperOnPiggyType&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;DELIMITER ;;&lt;br /&gt;CREATE &lt;b&gt;DEFINER=`DefaultUser`@`%`&lt;/b&gt; FUNCTION `CountJumperOnPiggyType`(&lt;br /&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;`INPpt_ix` INT&lt;br /&gt;&lt;/span&gt;) RETURNS int&lt;br /&gt;&amp;nbsp; &amp;nbsp; READS SQL DATA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;SQL SECURITY INVOKER&lt;/b&gt;&lt;br /&gt;BEGIN&lt;br /&gt;RETURN (SELECT ix, p_name FROM generic_piggy_jumper WHERE pt_ix=INPpt_ix)&lt;br /&gt;;&lt;br /&gt;END ;;&lt;br /&gt;DELIMITER ;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Editing Views, Procedures and Function work best with &lt;a href=&quot;https://github.com/HeidiSQL/HeidiSQL&quot; target=&quot;_blank&quot;&gt;HeidiSQL&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/5669828615999080444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/5669828615999080444' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/5669828615999080444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/5669828615999080444'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2026/09/mysql-views-procedures-and-functions.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-4272703304389080940</id><published>2026-05-06T10:21:00.003+02:00</published><updated>2026-05-06T10:21:44.281+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache2"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="Zabbix 7.0.26"/><title type='text'></title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;Apache2 crashes on Ubuntu Linux 22.04.5 after Zabbix was updated to 7.0.26&lt;/h1&gt;&lt;div&gt;During a upgrade of my Ubuntu server there was a new package for Zabbix 7.0.26 (maybe also apache2, unknown by me).&lt;/div&gt;&lt;div&gt;Apache2 stops working so did Zabbix.&lt;/div&gt;&lt;div&gt;Apache2 complains about&amp;nbsp;Apache &#39;ProxyTimeout 300&#39; found in&amp;nbsp;/etc/apache2/conf-enabled/zabbix.conf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;On my system following Apache2 modules wasn&#39;t running&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;proxy, proxy_http, proxy_fcgi&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So try to enabled them first by running in bash.&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;sudo a2enmod proxy&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;sudo a2enmod proxy_http&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;sudo a2enmod proxy_fcgi&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then restart Apache2 using:&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;sudo systemctl restart apache2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now check if Apache and Zabbix is up and running.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I also modified the /etc/apache2/conf-enabled/zabbix.conf, maybe not needed. I add the new data in zabbix.conf:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;# Define the alias so /zabbix points to the correct folder&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Alias /zabbix /usr/share/zabbix&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;Directory &quot;/usr/share/zabbix&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; Options FollowSymLinks&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; AllowOverride None&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; Require all granted&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;IfModule mod_php.c&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; php_value max_execution_time 300&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; php_value memory_limit 128M&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; php_value post_max_size 16M&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; php_value upload_max_filesize 2M&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; php_value max_input_time 300&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; php_value max_input_vars 10000&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Replace the timezone below with your actual timezone&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; php_value date.timezone UTC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/IfModule&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;Directory &quot;/usr/share/zabbix/conf&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; Require all denied&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;Directory &quot;/usr/share/zabbix/app&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; Require all denied&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;Directory &quot;/usr/share/zabbix/include&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; Require all denied&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;Directory &quot;/usr/share/zabbix/local&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; Require all denied&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;# The line that was causing your original error&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp;ProxyTimeout 300&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you updated zabbix.conf then restart apache2 again&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;sudo systemctl restart apache2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/4272703304389080940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/4272703304389080940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/4272703304389080940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/4272703304389080940'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2026/05/apache2-crashes-on-ubuntu-linux-22.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-3898553202695171443</id><published>2026-04-02T15:02:00.000+02:00</published><updated>2026-04-02T15:02:02.623+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ClickOnce .Net"/><title type='text'></title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;Revert ClickOnce applications.&lt;/h1&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Sometimes things don&#39;t goes as planned doing a new ClickOnce Release.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;To revert back to the next newest on the web server do as follow:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;There will be a &#39;Application Files&#39; folder at the root, open the next newest and copy&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;lt;YourApp&amp;gt;.application file THEN go back to root folder and overwrite the &amp;lt;YourApp&amp;gt;.application located there.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Now you can remove the version folder under &#39;Application Files&#39; for the bad version.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Next&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Open the index.html (could be namned something else) file in the root folder, look for version and correct it to what you selected from &#39;application files&#39;.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Done, next fix your broken application :)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/3898553202695171443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/3898553202695171443' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/3898553202695171443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/3898553202695171443'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2026/04/revert-clickonce-applications.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-7491834956366003902</id><published>2026-02-23T14:12:00.003+02:00</published><updated>2026-02-23T14:12:26.627+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="app.config"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'></title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;app.config&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;To hide tokens passwords etc&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;In your vb.net project open app.config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Add following lines&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;lt;appSettings file=&quot;secret.config&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;add key=&quot;AppName&quot; value=&quot;MyApp&quot; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;/appSettings&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Next create a secret.config file in same folder as app.config.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Add the file to the project and set properties &#39;Copy if newer&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Add following to it to secret.config:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;appSettings&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;add key=&quot;dbUser&quot; value=&quot;DbUserNameHere&quot; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;add key=&quot;dbPwd&quot; value=&quot;TopSecret&quot; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;/appSettings&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Now in your code:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;dim dbUser as string=ConfigurationManager.AppSettings(&quot;dbUsER&quot;)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Next exclude secret.config to be uploaded to your repository.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;gitIgnore&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/7491834956366003902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/7491834956366003902' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/7491834956366003902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/7491834956366003902'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2026/02/to-hide-tokens-passwords-etc-in-your-vb.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-8945547797455148958</id><published>2025-10-28T19:49:00.004+02:00</published><updated>2025-10-28T19:49:48.658+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Samba share"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows11"/><title type='text'></title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-family: verdana;&quot;&gt;Samba share stopped working on Windows11 😒😖&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Some fantastic update ruined my life.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Fix:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Run powershell as admin, run following commandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Set-SmbClientConfiguration -RequireSecuritySignature $false&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Set-SmbClientConfiguration -EnableInsecureGuestLogons $true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Found at :&amp;nbsp;&lt;a href=&quot;https://learn.microsoft.com/en-us/answers/questions/5551009/just-updated-windows-11-kb5065426-network-shares-n?ocid=OO_Core_NEU_GetHelp_DG_GetHelp_Solutions&quot; target=&quot;_blank&quot;&gt;fix samba&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/8945547797455148958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/8945547797455148958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/8945547797455148958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/8945547797455148958'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2025/10/samba-share-stopped-working-on.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-9180080743836152221</id><published>2025-03-26T10:54:00.003+02:00</published><updated>2025-03-26T10:54:22.216+02:00</updated><title type='text'></title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;IIS Backup and Restore&lt;/h1&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/answers/questions/1498028/how-can-i-back-up-iis-on-windows-10&quot; target=&quot;_blank&quot;&gt;Good link&lt;/a&gt;&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/9180080743836152221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/9180080743836152221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/9180080743836152221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/9180080743836152221'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2025/03/blog-post.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-4145907143272905233</id><published>2025-03-14T14:32:00.004+02:00</published><updated>2025-03-14T14:32:51.550+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="127.0.0.53"/><category scheme="http://www.blogger.com/atom/ns#" term="DNS"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu server"/><title type='text'></title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;Ubuntu Server DNS problem.&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;After a PC restart if computer got a new IP-address from DHCP it takes for ever for it to show up in DNS.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Doing a nslookup mycomputername from the ubuntu server it&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;showed that it wasn&#39;t using the DHCP DNS server but used its own.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;DNS was from 127.0.0.53.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;I ran&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: var(--black-600); font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;&quot;&gt;sudo apt install resolvconf&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;After that nslookup shows the correct DNS server :)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/4145907143272905233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/4145907143272905233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/4145907143272905233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/4145907143272905233'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2025/03/ubuntu-server-dns-problem.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-2353261226728418084</id><published>2025-02-14T14:11:00.007+02:00</published><updated>2025-02-14T14:34:41.547+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ClickOnce"/><title type='text'>ClickOnce application, how to restore for user if they click the Skip button.</title><content type='html'>&lt;p&gt;&amp;nbsp;in Command prompt run:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;rundll32 dfshim CleanOnlineAppCache&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/2353261226728418084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/2353261226728418084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/2353261226728418084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/2353261226728418084'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2025/02/clickonce-application-how-to-resotre.html' title='ClickOnce application, how to restore for user if they click the Skip button.'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-9085183847623645375</id><published>2025-02-10T10:32:00.001+02:00</published><updated>2025-02-10T10:32:26.969+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="display failure"/><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><title type='text'></title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;VirtualBox problem.&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;If VirtualBox fails to start Virtual OS, try following:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Close VirtualBox&lt;/li&gt;&lt;li&gt;Open cmd.exe as administrator&lt;/li&gt;&lt;li&gt;run following: bcdedit /set hypervisorlaunchtype off&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;It made my day at least 😀😄😄😄😄&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/9085183847623645375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/9085183847623645375' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/9085183847623645375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/9085183847623645375'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2025/02/virtualbox-problem.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-3833316365990375614</id><published>2024-12-03T13:50:00.002+02:00</published><updated>2024-12-03T13:50:38.670+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GRANT"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="SYSTEM_USER"/><title type='text'></title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;MySQL 8.0.39 Grant problem.&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;A user with all privileges wasn&#39;t able to update a Procedure, got error below.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;ERROR 1227: Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;We fixed it by running&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;GRANT SYSTEM_USER ON *.* TO &#39;userWithProblem&#39;;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Still connected as user &#39;userWithProblem&#39;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/3833316365990375614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/3833316365990375614' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/3833316365990375614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/3833316365990375614'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2024/12/mysql-8.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-7088506504068601353</id><published>2024-09-15T10:14:00.001+02:00</published><updated>2024-09-15T10:14:34.823+02:00</updated><title type='text'></title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;DELL bios update problem.&lt;/h1&gt;&lt;div&gt;Fixed by removing&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;background-color: white; clear: both; color: #080809; font-family: Roboto, sans-serif; font-size: 16px; margin: 1em 0px 1em 1.25em; padding: 0px 0px 0px 1.25em;&quot;&gt;&lt;li&gt;&lt;em&gt;“Microsoft System Management BIOS Driver”&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;“Microsoft Windows Management Interface for ACPI” (there will be several)&lt;/em&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;color: #080809; font-family: Roboto, sans-serif;&quot;&gt;&lt;i&gt;found in Device Manager -&amp;gt; System Devices&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #080809; font-family: Roboto, sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #080809; font-family: Roboto, sans-serif;&quot;&gt;&lt;i&gt;see source&amp;nbsp;&lt;a href=&quot;https://community.spiceworks.com/t/problem-repairing-dell-vostro-5880/945282/8&quot; target=&quot;_blank&quot;&gt;Dell Bios problem&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/7088506504068601353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/7088506504068601353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/7088506504068601353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/7088506504068601353'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2024/09/bios-update-problem.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-8113785911798443218</id><published>2024-03-06T15:13:00.001+02:00</published><updated>2024-03-06T15:13:06.420+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="&lt;&lt;"/><category scheme="http://www.blogger.com/atom/ns#" term="&gt;&gt;"/><category scheme="http://www.blogger.com/atom/ns#" term="shiftLeft"/><category scheme="http://www.blogger.com/atom/ns#" term="ShiftRight"/><title type='text'></title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;ShiftLeft vs multiply in .Net&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Converting 2 bytes to a UINT16&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Which is fastest? multiply or shiftLeft&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim a As Byte = 3&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim b As Byte = 7&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim c As UInt16&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For i = 0 To 100000&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;c = a + b * 256&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c = a + (CInt(b) &amp;lt;&amp;lt; 8)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Next&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Multiply wins, 10 % faster.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;NB!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;ShiftLeft &amp;lt;&amp;lt; isn&#39;t calculated first so you need the () around&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Shift left a byte, need to convert it to a uINT16 first.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;c=1795&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;if you calc it&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;c=b&amp;lt;&amp;lt;8 +3 = 56&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;c=a+ b&amp;lt;&amp;lt;8 = 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;c=cint(b)&amp;lt;&amp;lt;8+3 =&amp;nbsp;14336&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;c=a+cint(b)&amp;lt;&amp;lt;8 = 2560&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;c=a+(cint(b) &amp;lt;&amp;lt;8) =1795&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;So I will stay away from ShiftLeft/Right !&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/8113785911798443218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/8113785911798443218' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/8113785911798443218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/8113785911798443218'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2024/03/vs-multiply-in.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-8246996836005486670</id><published>2024-02-21T14:59:00.006+02:00</published><updated>2024-02-21T15:01:39.982+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ClickOnce"/><category scheme="http://www.blogger.com/atom/ns#" term="Filezilla server"/><category scheme="http://www.blogger.com/atom/ns#" term="TLS setting"/><title type='text'>Filezilla Server versus ClickOnce applications problem.</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Filezilla Server versus ClickOnce applications problem.&lt;/h2&gt;&lt;div&gt;Suddenly I wasn&#39;t able to deploy .Net applications using ClickOnce.&lt;/div&gt;&lt;div&gt;I got a FileZilla Server as the publisher Folder Locations. One day it stopped working, complaining on Passive Mode didn&#39;t work.&lt;/div&gt;&lt;div&gt;&amp;nbsp;I figure out the problem was at the server side.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;On Filezilla the minimum allowed TLS version was set to v1.2 ???&lt;/div&gt;&lt;div&gt;I&#39;m not sure if this was the default setting or if VS2017 had done some changes regarding minimum TLS level.&lt;/div&gt;&lt;div&gt;But after changing it to minimum v1.3, ClickOnce deployment start working :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To find the Minimum TLS level settings in FileZilla:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Open &#39;Administration Interface for FileZilla&#39;&lt;/li&gt;&lt;li&gt;Click Menu &#39;Server&#39;&lt;/li&gt;&lt;li&gt;Click &#39;Configure..&#39;&lt;/li&gt;&lt;li&gt;Select &#39;FTP and FTP over TLS (FTPS)&#39; under &#39;Protocol Settings&#39;&lt;/li&gt;&lt;li&gt;On the &#39;Connection Security&#39; tab, set &#39;Minimum allowed TLS version&#39; to v1.3&lt;/li&gt;&lt;li&gt;Click OK&lt;/li&gt;&lt;li&gt;We are done, at least I was 😁&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/8246996836005486670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/8246996836005486670' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/8246996836005486670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/8246996836005486670'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2024/02/filezilla-server-versus-clickonce.html' title='Filezilla Server versus ClickOnce applications problem.'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-6710125118953773199</id><published>2024-01-18T19:25:00.002+02:00</published><updated>2024-01-18T19:25:41.139+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ZWSP"/><title type='text'>Removing ZWSP &#39;Zero Width Space&#39; using VB.Net</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;font-family: verdana;&quot;&gt;Sometimes user will copy in a string from a web sites.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;It can contain a Zero Width Space character that will not be seen and will make your life a mess.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Pasting the string into Notepad++&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;PLCsymbol SignalName=&quot;​.bNewAMTG_Clutch_Cal&quot; Value=&quot;true&quot; /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;and enable show all characters you will see&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;PLCsymbol SignalName=&quot;&lt;b&gt;​ZWSP&lt;/b&gt;.bNewAMTG_Clutch_Cal&quot; Value=&quot;true&quot; /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;The ZWSP character is UniCode Char&amp;nbsp;&lt;span style=&quot;color: #111827; font-size: 14px; font-weight: 600; white-space-collapse: preserve;&quot;&gt;&amp;amp;H200B&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #111827; font-size: 14px; font-weight: 600; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;so &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #111827; font-size: 14px; font-weight: 600; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Dim CleanStr as string&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-weight: 600; white-space-collapse: preserve;&quot;&gt;CleanStr=messyStr&lt;/span&gt;&lt;span style=&quot;font-size: 14px; white-space: pre;&quot;&gt;.Replace(ChrW(&amp;amp;H200B), &quot;&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;This will remove any ZWSP&#39;s&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/6710125118953773199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/6710125118953773199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/6710125118953773199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/6710125118953773199'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2024/01/removing-zwsp-zero-width-space-using.html' title='Removing ZWSP &#39;Zero Width Space&#39; using VB.Net'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-2216014383808677724</id><published>2024-01-18T19:07:00.002+02:00</published><updated>2024-03-06T15:13:44.047+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DateTime"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>MySQL DateTime from .Net</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;font-family: verdana;&quot;&gt;I learn the hard way that different Windows Region settings will screw up your life.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;If user has a DateTime region setting not what you have as a devoloper you have to convert DateTime in your .Net program to send DateTime in MySQL format while doing UPDATE or INSERT INTO.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;dim myDate as Date&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;myDate=now&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Sending this to MySQL use following format string&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;INSERT INTO myTable bla bla&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Values ( myDat&lt;span style=&quot;background-color: white;&quot;&gt;e&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;ToString(&lt;b&gt;&lt;i&gt;&quot;yyyy-MM-dd HH:mm:ss&quot;&lt;/i&gt;&lt;/b&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;background-color: black; color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;background-color: black; color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;background-color: black; color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;background-color: black; color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;background-color: black; color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;background-color: black; color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;background-color: black; color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace&quot; style=&quot;background-color: black; color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/2216014383808677724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/2216014383808677724' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/2216014383808677724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/2216014383808677724'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2024/01/mysql-datetime-from-net.html' title='MySQL DateTime from .Net'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-4827480930682132175</id><published>2023-09-20T20:03:00.003+02:00</published><updated>2024-03-06T15:14:55.237+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hiberfile.sys"/><title type='text'></title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;How to remove hiberfile.sys on PC not using Sleep/hibernate.&lt;/h2&gt;&lt;p&gt;Open a console as admin&lt;/p&gt;&lt;p&gt;run:&amp;nbsp;&lt;span style=&quot;font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; word-spacing: normal;&quot;&gt;powercfg /hibernate off&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; word-spacing: normal;&quot;&gt;Done!&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/4827480930682132175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/4827480930682132175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/4827480930682132175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/4827480930682132175'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2023/09/to-remove-hiberfile.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-58740817724359146</id><published>2023-09-13T09:37:00.002+02:00</published><updated>2023-09-13T09:37:24.489+02:00</updated><title type='text'></title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Renew Apache TLS certificate&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;From&amp;nbsp;https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-22-04#step-2-creating-the-tls-certificate&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/58740817724359146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/58740817724359146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/58740817724359146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/58740817724359146'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2023/09/apache-tls-certificate-sudo-openssl-req.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-2786012150930027160</id><published>2022-02-18T16:53:00.004+02:00</published><updated>2022-02-18T16:54:58.853+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fsck"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>LInux fails to start, saved by fsck -f /dev/sda2</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;My virtualbox Ubuntu server failed after a update of Virtualbox 😟😳&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There was some messages about failed /dev/sda2 and that you should run fsck manual.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I tried this but nothing really happened.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Googled for fsck and found you should run:&amp;nbsp;&lt;code style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #232629; font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;fsck -f /dev/sda2&lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;code style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #232629; font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;code style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #232629; font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;It worked and I&#39;m happy again.&lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;code style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #232629; font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;code style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; color: #232629; font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 2px 4px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;a href=&quot;https://askubuntu.com/questions/885062/root-file-system-requires-manual-fsck&quot; target=&quot;_blank&quot;&gt;Link that saved my day&lt;/a&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/2786012150930027160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/2786012150930027160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/2786012150930027160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/2786012150930027160'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2022/02/linux-fails-to-start-saved-by-fsck-f.html' title='LInux fails to start, saved by fsck -f /dev/sda2'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-3316864984348146370</id><published>2021-01-28T17:22:00.002+02:00</published><updated>2021-01-28T17:22:24.230+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="office365"/><category scheme="http://www.blogger.com/atom/ns#" term="TypeLib error"/><title type='text'></title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Office 365 pain.&lt;/h1&gt;&lt;div&gt;.Net development got a hit, my usual code to access Excel stopped working when my job switched over to Office365. It compiles okay by when&amp;nbsp; opening a excel doc your hit with&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #535a60; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;Unable to cast COM object of type &#39;Microsoft.Office.Interop.Excel.ApplicationClass&#39; to interface type &#39;Microsoft.Office.Interop.Excel._Application&#39;. This operation failed because the Query Interface call on the COM component for the interface with IID &#39;{000208D5-0000-0000-C000-000000000046}&#39; failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #535a60; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #535a60; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;Clear as mud, to complicate life a bit more, some of my application run Excel okay.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #535a60; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #535a60; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;Fix, sort of:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #535a60; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; I been compiling the non working apps using CPU x86 to be sure they run on Win 32-bit PCs.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #535a60; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Win 32-bit isn&#39;t used anymore so I compiled it with setting &#39;Any CPU&#39; and now I&#39;m happy again.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #535a60; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/3316864984348146370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/3316864984348146370' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/3316864984348146370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/3316864984348146370'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2021/01/365-pain.html' title=''/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-1748421660115516078</id><published>2020-01-28T11:46:00.000+02:00</published><updated>2020-01-28T14:55:07.485+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="local"/><category scheme="http://www.blogger.com/atom/ns#" term="time"/><category scheme="http://www.blogger.com/atom/ns#" term="UTC"/><title type='text'>local to UTC time or vice versa</title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: large;&quot;&gt;You want to convert a local time to UTC time to be stored in a database running Vb.net&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: xx-small;&quot;&gt;&#39; Your local time&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: xx-small;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Debug.Print(&quot;Time local:&quot; + Now.ToString(&quot;yyyy-MM-dd HH:mm:ss&quot;))&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: xx-small;&quot;&gt;Dim currentTime As DateTime = DateTime.UtcNow&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #6aa84f;&quot;&gt;&#39;UTC Time&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Debug.Print(&quot;Time UTC:&quot; + currentTime.ToString(&quot;yyyy-MM-dd HH:mm:ss&quot;))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: xx-small;&quot;&gt;&#39; Convert UTC to local time&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Debug.Print(&quot;UTC to Local time:&quot; + currentTime.ToLocalTime.ToString(&quot;yyyy-MM-dd HH:mm:ss&quot;))&amp;nbsp;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/1748421660115516078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/1748421660115516078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/1748421660115516078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/1748421660115516078'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2020/01/local-to-utc-time-or-vice-versa.html' title='local to UTC time or vice versa'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-3956277627749817679</id><published>2019-09-25T13:37:00.000+02:00</published><updated>2019-09-25T13:37:13.390+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GetSharedDefaultFolder"/><category scheme="http://www.blogger.com/atom/ns#" term="OutLook"/><title type='text'>OutLook and GetSharedDefaultFolder problem</title><content type='html'>Reading shared calenders like &#39;TestRig 1&#39;, &#39;TestRig 2&#39;, &#39;TestRig 3&#39; using .GetSharedDefaultFolder() worked as a charm until&lt;br /&gt;
&#39;TestRig 11&#39; and &#39;Test Rig 12&#39; where added 😢.&lt;br /&gt;
&lt;br /&gt;
&#39;TestRig11 and 12 you can find but not TestRig1 anymore, using &#39;TestRig 1&#39; is almost same as &#39;TestRig 11&#39; only the last char is new.&lt;br /&gt;
&lt;br /&gt;
The Fix: &#39;TestRig 1&#39; is a view name, so changing to the real mail address instead testrig1@mytestcenter.com and the problem was solved 😀&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Code:&lt;br /&gt;
-----------------------------------------------------------------------------------&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;Sub ReadCalendarFromOutlook(calName As String)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim application As New Microsoft.Office.Interop.Outlook.Application&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim myNamespace As Outlook.NameSpace&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim myRecipient As Outlook.Recipient&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CalDay1.Scroll2Time(Now)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CalDay1.SetupTimeLine()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CalDay1.ClearAllEvents()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblCalInfo.Visible = False&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If calName = &quot;&quot; Then&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblCalInfo.Visible = True&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblCalInfo.Text = &quot;No Calendar available&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Sub&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; myNamespace = application.GetNamespace(&quot;MAPI&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; myRecipient = myNamespace.CreateRecipient(calName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Catch ex As Exception&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MsgBox(&quot;It looks like you are missing OutLook on the computer :(&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Sub&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim folder As Outlook.Folder = DirectCast(application.Session.GetSharedDefaultFolder(myRecipient, Outlook.OlDefaultFolders.olFolderCalendar), Outlook.Folder)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim todayAppointments As New List(Of Outlook.AppointmentItem)()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; ------------- Get Appointment for Date selected --------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim query = From p In folder.Items.Cast(Of Outlook.AppointmentItem)() Where p.Start.[Date] = DateTimePicker1.Value.[Date]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; ------------- Get ReCurrent Appointment for Date selected --------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim q1 As Outlook._AppointmentItem&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim query2 = From p In folder.Items.Cast(Of Outlook.AppointmentItem)()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For Each q1 In query2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If q1.IsRecurring Then&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim aRecurrent As Outlook.RecurrencePattern = q1.GetRecurrencePattern&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim dx As DateTime&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; dx = New DateTime(DateTimePicker1.Value.Year, DateTimePicker1.Value.Month, DateTimePicker1.Value.Day, q1.Start.Hour, q1.Start.Minute, 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dx = DateTimePicker1.Value.[Date] + q1.Start.[TimeOfDay]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim ap As Outlook.AppointmentItem = Nothing&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; .GetOccurence() seems a bit strange, it returns ap=Nothing if a Appoinment is found ??? ELSE it returns a ComException&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ap = aRecurrent.GetOccurrence(dx)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; ap = nothing, so we found an appointment&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CalDay1.AddEvent(DateTimePicker1.Value.[Date] + q1.Start.[TimeOfDay], DateTimePicker1.Value.[Date] + q1.End.[TimeOfDay], q1.Subject + vbCrLf + q1.Location)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Catch ex1 As System.Runtime.InteropServices.COMException&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; We end up here if appointment wasn&#39;t found for selected day&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Debug.Print(ex1.Message)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Catch ex As Exception&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Debug.Print(ex.Message)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If q1.Start.[Date] = DateTimePicker1.Value.[Date] Then&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CalDay1.AddEvent(q1.Start, q1.End, q1.Subject + vbCrLf + q1.Location)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; q1 = Nothing&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Next&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Catch ex As Exception&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Debug.Print(&quot;Error: &quot; + ex.Message)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; NB: If you got error msg &quot;Outlook does not recognize one or more names&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Then use CalName=&quot;TestRig1@testcenter.com instead of &quot;TestRig 1&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; When we added TestRig11 and 12, using &quot;TestRig 1&quot; stopped working.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblCalInfo.Visible = True&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblCalInfo.Text = &quot;Failed to read Calendar&quot; + vbCrLf + calName&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Try&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/3956277627749817679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/3956277627749817679' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/3956277627749817679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/3956277627749817679'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2019/09/outlook-and-getshareddefaultfolder.html' title='OutLook and GetSharedDefaultFolder problem'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-5446754854481622910</id><published>2019-08-29T22:39:00.000+02:00</published><updated>2019-09-25T13:39:10.649+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VS2013"/><category scheme="http://www.blogger.com/atom/ns#" term="vs2017"/><title type='text'>Weird .Net error Collection was modified; enumeration operation may not execute.</title><content type='html'>I got this error when closing a form, and it isn&#39;t pointing to a certain line of code it just happens.&lt;br /&gt;
The code has been running without problem for more than 5 year. But then I had to change from Win7 VS2013 to Win10 VS2017, BAM! I got this error.&lt;br /&gt;
&lt;br /&gt;
System.InvalidOperationException&lt;br /&gt;
&amp;nbsp; HResult=0x80131509&lt;br /&gt;
&amp;nbsp; Message=Collection was modified; enumeration operation may not execute.&lt;br /&gt;
&amp;nbsp; Source=mscorlib&lt;br /&gt;
&amp;nbsp; StackTrace:&lt;br /&gt;
&amp;nbsp; &amp;nbsp;at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;at System.Collections.Generic.List`1.Enumerator.MoveNextRare()&lt;br /&gt;
&amp;nbsp; &amp;nbsp;at System.Collections.Generic.List`1.Enumerator.MoveNext()&lt;br /&gt;
&amp;nbsp; &amp;nbsp;at Microsoft.VisualBasic.PowerPacks.ShapeCollection.Dispose(Boolean disposing)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;at Microsoft.VisualBasic.PowerPacks.ShapeContainer.Dispose(Boolean disposing)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;at System.ComponentModel.Component.Dispose()&lt;br /&gt;
&amp;nbsp; &amp;nbsp;at System.Windows.Forms.Control.Dispose(Boolean disposing)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;at MN_Bargraph.MN_BarGraph.Dispose(Boolean disposing) in C:\MN_Bargraph\UserControl1.Designer.vb:line 13&lt;br /&gt;
&lt;br /&gt;
It said something about .Designer.vb line 13&lt;br /&gt;
So I comment out the line as shown below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Protected Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If disposing AndAlso components IsNot Nothing Then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; components.Dispose()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Finally&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: lime;&quot;&gt;&#39;MyBase.Dispose(disposing)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Try&lt;br /&gt;
&amp;nbsp; &amp;nbsp; End Sub&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now no errors, why this works or what the designer.vb code does, don&#39;t ask me.&lt;/div&gt;
&lt;div&gt;
I&#39;m happy and clueless, good enough for me for now 😂&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/5446754854481622910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/5446754854481622910' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/5446754854481622910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/5446754854481622910'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2019/08/weird-net-error-collection-was-modified.html' title='Weird .Net error Collection was modified; enumeration operation may not execute.'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-1194870132841763078</id><published>2019-01-09T14:23:00.000+02:00</published><updated>2019-01-09T14:27:28.564+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C$"/><category scheme="http://www.blogger.com/atom/ns#" term="shared folder"/><title type='text'>Share folder C$ failes with &#39;access denied&#39;</title><content type='html'>&lt;br /&gt;
Sometimes you fail to access other computers C: drive using \\computername\c$&lt;br /&gt;
&lt;br /&gt;
&lt;span dir=&quot;none&quot;&gt;Add or update the following on the computer you want have access to:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span dir=&quot;none&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span dir=&quot;none&quot;&gt;&lt;span id=&quot;ms-rterangecursor-end&quot; style=&quot;display: inline-block;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System&lt;br /&gt;
create or modify 32-bit DWORD: LocalAccountTokenFilterPolicy&lt;br /&gt;
set the value to: 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://answers.microsoft.com/en-us/windows/forum/windows_7-security/getting-access-is-denied-when-accessing-windows-7/23369f35-bc45-4147-9c3e-74a47d530757&quot; target=&quot;_blank&quot;&gt;Info was found here&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/1194870132841763078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/1194870132841763078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/1194870132841763078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/1194870132841763078'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2019/01/share-folder-c-failes-with-access-denied.html' title='Share folder C$ failes with &#39;access denied&#39;'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6982826.post-4517547041144967705</id><published>2018-11-17T14:59:00.005+02:00</published><updated>2018-11-17T14:59:54.707+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="this operation requires an interactive window station"/><title type='text'>Driver problems</title><content type='html'>You trying to install a bit older driver on Windows 10 and you get following message:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&quot;this operation requires an interactive window station&quot;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Newer Windows 10 releases seems to add some extra protection layer when installing drivers😞&lt;br /&gt;
&lt;br /&gt;
Luckily someone else got the problem and found a solution:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://forums.lenovo.com/t5/Lenovo-Yoga-Series-Notebooks/Unable-to-update-driver-Yoga-910-Error-quot-This-operation/td-p/4083052&quot; target=&quot;_blank&quot;&gt;Some poor bastard as me&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The Solution:&lt;/b&gt; Take OwerShip of c:\Windows\System32\Drivers and \DriverStore folders.&lt;br /&gt;
&lt;br /&gt;
HowTo you find here:&lt;br /&gt;
&amp;nbsp;&lt;a href=&quot;https://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/&quot;&gt;https://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://malamsson.blogspot.com/feeds/4517547041144967705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6982826/4517547041144967705' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/4517547041144967705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6982826/posts/default/4517547041144967705'/><link rel='alternate' type='text/html' href='http://malamsson.blogspot.com/2018/11/driver-problems.html' title='Driver problems'/><author><name>malamsson</name><uri>http://www.blogger.com/profile/12510383605334129633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>