tag:blogger.com,1999:blog-24476770463410219232024-02-20T17:16:12.548+01:00Nerdy notesA tech notes dumping groundVidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.comBlogger54125tag:blogger.com,1999:blog-2447677046341021923.post-76203064077963712792017-01-26T12:46:00.001+01:002017-01-26T12:46:29.607+01:00MFC dialog properties do not display Control Events or Message properties<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Problem:</b> I was creating a new dialog in an old MFC project, and notified that the new dialog did not display <i>any</i> entry under the dialog properties' Control Events section or the Messages section. There was however no problem running the dialog - even capturing click events etc.. So the problem was annoying, but not much more.<br />
<br />
<b>Analysis: </b>In dialogs where this displayed correctly, I noticed that the difference was in the constructor of the dialog class. My code had something like:<br />
<b> </b> <br />
<span style="font-size: small;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: cyan;"><span style="color: darkcyan;">MyDlg</span>::MyDlg() : <span style="color: darkcyan;">CDialog</span>(<span style="color: #314f4f;">IDD</span>_MY_DIALOG, <span style="color: blue;">nullptr</span>)</span></span></span><br />
<br />
<span style="font-family: inherit; font-size: small;"><span style="color: green;"></span><b>Solution: </b>Some of the working classes had:</span><br />
<br />
<span style="color: cyan;"><span style="font-size: small;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: darkcyan;">MyDlg</span>::MyDlg() : <span style="color: darkcyan;">CDialog</span>(<span style="color: #314f4f;">IDD</span>, <span style="color: blue;">nullptr</span>)</span></span></span><br />
<br />
<span style="font-family: inherit;"><span style="font-family: inherit; font-size: small;">...where IDD was defined like this in the header file:</span></span></div>
<br />
<span style="color: cyan;"><span style="font-size: small;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: blue;">enum</span> { <span style="color: #314f4f;">IDD</span> = <span style="color: #6f008a;">IDD_MY_DIALOG</span> };</span></span>
<b> </b></span><br />
<br />
<b>Solution: </b>It turns out that the enum line in the header is needed to make Visual Studio connect the dots between the dialog and its dialog class. It is actually also being explained in this <a href="http://stackoverflow.com/questions/2131394/how-does-visual-studio-associate-mfc-dialog-classes-with-dialog-resources" target="_blank">StackOverflow article</a>.
</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-19729883950113676332014-06-05T14:16:00.002+02:002014-06-05T14:46:48.930+02:00Computer on/off event viewer filter<div dir="ltr" style="text-align: left;" trbidi="on">
Sometimes I want to track when I turned my computer on or off, including when it went to sleep or woke back up again. To do that, I have created a custom view in Event Viewer on my Windows 8 system (should be the same for all systems from Vista and beyond, I assume). Go to Custom Views and click on "Filter current custom...". Switch to the XML tab and check the "Edit query manually" in the lower part. Now, paste the following in there:<br />
<br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;"><QueryList><br /> <Query Id="0" Path="System"><br /> <Select Path="System"><br /> *[System<br /> [Provider<br /> [@Name='Microsoft-Windows-Kernel-Power' <br /> or @Name='Microsoft-Windows-Power-Troubleshooter'<br /> ]<br /> and TimeCreated [timediff(@SystemTime) &lt;= 2592000000]<br /> ]<br /> ]<br /> or<br /> *[System<br /> [Provider<br /> [@Name='Microsoft-Windows-Kernel-General'] <br /> and ( (EventID &gt;= 12 and EventID &lt;= 13) )<br /> and TimeCreated [timediff(@SystemTime) &lt;= 2592000000]<br /> ]<br /> ]<br /> </Select><br /> </Query><br /></QueryList></span></span><br />
Basically, it is the equivalent of this, but only showing event 12 (switch off) and 13 (switch on) for the Kernel General source:<br />
<br />
<br />
<a href="https://www.blogger.com/blogger.g?blogID=2447677046341021923" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAi0AAAIuCAIAAAD8H6+LAAAgAElEQVR4nO3du4/jRqLv8fpXTrQDhztqAla6uydZXOBgNztGdzO4ELAnWniAxaae7gVDK52s4aC7PaQjA4IDp+d095yF8guFtmf7OWY6wAC6AV/14lMUS1R/PyjYElkki5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xZEQQiSPt6g6h7okmyVcU5dH2UhdOj/L2nT07kZehVJRn3C5ST6TQwBGaVs5pAdNHk0XR2JycnEyEXpS9as6h7qs0RKumosjke9jlrQXR9mjG2Of8/r39xdHk5MbZUp75BCAUdpKDplBVEzIutqig96KreRQWYMv8hMiKWtv8nmTkxvb4jcnEyE5uiCHADxHL9+s77bh4lCIwwvpyeTkOnucPrw+meRTe1edQ51WeX0yKXbJNvn6ZJLsT7GPxWNzacv65AVbI4cAjNLLN+vbLTk/zL/rH57LUyevr6Uqk9fb2Hh1DnVc6fmhsi/Xr1+fSzt0/XqSPpL30TJbXp0xRZ3QBjkEYJS2mENObSWHbpM0yQfhksjIJk0ODycVOXQrJ3MaZvLaDs/JIQDP0cs363/to23l0A4jhwCM0ss36/f7qDqHXKfkVpBDAEbpeeaQ69ZtBTkEYJRevln/so/IoYbIIQCOPc8cct26rSCHAIzSyzfrfS1lu0wOycghABhatL86HA1yCADgEjkEAHCJHAIAuEQOAQBcIocAAC6RQwAAl8ghAIBL5BAAwCVyCADgEjkEAHCJHAIAuEQOAQBcap1DFAqFQqH0W1rkEIVCoVAoAxRyiEKhUCguCzlEoVAoFJeFHKJQKBSKy0IOUSgUCsVlIYcoFAqF4rKkOUShUCgUiqvy/wHYEoL+RQnR9QAAAABJRU5ErkJggg==" /><br />
<br />
Please remember to "Save filter to custom view" if you want quick access to it later.</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-26599551021344392542014-05-21T20:47:00.001+02:002014-05-21T20:49:41.883+02:00Buggy Windows 8 network charms - works from command-line!<div dir="ltr" style="text-align: left;" trbidi="on">
I have struggled with two network related problems on my older laptop for some time after upgrading it to Windows 8 and later 8.1. Both problems occur when I try to go to the Settings charm (Winkey+I), in the submenu under the networking icon (upper left of the icons). Both however seem to have one very simple workaround: Using the command-line equivalents.<br />
<br />
<b>Problem 1 - Connect to WLAN: </b>Sometimes, registering to a known WLAN does not work, or the connection is randomly or immediately lost after being registered. Sometimes, the desired WLAN network is not even visible in the networks list, although any other WLAN capable device (e.g. a phone etc.) can find the WLAN in question.<br />
<br />
<b>Solution 1 - Connect to WLAN from the command line:</b> For some reason, connection works great when doing it from the command line. To see all avaiable WLANS:<br />
<br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">netsh wlan show networks </span></span><br />
<br />
Issue the following command to connect to one of them:<br />
<br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">netsh wlan connect name=<i>WlanName</i></span></span><br />
<br />
-where WlanName is the name of the WLAN. Observe that this name is case sensitive!<br />
<br />
Those are the basics - explore other possibilities by using the help system (a ? sign will give you available commands).<br />
<br />
<b>Possible mitigating factor to this problem: </b>I am using an Intel 4965AGN network card, which some suggest is not supported under Windows 8. However, the <a href="http://www.microsoft.com/en-us/windows/compatibility/CompatCenter/ProductDetailsViewer?Type=Hardware&Name=Intel+4965AGN+Wireless+Network+Adapter&ModelOrVersion=&Vendor=Intel&Locale=1033%2C2057%2C3081%2C4105%2C16393&LastSearchTerm=4965AGN&BreadcrumbPath=4965AGN&TempOsid=Windows+8.1" target="_blank">Windows Compatibility Center</a> suggests otherwise - at least for Windows 8 (while 8.1 is marked with "no info"). I have had bluescreen problems with both the Windows 8 native driver and the <a href="http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22Intel+Wireless+WiFi+Link+4965AGN%22" target="_blank">latest Intel driver</a>, but the latest Dell driver works for me (version 12.4.3.9 dated May 28, 2009) on my Latitude D830 without bluescreen problems.<br />
<br />
<b>Problem 2 - Connect to RAS (PPTP) connection</b>: When trying to connect to one of my RAS connections (VPN to another location), sometimes I loose the WLAN connectivity even by clicking the desired RAS connection on the Settings-networking charm, without even clicking its Connect button that will now be displayed. Needless to say, when my WLAN is gone, so are my chances to connect to the RAS connection. I am stuck.<br />
<br />
<b>Solution 2 - Connect to RAS from the command line: </b>Again, performing the same task from the command line succeeds without any hassle. Here's the command:<br />
<br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">rasdial </span><span style="font-family: "Courier New",Courier,monospace;"><i>"RAS connection name" username password</i></span></span><br />
<br />
<b>More information about problem</b> <b>2:</b> What happens when clicking the RAS link, seems to be that the WLAN Extensibility Module crashes and logs an event 10003 and an event 10000, "WLAN Extensibility Module has failed to start" with a reference to the file IWMSSvc.dll and an error code 1726 </div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-88086954589076554122014-05-16T20:48:00.000+02:002014-05-16T20:48:36.430+02:00Wrong search order in Windows 8.1 Start menu<div dir="ltr" style="text-align: left;" trbidi="on">
I have been using Windows 8.1 now for a little more than half a year, and I can safely say that compared to Windows 7, I still can not come up with one single thing I like better. Take search from within the (horrible) start menu. In Win7, bring up the start menu and type some text related to the document you want to open - voilla, chances are that the document you wanted is among the top 5 hits displayed.<br />
<br />
<b>Problem:</b> In Win8 (updated to version 8.1 by now), you can also search from the start menu - by default searching "Everywhere". You only get the upper two documents it finds, which are mostly files you have not touched for years. Press the Win-F key instead to search through your files, and you end up with a screenful of ancient files you haven't used since Jesus walked the streets of Jerusalem.<br />
<br />
<b>Workaround:</b> My best workaround is to use following key combo instead: <b>Win-E, then Ctrl-E </b>(I only use the mouse when I am forced to, luckily at least keyboard control works pretty well in Win8) Now you can type your search term and instantly get proper search results from inside good old Windows Explorer. The Win-E key combo brings up Explorer in My Computer (if you haven't changed the default), then Ctrl-E places you in the search field in the upper right corner. It is uglier than the Win-F charm, but much more charming.<br />
<br />
So why, Microsoft, can't you let Explorer serve these results even to the Win-F file search mechanism? Man do I miss Win7.</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-90750335289638681612013-12-20T10:14:00.000+01:002013-12-22T12:44:15.004+01:00Visual Studio Solution dependent code sections<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
If you have a Visual Studio project that is part of several solution files (which in most cases is a bad practice - if conditions allow it, rather build a DLL that could be referenced from any solution), you may want to implement solution specific code fragments. In my case, I had a COM interface class that needed to specify a unique CLSID in its <a href="http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k%28IMPLEMENT_OLECREATE%29;k%28DevLang-%22C%2B%2B%22%29;k%28TargetOS-WINDOWS%29&rd=true" target="_blank">IMPLEMENT_OLECREATE</a> call.<br />
<br />
The solution: Create a solution specific preprocessor directive. This has been tested in C++ on VS2010:<br />
<ol style="text-align: left;">
<li>Define the parameter <b><span style="color: cyan;">SOLUTION_$(SolutionName)</span> </b>in <b>Project properties - Configuration Properties - C/C++ - Preprocessor - Preprocessor definitions. </b>Note that the term <i>$(SolutionName)</i> should be written exactly as you see it here - these are MsBuild style variables.</li>
<li>Now in your code, add <span style="color: cyan;">#ifdef</span> sections checking for the solution name.</li>
<li>If you need to render an error in case none of the solution names defined are found, include a <span style="color: cyan;">#define SOLUTION_FOUND</span> inside each of your sections and check that it is defined afterwards. If not generate an <span style="color: cyan;">#error</span> to stop the compiler.</li>
</ol>
</div>
The code will look something like:<br />
<div>
<br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">#undef SOLUTION_FOUND </span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">#ifdef SOLUTION_MySolutionName1</span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;"> (some code specific to that solution) </span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;"> #define SOLUTION_FOUND </span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">#endif</span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">#ifdef SOLUTION_MySolutionName2</span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;"> (some code specific to that solution) </span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;"> #define SOLUTION_FOUND</span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">#endif</span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">#ifndef SOLUTION_FOUND</span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;"> #error None of the defined solutions were found. Build can not continue.</span></span><br />
<span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">#endif</span></span></div>
</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-36272551260216287742013-12-11T20:09:00.000+01:002013-12-22T12:51:34.164+01:00Source files missing from project, but still there (Linking error)<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Situation:</b> Some .cpp and .h files shared between several Visual Studio Project files in different VS solutions (I know - bad practice, but it was not my idea and I could not change it) were being relocated to a separate directory beside the solution dir of the project I was working on. By unloading the project in VS, then manually editing the .vcxproj file, it was a simple task to search and replace string entries like<i>:</i><br />
<br />
<i><span style="font-family: "Courier New",Courier,monospace;"> <span style="color: cyan;"> ClCompile Include="folder\</span></span></i><br />
with<br />
<span style="font-family: "Courier New",Courier,monospace;"><i> <span style="color: cyan;"><i>ClCompile Include="</i>($SolutionDir)..\folder </span></i></span><br />
<br />
<span style="font-family: Times,"Times New Roman",serif;">Since the job involved much more reorganizing, and there was a lot of other files in the project as well, it was not unexpected that several referencing and linker errors occurred along the way. </span><br />
<br />
<span style="font-family: Times,"Times New Roman",serif;"><b>Symptom:</b> In the end I was faced with a linker problem I was not able to get rid of. LNK2001 and LNK2019 errors were filling my screen. I diffed the old and the new .vcxproj files to search for what I had lost along the way, but found no apparent problem at first. Not until I closely examined what reference the linker could not find, making sure that both a header entry and an implementation body (</span><span style="font-family: Times,"Times New Roman",serif;"><span style="font-family: Times,"Times New Roman",serif;">usually in </span>a corresponding .cpp file) were actually present in the project. Somehow some of the files were not!</span><br />
<br />
<span style="font-family: Times,"Times New Roman",serif;"><b>Problem:</b> It turns out that for file references, the .vcxproj file simply ignores files <strike>written with MsBuild variable references</strike> like my<span style="font-family: "Courier New",Courier,monospace;"> </span><span style="color: blue;"><span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;">($SolutionDir)..\folder\file.cpp</span></span> </span>-They show up when you view the .vcxproj file in a text editor, but not from within Solution Explorer. <b>Update: </b>Seems like the MsBuild variable actually sometimes works (see the strikeout above), but not in the combination with double dots for jumping one step up in the folder hierarchy. Needs verification what conditions are for this problem to occur.</span><br />
<br />
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b>Solution: </b>Once I had replaced the <span style="color: cyan;"><span style="font-family: "Courier New",Courier,monospace;"><i>($SolutionDir)..\folder</i></span></span> entries in the .vcxproj file with the more boring and less flexible <span style="color: cyan;"><i><span style="font-family: "Courier New",Courier,monospace;">..\..\folder</span></i></span>, everything was fine.</div>
</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-8018100467948997552013-11-25T18:51:00.004+01:002013-11-25T18:53:01.087+01:00Perforce: Translation of file content failed<div dir="ltr" style="text-align: left;" trbidi="on">
This error practically introduced me to the Perforce version control system, and had no obvious explanation:<br />
<br />
<b>Scenario: </b>I wanted to create a view of an existing file hierarchy containing many files on my local hard drive. As a part of the procedure, I executed the "Get latest revision". All but two files were transferred from the Perforce server, but two of the files logged the error "Translation of file content failed near line X". The file was missing when I looked at the physical location I was populating.<br />
<br />
As many entries on the web mentions, encoding was the problem, but there are two places in P4V to set encoding - under Tools-Administration under Connections (which did not cut it for me), and: <br />
<br />
<b>Solution:</b> Go to Connection-Choose Character Encoding and select the correct encoding.<br />
<br />
I found the correct encoding by checking with a colleague who had it working. Otherwise: Trial and error will get you there (slowly).</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com1tag:blogger.com,1999:blog-2447677046341021923.post-79502051021252949792013-10-31T13:38:00.001+01:002013-10-31T13:38:13.186+01:00Backslash i Cord på norsk Mac<div dir="ltr" style="text-align: left;" trbidi="on">
(How to get a backslash in Cord on a Mac with a norwegian keyboard layout - in Norwegian)<br />
<br />
<b>Tasten til høyre for ?-tasten </b>gir deg backslash på norsk Mac.<br />
<br />
Den kan iflg. mange nettfora nås via Alt-Shift-/ eller Alt-Shift-7, men dette fungerer ikke i fjernstyringsverktøyet Cord. I Cord er ofte backslash nødvendig for å få logget på et domene når man fjernstyrer en Windows-PC (man må typisk skrive domenenavn\brukernavn)</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-39375715983541434672013-10-06T11:29:00.000+02:002013-10-06T11:29:09.352+02:00Converting physical computer to virtual: Bluescreen<div dir="ltr" style="text-align: left;" trbidi="on">
I have finally taken the leap and upgraded my trusty but painstakingly slow Windows Vista computer to Windows 8. I wanted to do a fresh install, but it is always nice to have a path back to using the old OS in case something goes wrong with the new installation. What better choice than doing a conversion of the physical Vista computer to a virtual one (a P2V)!<br />
<br />
The free <a href="https://my.vmware.com/group/vmware/evalcenter?p=converter" target="_blank">VMware vCenter Converter</a> specializes in just that - it is an easy download and run application (the documentation is also good, but you won't really need it).<br />
<br />
<b>Caveat: </b>Your only option is to do a full copy of your disk volume, which means you really need an extra disk drive of some kind (I used an external one) with at least the same amount of free space as the total capacity of your physical disk with all its partitions. It is fast however - a couple of hours was all it took to clone my 160 Gb drive - fully acceptable.<br />
<br />
I went with all recommended/standard options and chose a <i>VMware Workstation or other VMware virtual machine </i>as the destination type, since I wanted VMware Player to handle the computer from inside my new Windows 8 after the installation.<br />
<br />
<b>Problem:</b> The first conversion failed at around 96% with an error message stating that it could not update drive letters. However, the virtual disk and the .vmx file was already there, so I went ahead and tried to boot it from VMWare Player, making sure the network interfaces on the toolbar were all turned off to avoid the physical computer and the virtual one to find each other. Of course, the VM would not boot, but went into the bluescreen of death (BSOD) after the initial progress bars.<br />
<br />
<b>Cause/Solution:</b> One of the recommended settings was to use SCSI as the virtual disk controller. On a second conversion attempt, I only changed this to IDE (corresponding to the physical controller in my computer). Another couple of hours later, my VM was ready and booted fine.</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-1156568320146721132013-09-11T16:04:00.000+02:002013-09-11T17:11:27.675+02:00TFS 2012 authenticates trusted domain users, but not groups<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="post-text" itemprop="description">
I am configuring my first Team Foundation Server (TFS) <span class="_US_to_Metric_value" style="color: inherit; cursor: pointer; font-size: inherit; font-weight: inherit;" title="2012 in = 5110.48 cm">2012 in</span> a domain we can call <i>TFSdomain</i>, that has a one-way trust to another domain where most users will access TFS from, let's call it the <i>UserDomain</i>. I tried to add <i>UserDomain\Domain Admins</i> to the <i>Team Foundation Administrators</i> group to let one of the group's users, <i>UserDomain\Administrator</i> have access to the TFS Web Administration. It did not allow access.<br />
<br />
The <i>UserDomain\Domain Admins</i> is also a member of the local <i>BUILTIN\Administrators</i> which is a member of the <i>Team Foundation Administrators</i> group. This gives access to <i>TFSdomain\Administrator</i>, but not to <i>UserDomain\Administrator</i>.<br />
<br />
I then added <i>UserDomain\Administrator</i> directly to the <i>Team Foundation Administrators</i> and tried again. Now I was allowed access as expected.
<br />
<br />
I then noticed the icon of the <i>UserDomain\Administrator</i> entry in the <i>Team Foundation Administrators</i>
group. It shows the icon for a single user - not for a group. It is
also not possible to see group members from the TFS Administration Console.<br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.blogger.com/blogger.g?blogID=2447677046341021923" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img alt="" border="0" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwIAAAIpCAIAAACewhiuAAAgAElEQVR4nO2dv4sjR+K36w9x8BqcvPAGX8EG0+BkBxx44MA4excuWJqJhg32xC68HJeJCczgQHRgzsMGB7PBgBwcSMGZ2WRhEsNssDAXDNYGG0xwGGMmEOYM/Qb9o353t6RuqaV6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Luv+VYGINiiIiIGJblWFiTQbHyO6mJQYiIiLif+mJQ+ZAyYhAiIiLuqvZYWJNBMWIQIiIi7rxyLOzj/eSy6aAYMQgRERH3XGIQIiIiBuqKMejkzfyv/7xBRERE3F1P3sxX7A1CRERE3D+JQYiIiBioxCBEREQMVGIQIiIiBioxCBEREQOVGISIiIiBasYgRERExHCUMSiFnaJ8TorqxT8u7mE3uf7b/xZCPPnHtusB0IwnT+Prf89tt/4tebgth8+HZaRoyevR59HobfmziF9fxCK++DCfv47F8YVr5Yv4+GL+4SL+fHT9Oo5Or5vvjhi0YxCD9ouLJ0KI//PX623XA6AhxCA07DgGzedvR9HnUZTFoLejSCgvfZjPP8yvT6P4OI5fz+cf5hfHUVRu+3YUfT66dv6g+P8BnPHhVVQyz8cAAAAASUVORK5CYII=" style="cursor: move;" /></a></div>
<br />
<div style="text-align: left;">
Have I discovered a bug in TFS 2012, or is there some other reason for this behavior?</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
I have asked this question over at <a href="http://stackoverflow.com/questions/18743213/tfs-2012-authenticates-trusted-domain-users-but-not-groups-why" target="_blank">StackOverflow - here's a link to whatever answers or comments I receive</a>.</div>
<br /></div>
</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com1tag:blogger.com,1999:blog-2447677046341021923.post-45759573068027034252013-05-25T19:14:00.003+02:002013-05-27T11:31:35.403+02:00Language neutral Pin shortcut to Start Menu using C#<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Problem:</b> I needed a program that would automatically pin an existing shortcut on the desktop to the start menu, regardless what localization the Windows user was using. I was using Windows Server 2008 R2 with a couple of alternate languages to English installed for testing. The program was written in C#. I hit the wall a copule of times while trying to make c# code from an earlier implementation written in VB.NET - this is a summary of what I got to work in the end:<br />
<span style="color: #38761d;"></span><span style="font-size: x-small;"><span style="font-family: "Courier New",Courier,monospace;"> </span></span><span style="font-size: x-small;"><span style="font-family: "Courier New",Courier,monospace;"><span style="color: blue;">Type shellAppType = Type.GetTypeFromProgID("Shell.Application");<br />Object oShell = Activator.CreateInstance(shellAppType);<br />Shell32.Folder oFolder = (Shell32.Folder)shellAppType.InvokeMember("NameSpace", System.Reflection.BindingFlags.InvokeMethod, null, oShell, new object[] { 0 }); <span style="color: #38761d;">//25 = common desktop, 0 is local desktop</span></span> </span></span><br />
<br />
<span style="color: blue;"><span style="font-size: x-small;"><span style="font-family: "Courier New",Courier,monospace;">if (System.IO.File.Exists(ShortcutTarget) & (oFolder != null))<br />{<br /> Shell32.FolderItem oFolderItem = oFolder.ParseName("somefile.lnk");<br /> Shell32.ShellLinkObject oShellLink = (Shell32.ShellLinkObject)oFolderItem.GetLink;<br /> if (oShellLink != null)<br /> {<br /> <span style="color: #38761d;">// Find localized shell32 verb used to pin shortcut to the start menu (so that it works in any language)</span><br /> StringBuilder szPinToStartLocalized = new StringBuilder(MAX_PATH);<br /> IntPtr hShell32 = LoadLibrary("SHELL32");<br /> LoadString(hShell32, 5381, szPinToStartLocalized, MAX_PATH);<span style="color: #38761d;"> // 5381 is the DLL index for "Pin to start menu", ref. <a href="http://www.win7dll.info/shell32_dll.html">http://www.win7dll.info/shell32_dll.html</a></span><br /> string localizedVerb = szPinToStartLocalized.ToString();<br /><br /> foreach (Shell32.FolderItemVerb verb in oFolderItem.Verbs())<br /> {<br /> if (verb.Name == localizedVerb)<br /> {<br /> verb.DoIt();<br /> break;<br /> }<br /> }<br /> }<br />}</span></span></span><br />
<br />
You need to reference Shell32 - i.e. Microsoft Shell Controls and Automation on the COM tab of your "Add reference" dialog in VS2010. Also make sure you copy the shell32.interop.dll along with your application when you move the application out of your bin folder.<br />
<br />
The following problems were encountered and solved on the way:<br />
<br />
<b>BadImageFormatException</b> when entering the method containing this code. The code worked well on a Windows Vista computer, but crashed when running on Server 2008 R2. I assume this happened because of the fact that Server 2008 R2 is a 64 bit OS, and this did not work well with using the unmanaged Shell32.<br />
<b>Solution:</b> Change the target CPU of your application to x86. If you use VS2010 Express, <a href="http://stackoverflow.com/questions/4104228/change-target-cpu-settings-in-visual-studio-2010-express" target="_blank">this tip on StackOverflow</a> may be helpful to you - Make sure to read all the answers if you are stuck.<br />
<br />
<b>InvokeVerb</b> did not work. Before ending up using the line <i>verb.DoIt()</i>, I tried using <i>oFolderItem.InvokeVerb(verb.Name)</i>, which used to work in an earlier VB.NET implementation of the same code. I have no explanation to why this did not work, but it did not. A conspiracy theory is that Nike paid them off to <i>just do it...</i><br />
<br />
By the way, <a href="http://nerdynotes.blogspot.no/2008/06/vbnet-shell32-code-compiled-on-vista.html" target="_blank">this earlier post</a> mentions a problem I encountered trying to do the same in VB.NET some time ago. It probably applies here too, which is why the top three lines of the code looks like they do.</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-27611533729112939572013-02-23T14:31:00.002+01:002013-02-23T14:33:10.231+01:00How MSBuild could make a file inparseable<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="tr_bq">
<h2 style="text-align: left;">
</h2>
<div style="text-align: left;">
<b>Problem:</b> A text file that was being parsed from an assembly being part of a developing system. In the developer environment, this worked great. After having deployed the text file and the necessary assemblies to a different location using MSBuild, where MSBuild also replaced a couple of strings inside the text file, parsing would no longer work.</div>
<ul style="text-align: left;">
<li>Looking at the file in a text editor (i use <a href="http://notepad-plus-plus.org/" target="_blank">Notepad++</a>) confirmed that the edited version looked fine.</li>
<li>Editing the file in the developer environment manually (not running MSBuild on it) worked fine - the file was parseable afterwards. </li>
</ul>
</div>
Obviously, MSBuild made the file inparseable So how could MSBuild make the text file inparseable? The command touching the file was<br />
<blockquote class="tr_bq">
<pre class="lang-xml prettyprint prettyprinted"><span style="color: blue;"><code><span class="tag"><MSBuild.ExtensionPack.FileSystem.File</span><span class="pln"> </span>
<span class="atn"> TaskAction</span><span class="pun">=</span><span class="atv">"Replace"</span><span class="atn">
RegExPattern</span><span class="pun">=</span><span class="atv">"Something" </span></code></span><span style="color: blue;"><code><span class="atv"><span style="color: blue;"><code><span class="atn">Replacement</span><span class="pun">=</span></code></span>"SomethingElse"</span><span class="pln">
</span><span class="atn"> Files</span><span class="pun">=</span><span class="atv">"%(filename)"</span><span class="tag">/></span></code></span></pre>
</blockquote>
Only when tracing the code parsing the file it became clear to me that the file now contained some extra characters at the beginning of the file. Then it occurred to me:<br />
<br />
<b>Solution:</b> MSBuild changed the file <i>encoding</i>. To make sure MSBuild used the right encoding, I had to add one more key/value pair to the MSBuild tag mentioned above:<br />
<blockquote class="tr_bq">
<pre class="lang-xml prettyprint prettyprinted"><code><span style="color: blue;"><span class="atn">TextEncoding</span><span class="pun">=</span><span class="atv">"Windows-1252"</span></span></code></pre>
</blockquote>
I found this by inspecting the file encoding on the source and destination text files. My source file was reported as ANSI, whileas my destination file was reported as UTF-8. It was however not as simple as putting "ANSI" as the TextEncoding, as described in <a href="http://stackoverflow.com/questions/700187/unicode-utf-ascii-ansi-format-differences" target="_blank">this excellent StackOverflow article</a>, which also lead me on the right path to "Windows-1252".<br />
<br />
In my opinion, MSBuild should have retained the original encoding on the files it touches instead of defaulting it into something unwanted. But then again, that's wat keeps bread on my table... Thanks, MS...</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-31433726301768497352012-11-12T09:00:00.001+01:002012-12-27T21:24:17.950+01:00Failing Office automation when run from a service<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Scenario:</b> I needed to create a small script to automate the conversion of a Word document into PDF. There's plenty of help out there to script this by using the Microsoft.Office.Interop namespace, for example <a href="http://powershellscripts.blogspot.no/2007/02/convert-or-export-word-documents-to-pdf.html" target="_blank">this simple one</a>. I tried both writing a Powershell script and a compiled C# .exe with the same result: When running from the desktop, everything works fine, whileas running from a scheduled task or from <a href="http://www.cruisecontrolnet.org/" target="_blank">CruiseControl</a> running as a system service failed. If CruiseControl was running from its debug console window however, everything ran fine.<br />
<br />
<b>Problem:</b> It seemed clear that the Office libraries required a logged on session to run in, as also <a href="http://support.microsoft.com/?id=257757" target="_blank">Microsoft confirms here</a> in their Q257757 article.<br />
<br />
<b>Solution/workaround:</b> I came across <a href="http://social.msdn.microsoft.com/Forums/en/innovateonoffice/thread/b81a3c4e-62db-488b-af06-44421818ef91" target="_blank"> this hack</a> - reposting it here for my own easy access to the knowledge:<br />
<ol>
<li>Browse to or create this folder: <i>C:\Windows\SysWOW64\config\systemprofile\Desktop</i> on 64 bits Win7/Win2008 - for 32-bits Windows, substitute <i>SysWOW64</i> part of the path with <i>System32</i>. You might have to change some permissions to get there and you of course need to have administrative rights.</li>
<li>Make sure the user credentials running the service or scheduled task you want to use has full control access permissions to the folder.</li>
</ol>
I have no idea how this trick can make it all work, but it does - at least in my case. Since Microsoft does not recommend or describe it however - use solely at your own risk. Not suitable for rocket launchers, weapon systems etc..</div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-82142049129103844662012-06-08T13:45:00.000+02:002012-06-08T13:47:55.887+02:00"Could not find a part of the path" from MSBuild/CruiseControl.NET<div dir="ltr" style="text-align: left;" trbidi="on">
This case turned out to be a no-brainer, but for my own (and others who may need it) later reference, here it is:<br />
<strong>Scenario:</strong> I had set up a test environment for testing <a href="http://msdn.microsoft.com/en-us/library/dd393574.aspx" target="_blank">MSBuild</a> targets run from <a href="http://www.cruisecontrolnet.org/" target="_blank">CruiseControl.NET</a>. The target I wanted to run was supposed to do simple file operations like copying and unzipping files to a specific disk letter, which in my test environment happened to be a subst to a folder on my local hard drive. Windows 7 64-bits with UAC (User Account Control) on was used, running CruiseControl.NET elevated to give it necessary privileges.<br />
<strong>Problem:</strong> When running the MSBuild target itself, things worked like a dream. However, when running the target from CruiseControl.NET, it always grinded to a halt at the first attempt to copy/unzip data to my disk<br />
<strong>Cause:</strong> This is the no-brainer: Since CruiseControl.NET ran with elevated privileges (i.e. started with "run as an administrator"), it did not see the substed drive I had set up from a non-elevated cmd window.<br />
<strong>Solution:</strong> Simply start a cmd window elevated (run as administrator) and do the same subst from there, and voilla! - it works.</div>Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-40156755810672726422012-03-04T11:11:00.001+01:002012-03-04T11:27:45.602+01:00SyncBack hang/freeze on Windows 7 - SMB version problem<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<b>Problem:</b> <a href="http://www.2brightsparks.com/download-syncback.html" target="_blank">SyncBack Free</a> is a brilliant free tool for synchronizing two folders' contents fast and accurate. I had been using a Windows XP computer with two network cards standing as a bridge between two networks to sync folders between two computers residing on each side of the bridge. Old of age the XP computer were looking forward to its retirement as a young Win7 computer were set up to take over its place. The same SyncBack running the same SyncBack profile on the Win7 computer completely hung the SyncBack process within seconds after syncing was attempted. Only a reboot would kill the process - not even Task Manager managed to take it down.<br />
<br />
<b>Factors</b> <b>in the picture:</b><br />
<ul style="text-align: left;">
<li>The two remote computers were running Win7 and Server 2008 R2.</li>
<li>Syncing between a local folder on the Win7 computer and one of the remote computers would work. Just not syncing between the two remote computers.</li>
<li>It made no difference whether Windows Shell (on the Copy/Delete tab) was used to sync or not.</li>
<li>Copying files between the remote computers from Windows explorer works just fine. </li>
</ul>
</div>
<b>Problem reason:</b> The reason proved to be SMB version. WinXP uses SMB 1.0, whileas Win7 uses SMB 2.0. For some reason, SyncBack does not manage to copy files between two remote computers as long as the computer is set up to use SMB 2.0.<br />
<br />
<b>Solution: </b>Disable SMB v. 2.0, forcing the Win7 computer to revert to using SMB 1.0. <a href="http://www.petri.co.il/how-to-disable-smb-2-on-windows-vista-or-server-2008.htm" target="_blank">This excellent article on Petri</a> explains how - or here in short: From an administrative command line window run the following commands and then reboot to activate (Observe that "bowser" is actually correctly spelled - or rather, it is spelled the way that the computer understands):<br />
<pre style="color: blue; text-align: left;">sc config lanmanworkstation depend= bowser/mrxsmb10/nsi
sc config mrxsmb20 start= disabled</pre>
If you need to revert to SMB 2.0, use the following commands:<br />
<pre style="color: blue;">sc config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
sc config mrxsmb20 start= auto </pre>
I have not put any effort into researching whether security is an issue with these settings or whether other functionality is negatively affected, for me it gave me what I needed, so I am happy.</div>Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-1474564586887029082011-12-09T09:41:00.001+01:002011-12-09T09:47:19.975+01:00Administrator cannot change, delete or take ownership of file<div dir="ltr" style="text-align: left;" trbidi="on">
<strong>Problem: </strong>It is well known that if a file is locked in Windows, an administrator can take control of the file by taking ownership of it, give himself permissions to write/delete it and then perform pretty much anything he needs to do with the file. Sometimes, however, you just receive an error message when you try to take ownership, even though you are an administrator, and even though the command prompt or Windows Explorer you are working from has been started by right-click - "Run as administrator"<br />
<br />
<strong>Solution:</strong> Open Computer Management and open shared folders - open files. If the file in question is being held by someone that has opened the file over a fileshare, you first have to terminate their connection to the file before you can manipulate it. Of course, you should first make sure you are not disturbing any work they are doing on the file.</div>Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-48132431597040329252011-10-04T14:07:00.007+02:002012-03-04T10:34:14.346+01:00Cannot connect to any computer except DC<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Problem: </b>The only network traffic (ping etc.) that could pass in a Win7/Server 2008 R2 domain was from each client computer to the domain controller. No client computer could contact each other. Even the domain controller could not initiate contact towards a client computer.<br />
<br />
<b>Reason: </b>In the Server 2008 R2 active directory domain organizational unit (OU), a Group Policy Object (GPO) had been created to disable the local client's firewall and allow any network traffic (which was ok from a security point of view, since the network was completely disconnected from anything outside). When applied, the firewall was indeed not started, but somehow the idea backfired by blocking all but those client computer connections made to the DC.<br />
<br />
<b>Solution:</b> The Firewall service was reenabled in the GPO:<br />
<i>Policies-Windows Settings-Security Settings-System Services-Windows Firewall-Startup type=</i><i>Automatic</i><br />
Instead the Firewall setting was set to off for the domain profile (which is the active profile for computers within a domain):<br />
<i>Policies-Windows Settings-Security Settings-Windows Firewall with Advanced Security-Domain Profile Settings-Firewall state = off</i><br />
<i></i><br />
It seems absolutely illogical to me that switching off the firewall service would block most network traffic. Maybe some special case in my domain caused it - nevertheless, there was no doubt that my changes were the solution to my problem - even proven by the fact that reversing them would lead to reintroducing the problem.</div>Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-14561491720473835182011-09-10T19:47:00.004+02:002011-09-10T19:58:07.489+02:00PHP scripts stopped working when moved<span style="font-weight: bold;">Problem:</span> After having moved some PHP scripts from one web server to another, they stopped working , or only worked partially. One of the webpages showed all the HTML and the upper part of PHP generated code, but strangely after a certain point the rest of the PHP code had just been ignored.<br /><br /><span style="font-weight: bold;">Solution:</span> I loaded one of the script files in the open source <a href="http://devphp.sourceforge.net/">DevPHP</a> editor and chose Format on the menu. The Mac (CR) option was checked. I changed it to Windows (CRLF), uploaded the file again and reran it. Voilla, it worked!<br /><br />Obviously, some PHP parsers may be more picky than others with how they read line breaks.Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-56506738573434979912011-09-05T14:28:00.005+02:002011-09-05T14:45:45.013+02:00ODBC 32 vs. 64 bit<strong>Scenario:</strong> I needed to connect 32 bit software running on a 64 bit Windows 7 OS to an SQL server via ODBC. Using a User DSN, everything was fine - setting up a System DSN instead, the application could no longer find it or and connect to the database. I preferred setting up a System DSN, so that any user logged on to the computer would be able to run the software without further hassle in setting up the needed ODBC connection.
<br /><strong>Cause:</strong> An ODBC <em>System DSN</em> in 32 and 64 bit versions are two separate matters, hence a 32-bit application will not see a 64 bit ODBC System DSN and vice versa. <em>User DSNs</em> are however visible on both sides. Confusing.
<br /><strong>Gotcha:</strong> Both the 64 and 32 bit version of the ODBC tool's is named <em><strong>odbcad32.exe</strong>. </em>Hence, the Win7 standard method of writing this in the search field at the bottom of the start menu would always give you the 64 bit version. You have to run <strong><em>%windir%\syswow64\odbcad32.exe </em></strong>(for instance via the run dialog, keyboard shortcut winkey-r) to start the 32 bit ODBC application.
<br /><strong>Reference: </strong>Microsoft's Knowledge Base article <a href="http://support.microsoft.com/kb/942976">942976</a>
<br />Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com3tag:blogger.com,1999:blog-2447677046341021923.post-72817088193346294702011-08-16T15:46:00.006+02:002011-09-10T19:42:13.238+02:00Cannot logon to newly installed SQL Server<strong>Problem:</strong> After a fresh install of SQL Server 2008 R2 on a Windows 7 computer, where Windows user group BUILTIN\Administrators were given administrative rights, I was not able to log on to the database from Microsoft SQL Server Management Studio while logged on to Windows as a user who was a member of the Administrators group and thus should have been granted access. The error received was: <em>Login failed for user 'COMPUTERNAME\user'. (Microsoft SQL Server, Error: 18456)</em>.<br /><br /><strong>Solution:</strong> <strong>Turn off User Account Control</strong>, or if you prefer to leave it on, make sure you <strong>start SQL Server Management Studio as an administrator</strong> (right-click the icon and select Run as administrator).Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-90392533235207073482011-05-24T07:45:00.004+02:002011-05-24T07:56:16.615+02:00Edit and display local characters in .bat scripts<span style="font-weight: bold;">Problem:</span> Sometimes I need to write a batch script echoing instructions in my native language Norwegian, including its special characters æ, ø and å. The only thing is, if you edit the .bat or .cmd file in Notepad, it will translate into garbled characters because of an character encoding issue.<br /><br /><span style="font-weight: bold;">Solution:</span> With my favorite plain text editor, the free <a href="http://notepad-plus-plus.org/">Notepad++</a>, I have the possibility of selecting encoding for the file I am editing. Menu item <span style=" color: rgb(51, 102, 255);font-family:courier new;" >Encoding-Character sets-Western European-OEM 850</span> works well for the Norwegian special characters, and possibly others.Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-23507901654512659242011-03-23T20:54:00.002+01:002011-03-23T21:14:12.492+01:00OpenVPN service dependency service failed to start (Error 1068)<span style="font-weight: bold;">Problem:<span style="font-weight: bold;"> </span></span>I wanted to start OpenVPN as a service so that I could use a Windows Server 2003 as a router for an OpenVPN connection. The service would not start even though I set it to start automatically from the Services app in Administrative Tools, claiming error 1068: The dependency service or group failed to start.<br /><br />There's a lot of people complaining about this error out there, but I could not find a better answer around than reinstalling the OpenVPN software. I am not a big fan of reinstalling without getting to the bottom of the problem - it means you haven't learned anything useful for the next time you encounter the problem.<br /><br /><span style="font-weight: bold;">Investigation: </span>In the process of setting up OpenVPN, I had installed a previous version of it some time ago, and then reinstalled at a later time to get the latest version. By examining the system event log, I discovered that together with an error message (event 7001) for an unsuccessful start of the OpenVPN service, there was also an event ID 7000 stating that "The TAP-Win32 Adapter V8 service failed to start". Funny, since my TAP virtual adapter that came with the (latest) OpenVPN installation was marked V9, not v8. That nailed it:<br /><br /><span style="font-weight: bold;">Solution: </span>The OpenVPN service referenced an older version of the TAP virtual adapter than the one now installed. I changed the following registry value:<br /><br /><span style="font-family: courier new; color: rgb(51, 102, 255);">HKLM\System\CurrentControlSet\Services\OpenVPNService\DependOnService</span><br /><br />...from <span style="color: rgb(51, 102, 255);">"TAP0801"</span> to <span style="color: rgb(51, 102, 255);">"TAP0901"</span>, rebooted and the OpenVPN service had already connected by the time I was logged in.Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com4tag:blogger.com,1999:blog-2447677046341021923.post-70073847152175029602011-02-28T12:39:00.005+01:002013-03-21T15:59:54.762+01:00VS2010 crashes when editing<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Problem: </b>VS2010 crashes the instance you enter a character or paste text into a source file. The message displayed (sometimes - other times VS2010 simply dies and disappears without further notice) is:<br />
<br />
<i>Visual Studio has encountered an exception. This may be caused by an extension. You can get more information by running the application together with the /log parameter on the command line, and then examining the file 'C:\Users\USERNAME\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml'</i><br />
<i></i><br />
<b>Solution: </b>The solution was found in <a href="http://connect.microsoft.com/VisualStudio/feedback/details/621215/any-editing-on-for-the-first-time-after-starting-vs2010-gives-exception-message#details">this forum</a>, which states:<br />
<i>It appears to be due to missing registry information. Adding the default value to the below registry key solved the problem.</i><br />
<i>On 32-Bit Windows: <span style="color: #3366ff; font-family: courier new;">[HKEY_CLASSES_ROOT\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]</span></i><br />
<i>On 64-Bit Windows: <span style="color: #3366ff; font-family: courier new;">[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]</span></i><br />
<i>The "(Default)" value should be one of the following:On 32-Bit Windows: <span style="color: #3366ff;">"C:\Program Files\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"</span></i><br />
<i>On 64-Bit Windows: <span style="color: #3366ff;">"C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll" </span></i></div>
Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com4tag:blogger.com,1999:blog-2447677046341021923.post-41858574252127905082011-02-22T16:08:00.005+01:002011-02-23T14:57:55.021+01:00Win7: Restore .bat default behaviourOne of those small, very annying problems: I had managed to assign .bat files to open with my favourite cleartext editor (<a href="http://notepad-plus-plus.org/">Notepad++</a> by the way), so that instead of running the bat file upon double-click, it opened in the editor. Now I wanted it reverted back to the original behavior.<br /><br />I finally came up with a working solution: Just delete this registry key with all subkeys and life as you knew it before will be smiling to you again:<br /><br /><span style="font-family:courier new;font-size:85%;color:#3333ff;">HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat</span>Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0tag:blogger.com,1999:blog-2447677046341021923.post-77980261896544676242010-09-21T16:16:00.006+02:002010-09-21T16:31:45.770+02:00Cannot set fixed IP<span style="font-weight: bold;">Funny problem: </span>Set the fixed IP of a network interface - once you have clicked OK back out of the network interface properties dialog box, it reverts to an automatically assigned IP of 169.254.x.x. Go back into properties for the network interface, and IPv4 settings still holds the static IP you set. It is not possible to ping the interface on that address, and ipconfig shows only the automatically assigned address.<br /><br />I had this problem on a Windows Server 2008 R2 today, and spent a fair amount of time troubleshooting it, including running Windows Update, several reboots etc..<br /><br /><span style="font-weight: bold;">Solution: </span>In the end, I uninstalled all network interfaces found under Network Interfaces in Device Manager (right-click Computer > Manage > Devices) and then right-clicked the device root and selected "scan for hardware changes" to automatically reinstall the network interfaces. Voilla, the IP settings now sticks and actually works!<br /><br /><span style="font-weight: bold;">Possible reason:</span> I am not sure what messed up the system, but my main suspect would be a special high performance frame grabber driver from Pleora that was installed on this server for two other network interfaces (not the one I was trying to set the IP on). This driver obviously digs deep into the device hierarchy, because it removes the network interfaces it controls out of the Network Interfaces tree entry in Device manager over to a new tree entry called "Pro/1000 grabber devices".<br /><br />Anyways, I got my solution - now it works!Vidar J.http://www.blogger.com/profile/01118978553860547681noreply@blogger.com0