tag:blogger.com,1999:blog-59945928721192199852024-02-19T20:55:18.256-05:00WeSam.Brain.Dump();If it ain't broke............ don't wait, better make sure it doesn't!WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-5994592872119219985.post-12063776527699378242015-12-16T13:15:00.001-05:002015-12-17T12:56:29.366-05:00How reliable is your backup?<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">Owning a PC for so many years, I've always followed what is considered a good practice for backing up files.</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">You'd think that Microsoft has a good reliable backup/restore tool. You'd think that after close to 20 years of a company this big being in business, a simple backup/restore tool would have your back in case of a disaster. Unfortunately, that's not the case. A backup is only guaranteed compatibility as far as that version of windows (excluding service packs/updates). A backup is not even covered by their technical support.</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<br />
<h2>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">
Windows 10 </span></h2>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">Judging by the issue error that I received below (Windows 10); it seems that a new version of windows is unable to read the catalog from an older back up (Vista) in this case. It might be a bit unrealistic to expect another tool to cover these kind of cases, but seriously, how complicated is backup/restore ? compression and copying of files?</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<br />
<div>
<blockquote class="tr_bq">
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">---------------------------</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">Windows Backup</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">---------------------------</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">Windows was not able to load the selected backup for the following reason:</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">There is a problem with the backup catalog. Restore from a different backup or create new, full backup. (0x810000E5)</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">Verify that this location is valid and try again, or consider choosing a different backup.</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">---------------------------</span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">OK </span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">---------------------------</span></blockquote>
</div>
</div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3aKB8EY1CP9gPEd7gdS29ajr4g67DC70GAUpGzy6WNt7Bcam1GCIegyQ9VOdsuuG5F9sRAeHeglOt8S4_rJxlLzTCSpNLmgDBztUrigEfwyT9vCkQDEKjgMM9Z3EktIouzAtsSjZOP-s/s1600/2015-12-16+12_13_48-Contact+Us.png" /></span><br />
<h2>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></h2>
<h2>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">
Norton System Work 360</span></h2>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">Another older backup that I had was performed using NSW 360. I am not impressed as well with the quality of recovery tool. Apparently if you have an issue during the backup process with any of the files, Norton will inform you of a successful completion even though your backup might be partially corrupt.</span></div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">Luckily, I was able to find a way around it in one of the technical support forums/chats <a href="http://community.norton.com/forums/succesful-recovery-corrupted-norton-360-backup-and-restore-set">http://community.norton.com/forums/succesful-recovery-corrupted-norton-360-backup-and-restore-set</a></span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">I have to admit, even though the backup tool it's self is described as "Unreliable and childish" by some of the community users online. The technical support staff in Symantec is courteous and helpful to their max ability; after all they are L1 customer service, they don't write these apps, they are thrown under the buss to support them with what ever tools they are given. </span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">The reason I say this is because my NSW360 subscription was expired, and I was given a free renewal for 2 days in order to restore my files. </span><br />
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">Using the <a href="https://drive.google.com/folderview?id=0B48aTzlz7BWEeXVZUTluM2FIaGs&usp=sharing" target="_blank"><b>arestore.exe</b> and <b>arestore.loc</b> files</a> (feel free to download them), - Norton Portable Restore- I was able to run a manual restore as you can see below</span><br />
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW0HCxURtq2y0T_pt2jmOFEZBwcNjFj6nkWFi8onSJUMyyvM45ZP2zFJb3ADGG1O8EtY97B6JENmlMwFwxlmUtnmq-PmfnOfEZHB7hiWJYXApkOWfGL_yRE0KPWyQddsnKxg6S7YOK5J8/s1600/2015-12-17+10_38_24-Portable+Restore.png" imageanchor="1"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><img border="0" height="448" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW0HCxURtq2y0T_pt2jmOFEZBwcNjFj6nkWFi8onSJUMyyvM45ZP2zFJb3ADGG1O8EtY97B6JENmlMwFwxlmUtnmq-PmfnOfEZHB7hiWJYXApkOWfGL_yRE0KPWyQddsnKxg6S7YOK5J8/s640/2015-12-17+10_38_24-Portable+Restore.png" width="640" /></span></a><div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com0Hoboken, NJ 07030, USA40.744052 -74.02707450000002640.6959315 -74.107755500000025 40.792172500000007 -73.946393500000028tag:blogger.com,1999:blog-5994592872119219985.post-64449685997760502952013-05-13T21:16:00.000-04:002013-05-19T23:06:20.250-04:00How to change the account which SSRS Report Manager Web application runs under<div>
After changing the selected account in both application pool and the rsreportserver.config file, you must force IIS to use NTLM as your authentication mechanism if you want to use Integrated Windows authentication only. To do this, follow these steps on the server that is running IIS:<br />
<ol>
<li>Start a command prompt. </li>
<li>Locate and then change to the directory that contains the Adsutil.vbs file. By default, this directory is C:\Inetpub\Adminscripts.</li>
<li>Type the following command, and then press ENTER:</li>
<pre>cscript adsutil.vbs set w3svc/NTAuthenticationProviders "NTLM"</pre>
<li>To verify that the NtAuthenticationProviders metabase property is set to NTLM, type the following command, and then press ENTER:</li>
<pre>cscript adsutil.vbs get w3svc/NTAuthenticationProvider</pre></ol>
The following text should be returned:</div>
<pre>NTAuthenticationProviders : (STRING) "NTLM"</pre><div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com0tag:blogger.com,1999:blog-5994592872119219985.post-56727207201414409012013-05-13T20:33:00.001-04:002013-05-13T21:07:08.409-04:00DevExpress WPF Grid - NewRowItem is Evil!If you need any kind of custom validation or special cross-column logic when you enter a new data (new row) in DevExpress.<br />
I recommend to not use the out of the box DevExpress GridControl NewItemRow feature. It is evil!<br />
<br />
<pre class="brush: xml">
<style targettype="{x:Type dxg:TableView}">
<setter Property="NewItemRowPosition" Value="None">
</style>
</pre>
<br />
<div>
My recommendation is to implement your own new row detail in a separate section.<br />
<h2>
Reason ? </h2>
The row uses multiple mocked bound object through it's life time. Managing state changes is almost impossible.<br />
<br />
If your data source is simple then it might work out. But once you need state inside your row, this feature fails.<br />
<br />
For example, try adding custom columns with drop down boxes. Now add some custom logic to filter those drop down based on the object's state.<br />
This is where the <a href="http://documentation.devexpress.com/windowsforms/CustomDocument778.aspx" target="_blank">NewRowItem </a>gets confused. Everytime you click on it, it will create a mock object at first, to bind the drop down boxes to it. Then when you select the first value -from any drop down- it'll recreate the object, and this time trigger the <a href="http://documentation.devexpress.com/windowsforms/DevExpressXtraGridViewsBaseColumnView_InitNewRowtopic.aspx" target="_blank">ColumnView.InitNewRow</a> event.<br />
<br /></div>
<div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com0tag:blogger.com,1999:blog-5994592872119219985.post-84391417201470928082013-05-06T20:22:00.001-04:002013-05-19T22:52:45.919-04:00How to diagnose a freezing Visual Studio plug-in <div class="WordSection1">
<h2>
<span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt;"><o:p> </o:p></span>What the hell are you doing Visual Studioooooooo!!!!!</h2>
<div class="MsoNormal">
Is a phrase I hear many times a week if not daily. If you are a .Net developer I am sure that you've been there.</div>
<div class="MsoNormal">
As a developer, who write multithreaded apps, and made a blood pact to not create one that freezes, there is nothing worse than a continuous freezing -<b>Visual Studio</b>-<b> </b>development environment. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Well, I have good news and some more good news. Whether you are using Visual Studio 2010 (VS2010) or Visual Studio 2012 (VS2012), there is a way to hunt the cause and disable it. You will need: </div>
<div class="MsoNormal">
</div>
<ul>
<li>NuGet: I am sure you already have it, if you don't. There is work around.</li>
<li>Component Diagnostics - another plug-in available through NuGet or at <a href="http://visualstudiogallery.msdn.microsoft.com/b27b3a77-9c70-4130-820c-bfaa7a4e05bc?SRC=VSIDE" target="_blank">Visual Studio Gallery</a> This plugin was developed by <a href="http://visualstudiogallery.msdn.microsoft.com/site/search?f%5B0%5D.Type=User&f%5B0%5D.Value=Paul%20Harrington" target="_blank">Paul Harrington</a>. A great innovation, yet under exposed.</li>
</ul>
<h4>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPxlm3llMtPXZi2NVXRgTj6I8mwQi3l2zEQywCdwTrYQ9KY0xD1dk5tX_-Azhhi2zeT4G_zKlIkkIyPwFwKmO04UKoPP-TvEeaQ2K_Gyr7xscJWc9JW-wqStSehZtmfSlizAtZaWwvFj8/s1600/+Microsoft+Visual+Studio_2013-05-06_19-30-00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="443" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPxlm3llMtPXZi2NVXRgTj6I8mwQi3l2zEQywCdwTrYQ9KY0xD1dk5tX_-Azhhi2zeT4G_zKlIkkIyPwFwKmO04UKoPP-TvEeaQ2K_Gyr7xscJWc9JW-wqStSehZtmfSlizAtZaWwvFj8/s640/+Microsoft+Visual+Studio_2013-05-06_19-30-00.png" width="640" /></a></h4>
<h3>
Diagnosing the problem </h3>
<div>
If you just started facing the problem out of the blue, and you have a decent computer specs. It's possible that some plug-in updated itself, and like every software. It's possible to have bugs, especially with today's rapid agile releases. Performance testing is rarely ever implemented, again especially with free plugins. </div>
<h4>
<b>First, verify that its a plug-in. Use the <a href="http://msdn.microsoft.com/en-us/library/ms241278(v=vs.110).aspx" target="_blank">DevEnv.exe /SafeMode</a> argument</b></h4>
<div>
If your experience suddenly becomes better and no more freezing, then it's definitely a plug-in</div>
<div>
<br /></div>
<h4>
Second, find the trouble making plug-in </h4>
<div>
So what is making your VS environment freeze? using the above mentioned plug-in</div>
<h4>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8n3ffIJFu_mHnvna3e7aM5YTlopEUUGsLnvIQmDeqc6aefKD7qmEGxvpXGMWI8PUDhi6sfMjvijMyVlTDAo8AglVNBOKEl8agEwgSoyKstHgRompXwKsDEqF-VM6EpEvNEaoQkDxmeYY/s1600/+Microsoft+Visual+Studio_2013-05-06_19-40-26.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8n3ffIJFu_mHnvna3e7aM5YTlopEUUGsLnvIQmDeqc6aefKD7qmEGxvpXGMWI8PUDhi6sfMjvijMyVlTDAo8AglVNBOKEl8agEwgSoyKstHgRompXwKsDEqF-VM6EpEvNEaoQkDxmeYY/s320/+Microsoft+Visual+Studio_2013-05-06_19-40-26.png" width="296" /></a></h4>
<div class="MsoNormal">
go to the new <b>Component Diagnostics tool window ==> Package Manager Tab</b></div>
<div class="MsoNormal">
scrolling down the list, I search for the plug in that took the most time to load. One stands out <b>VSCommandPackage</b> with it's <b>10K </b>microseconds <b>AutoLoad </b>time. </div>
<div class="MsoNormal">
10 seconds might not sound like a long time, but add to it to all the other packages Avg 0.5~2 second and it you start to feel it, everytime you open a solution. Possibly every time you open a file or even build.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9QOqW_0xWUHfeGLGRyH4FOY7e-KroFqyTc_l15Q3T-KjrjddNAX2lisvq_XNd9HOXEdFbqwTFdVP2vGCL6gfQLs92tLCZVzkcq5gMMLTGO_avYkYDsp7IxOjX7MQOgj3s2PoDchWrD74/s1600/+Microsoft+Visual+Studio_2013-05-06_19-47-31.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="176" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9QOqW_0xWUHfeGLGRyH4FOY7e-KroFqyTc_l15Q3T-KjrjddNAX2lisvq_XNd9HOXEdFbqwTFdVP2vGCL6gfQLs92tLCZVzkcq5gMMLTGO_avYkYDsp7IxOjX7MQOgj3s2PoDchWrD74/s640/+Microsoft+Visual+Studio_2013-05-06_19-47-31.png" width="640" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj92fD84iaxYjEzEgWWh9j_ZVG3mZxNdJ8hWYfKiB-G8zx__y9RNXrgkKvWLiDnvrtB-7V2FVuKKDwqcJ4gObasnuUykcHKyoLpjPw57hN1TsAC-eSCVn2ice0B6fZEHy4b4Wx-k0fjIkk/s1600/WamraTFS+(DebugAny+CPU)+-+Microsoft+Visual+Studio_2013-05-06_20-19-56.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj92fD84iaxYjEzEgWWh9j_ZVG3mZxNdJ8hWYfKiB-G8zx__y9RNXrgkKvWLiDnvrtB-7V2FVuKKDwqcJ4gObasnuUykcHKyoLpjPw57hN1TsAC-eSCVn2ice0B6fZEHy4b4Wx-k0fjIkk/s640/WamraTFS+(DebugAny+CPU)+-+Microsoft+Visual+Studio_2013-05-06_20-19-56.png" width="640" /></a></div>
<h4>
</h4>
<h3>
How to fix it ?</h3>
<div>
Going back to NuGet, simply disable it and try the impact. Reopen VS. Open solutions, Menues and files, build. </div>
<h4>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhglK7MoSP8DB0-XA7GbpJJcWcwQylb59-o5xvugNa4_6hur7GNoWvZcUIjiMM9dDALMUWZeHSthteRi-3fP0W4gcRNga0zo1PE7Q7zwSpCnqG2gYXva_pY03g8O4SiJNCWDPnd0HnUK6I/s1600/WamraTFS+(DebugAny+CPU)+-+Microsoft+Visual+Studio_2013-05-06_20-05-55.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="448" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhglK7MoSP8DB0-XA7GbpJJcWcwQylb59-o5xvugNa4_6hur7GNoWvZcUIjiMM9dDALMUWZeHSthteRi-3fP0W4gcRNga0zo1PE7Q7zwSpCnqG2gYXva_pY03g8O4SiJNCWDPnd0HnUK6I/s640/WamraTFS+(DebugAny+CPU)+-+Microsoft+Visual+Studio_2013-05-06_20-05-55.png" width="640" /></a></h4>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
<div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com0tag:blogger.com,1999:blog-5994592872119219985.post-52523891459719181432009-11-07T13:50:00.014-05:002013-05-13T20:27:31.204-04:00How buggy software could bring great hardware to it's kneesBeing a developer feels <span class="blsp-spelling-corrected" id="SPELLING_ERROR_0">sometimes</span> like a curse. <span class="blsp-spelling-corrected" id="SPELLING_ERROR_1">Even though</span> it can resolve complex software issues, 3rd party installs, etc... It is also <span class="blsp-spelling-corrected" id="SPELLING_ERROR_3">painful</span> to see 2-7 hours of you personal life time burn away because of another <span class="blsp-spelling-corrected" id="SPELLING_ERROR_4">outrageous development</span> mistake. Superior hardware components brought down on it's knees because of one line of code, or lack of it.<br />
<br />
<div>
My latest painful experience was with the <b>"HP Wireless Office Jet 8500 All in one Printer, Fax and Scanner"</b> installer. Tsk tsk HP!<br />
At some point during installation, the software tries to install Flash9f.<span class="blsp-spelling-error" id="SPELLING_ERROR_6">ocx</span> V9. My computer; however, had Flash V10 installed. This caused an error. The <strong><em>TITLE</em></strong> of that error window had the following error code:</div>
<div>
<br /></div>
<div>
<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2pxfont-family:arial, sans-serif; border-collapse: collapse; font-size: 17; white-space: pre;"><b>"<span class="blsp-spelling-error" id="SPELLING_ERROR_7">hpzsetup</span>.<span class="blsp-spelling-error" id="SPELLING_ERROR_8">exe</span>" "-f" ".\<span class="blsp-spelling-error" id="SPELLING_ERROR_9">autorun</span>_network.inf" "-<span class="blsp-spelling-error" id="SPELLING_ERROR_10">networkonly</span>" "-<span class="blsp-spelling-error" id="SPELLING_ERROR_11">wStub</span>" "263454"</b></span></div>
<div>
</div>
<div>
<br />
Might as well say GUESS!<br />
<br />
This simple Flash version check (which is less than 2 hours worth of development time) could have saved me "a single customer" 14+ hours of my time. I am sure that many other novice customers, would have returned this after a couple of hours of frustration and <span class="blsp-spelling-corrected" id="SPELLING_ERROR_12">fiddling</span> with the <span class="blsp-spelling-error" id="SPELLING_ERROR_13">uninstall</span>/install options. If not, they would have settled for 1/8 of the installed features during that buggy and faulty installation. </div>
<div>
<span class="Apple-style-span" style="font-size: 15.9722px;">I wonder how much did this mistake cost HP; returns, phone support, reputation which equals future recurring purchases. That was my experience with Cannon scanners, and that's why I decided to try HP this time "Drivers". It seems that HP has fallen behind in this particular <span class="blsp-spelling-corrected" id="SPELLING_ERROR_14">instance</span>. The <span class="blsp-spelling-corrected" id="SPELLING_ERROR_15">reviews</span> on <a href="http://www.amazon.com/Officejet-8500-Wireless-All-Printer/dp/B001PM6RX6/ref=sr_1_1?ie=UTF8&qid=1257711169&sr=8-1-spell">Amazon </a>at the time of writing this blog were 26 (one stare) / 39 (5 star)</span></div>
<div>
</div>
<div>
I guess they will keep falling, unless someone at HP wakes up and fix the installer before flash 12 :) </div>
<div>
<br /></div>
<div>
Below is another error code generated and logged after a recovery attempt.</div>
<div>
</div>
<blockquote>
<div>
<br /></div>
<div>
<div>
---------------------------</div>
<div>
Error Situation Code: 24749208</div>
<div>
---------------------------</div>
<div>
The following lines were retrieved from the installation error logs.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
= Application did not return ERROR_SUCCESS. Returned 0x2</div>
<div>
<br /></div>
<div>
Exit code=1602</div>
<div>
<br /></div>
<div>
= Application did not return ERROR_SUCCESS. Returned 0x2</div>
<div>
<br /></div>
<div>
<span class="blsp-spelling-error" id="SPELLING_ERROR_16">LaunchApp</span>(X:\<span class="blsp-spelling-error" id="SPELLING_ERROR_17">hpqtra</span>08.<span class="blsp-spelling-error" id="SPELLING_ERROR_18">exe</span> -<span class="blsp-spelling-error" id="SPELLING_ERROR_19">shutDown</span>,1,00000000,00000000) failed with 2</div>
<div>
<br /></div>
<div>
Error opening key <span class="blsp-spelling-error" id="SPELLING_ERROR_20">HKLM</span>\SOFTWARE\Hewlett-Packard\Install\{624E7452-BA43-4f55-B9D5-<span class="blsp-spelling-error" id="SPELLING_ERROR_21">FC</span>75<span class="blsp-spelling-error" id="SPELLING_ERROR_22">EEA</span>0808B}. error=2</div>
<div>
<br /></div>
<div>
Error message received: Module X:\Flash9f.<span class="blsp-spelling-error" id="SPELLING_ERROR_23">ocx</span> failed to register. <span class="blsp-spelling-error" id="SPELLING_ERROR_24">HRESULT</span> -2147220473. Contact your support personnel.</div>
<div>
<br /></div>
<div>
Timed out waiting for product finish event</div>
<div>
<br /></div>
<div>
RUN: Driver <span class="blsp-spelling-error" id="SPELLING_ERROR_25">UI</span> Plug-In exits returning 50</div>
<div>
<br /></div>
<div>
= Application did not return ERROR_SUCCESS. Returned 0x2</div>
<div>
<br /></div>
<div>
RUN: Driver <span class="blsp-spelling-error" id="SPELLING_ERROR_26">UI</span> Plug-In exits returning 50</div>
<div>
<br /></div>
<div>
= Application did not return ERROR_SUCCESS. Returned 0x2</div>
<div>
<br /></div>
<div>
<span class="blsp-spelling-error" id="SPELLING_ERROR_27">LaunchApp</span>(X:\<span class="blsp-spelling-error" id="SPELLING_ERROR_28">hpqtra</span>08.<span class="blsp-spelling-error" id="SPELLING_ERROR_29">exe</span> -<span class="blsp-spelling-error" id="SPELLING_ERROR_30">shutDown</span>,1,00000000,00000000) failed with 2</div>
<div>
<br /></div>
<div>
Error opening key <span class="blsp-spelling-error" id="SPELLING_ERROR_31">HKLM</span>\SOFTWARE\Hewlett-Packard\Install\{624E7452-BA43-4f55-B9D5-<span class="blsp-spelling-error" id="SPELLING_ERROR_32">FC</span>75<span class="blsp-spelling-error" id="SPELLING_ERROR_33">EEA</span>0808B}. error=2</div>
<div>
<br /></div>
<div>
Error message received: Module X:\Flash9f.<span class="blsp-spelling-error" id="SPELLING_ERROR_34">ocx</span> failed to register. <span class="blsp-spelling-error" id="SPELLING_ERROR_35">HRESULT</span> -2147220473. Contact your support personnel.</div>
<div>
<br /></div>
<div>
X:\<span class="blsp-spelling-error" id="SPELLING_ERROR_36">GPBaseService</span>2.<span class="blsp-spelling-error" id="SPELLING_ERROR_37">msi</span> failed with return code 1602</div>
<div>
<br /></div>
<div>
<span class="blsp-spelling-error" id="SPELLING_ERROR_38">MSIInstall</span>() failed with 1602 for <span class="blsp-spelling-error" id="SPELLING_ERROR_39">MSI</span> <span class="blsp-spelling-error" id="SPELLING_ERROR_40">GPBaseService</span>2</div>
<div>
<br /></div>
<div>
Exit code=1602</div>
<div>
<br /></div>
<div>
Exit code=21</div>
<div>
<br /></div>
<div>
= Application did not return ERROR_SUCCESS. Returned 0x2</div>
<div>
<br /></div>
<div>
<span class="blsp-spelling-error" id="SPELLING_ERROR_41">LaunchApp</span>(X:\<span class="blsp-spelling-error" id="SPELLING_ERROR_42">hpqtra</span>08.<span class="blsp-spelling-error" id="SPELLING_ERROR_43">exe</span> -<span class="blsp-spelling-error" id="SPELLING_ERROR_44">shutDown</span>,1,00000000,00000000) failed with 2</div>
<div>
<br /></div>
<div>
Error opening key <span class="blsp-spelling-error" id="SPELLING_ERROR_45">HKLM</span>\SOFTWARE\Hewlett-Packard\Install\{624E7452-BA43-4f55-B9D5-<span class="blsp-spelling-error" id="SPELLING_ERROR_46">FC</span>75<span class="blsp-spelling-error" id="SPELLING_ERROR_47">EEA</span>0808B}. error=2</div>
<div>
<br /></div>
<div>
Timed out waiting for product finish event</div>
<div>
<br /></div>
<div>
<span class="blsp-spelling-error" id="SPELLING_ERROR_48">GetDatFileName</span>() returned FALSE. We need a <span class="blsp-spelling-error" id="SPELLING_ERROR_49">dat</span> file to run.</div>
<div>
<br /></div>
<div>
= Application did not return ERROR_SUCCESS. Returned 0x2</div>
<div>
<br /></div>
<div>
<span class="blsp-spelling-error" id="SPELLING_ERROR_50">LaunchApp</span>(X:\<span class="blsp-spelling-error" id="SPELLING_ERROR_51">hpqtra</span>08.<span class="blsp-spelling-error" id="SPELLING_ERROR_52">exe</span> -<span class="blsp-spelling-error" id="SPELLING_ERROR_53">shutDown</span>,1,00000000,00000000) failed with 2</div>
<div>
<br /></div>
<div>
Error opening key <span class="blsp-spelling-error" id="SPELLING_ERROR_54">HKLM</span>\SOFTWARE\Hewlett-Packard\Install\{624E7452-BA43-4f55-B9D5-<span class="blsp-spelling-error" id="SPELLING_ERROR_55">FC</span>75<span class="blsp-spelling-error" id="SPELLING_ERROR_56">EEA</span>0808B}. error=2</div>
<div>
<br /></div>
<div>
Error message received: Module X:\Flash9f.<span class="blsp-spelling-error" id="SPELLING_ERROR_57">ocx</span> failed to register. <span class="blsp-spelling-error" id="SPELLING_ERROR_58">HRESULT</span> -2147220473. Contact your support personnel.</div>
<div>
<br /></div>
<div>
Timed out waiting for product finish event</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
---------------------------</div>
<div>
OK </div>
<div>
---------------------------</div>
<div>
<br /></div>
</div>
<div>
</div>
</blockquote>
<div>
</div>
<div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com1tag:blogger.com,1999:blog-5994592872119219985.post-20609256916635509872009-08-06T10:51:00.003-04:002013-05-13T21:09:05.679-04:00Problem upgrading Teradata ODBC drivers from v6 --> v12<div>
Problem upgrading Teradata ODBC drivers from v6 -->; v12</div>
<div>
<br /></div>
<div>
I used to get this error while installing the Teradata ICU libraries v12</div>
<div>
<div>
---------------------------</div>
<div>
Shared ICU Libraries for Teradata</div>
<div>
---------------------------</div>
<div>
Error applying transforms. Verify that the specified transform paths are valid.</div>
<div>
<br /></div>
<div>
C:\WINDOWS\Installer\{8AFBC2EB-BB17-43C8-8AE0-5B7961A4A217}\1033.mst</div>
<div>
---------------------------</div>
<div>
OK </div>
<div>
---------------------------</div>
<div>
<br /></div>
<div>
So I found a similar issue here <a href="http://support.microsoft.com/kb/299699">http://support.microsoft.com/kb/299699</a> and I decided to remove the Teradata ICU reference using Windows Installer Cleaner <a href="http://support.microsoft.com/kb/290301">http://support.microsoft.com/kb/290301</a></div>
<div>
<br /></div>
<div>
That seems to have resolved my problem, and this is why I shared it :) </div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
<div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com0tag:blogger.com,1999:blog-5994592872119219985.post-53364967948604739092009-01-27T11:21:00.003-05:002009-01-27T11:24:28.050-05:00SharePoint Unit Tests on a Vista Ultimate 64bit<p class="MsoNormal">An issue/problem I’<span class="blsp-spelling-error" id="SPELLING_ERROR_0">ve</span> experienced recently with VS Unit Testing & <span class="blsp-spelling-error" id="SPELLING_ERROR_1">SharePoint</span> OM Mode. It is impossible to run VS Unit Tests that connect to the OM on a 64bit machine. Reason is that Visual Studio is a native 32bit app and since it runs in <span class="blsp-spelling-error" id="SPELLING_ERROR_2">splwow</span>64 mode, it cannot connect to a <span class="blsp-spelling-error" id="SPELLING_ERROR_3">WSS</span> 64bit process. 32bit & 64bit COM <span class="blsp-spelling-error" id="SPELLING_ERROR_4">dlls</span> can't mix.<o:p></o:p></p> <p class="MsoNormal">Just Something to observe if you get an error similar to <br /></p><div style="mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt; background:yellow"><p class="CodeSnippet" style="background:yellow">Test method AiE.UnitTests.WorkshopBusinessRulesTest.UpdateWorkshopInstanceTest threw exception:<span style="mso-spacerun:yes"> </span>System.<span class="blsp-spelling-error" id="SPELLING_ERROR_5">ApplicationException</span>: Problem Accessing <span class="blsp-spelling-error" id="SPELLING_ERROR_6">SharePoint</span> site ---><span style="mso-spacerun:yes"> </span>System.IO.FileNotFoundException: The Web application at http://localhost:3333/workshops could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application..<span style="font-size:11.0pt"><o:p></o:p></span></p></div><div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com0tag:blogger.com,1999:blog-5994592872119219985.post-1847736531040033722008-10-03T14:04:00.009-04:002013-05-13T20:28:54.005-04:00C# .NET Extension Methods with a Generic List<span style="font-size: 100%;">I was asked by a client today on how to write an </span>extension<span style="font-size: 100%;"> methods and </span>whether I<span style="font-size: 100%;"> use them or not. So while searching for examples in my own code I decided to share this snippet since you will at some project need to create a comma </span>separated<span style="font-size: 100%;"> list of strings, integers or objects</span><br />
<br />
<span style="font-size: 100%;">This example uses generic </span>extension<span style="font-size: 100%;"> method to convert a list of any type to a string comma </span>separated<span style="font-size: 100%;"> list</span><br />
<br />
<pre class="brush: csharp">
///
/// Contains List Extension Methods
///
public static class ListExtensions
{
///
/// Converts the current list items to a comma separated string
///
public static string ToCommaSaperated<t>(this List<t> myList)
{
string ret = string.Empty;
for (int i = 0; i > myList.Count; i++)
{
if (myList[i] != null && !string.IsNullOrEmpty(myList[i].ToString()))
{
if (i == 0)
ret = myList[i].ToString();
else
ret += "," + myList[i].ToString();
}
}
return ret;
}
}
</pre>
<br />
<div>
<span style="font-size: 100%;">to use this function we would:</span><br />
<br />
<pre class="brush: csharp">List lstUsers= getAllUsers();
lstUser.ToCommaSeparated();
</pre>
<customuserobject style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><br />and with a proper override of the ToString() virtual method you should get a proper list of comma separated user names for example</customuserobject><br />
<br />
<pre class="brush: csharp">public class CustomUserObject
{
public override string ToString()
{
return firstName+" "+lastName;
}
}
</pre>
</div>
<div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com0tag:blogger.com,1999:blog-5994592872119219985.post-40832641389014499542008-09-08T09:32:00.003-04:002008-09-08T10:02:55.348-04:00An undocumented Error ASP.NET "Arguments to MakeRelative must be root-relative"<span class="Apple-style-span" style=" ;font-family:'Times New Roman';"><div style=" font-weight: normal; font-family:Verdana;font-size:0.7em;color:black;"><span><h1 style=" font-weight: normal; font-family:Verdana;"><span class="Apple-style-span" style="font-size:medium;">I've been coming accross this error in one of my applications which use EpiServer and custom Page base class... it driving me banana, anyone came accross something like this?</span></h1><h1 style="font-family: Verdana; font-weight: normal; font-size: 18pt; color: red; "><br /></h1><h1 style="font-family: Verdana; font-weight: normal; font-size: 18pt; color: red; ">Server Error in '/XXX.Web' Application.<hr width="100%" size="1" color="silver"></h1><h2 style="font-family: Verdana; font-weight: normal; font-size: 14pt; color: maroon; "><i>Arguments to MakeRelative must be root-relative</i></h2></span><span style="font-family:Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><b style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px; ">Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br /><br /><b style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px; ">Exception Details: </b>System.ArgumentException: Arguments to MakeRelative must be root-relative<br /><br /><b style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px; ">Source Error:</b> <br /><br /><table width="100%" bgcolor="#ffffcc"><tbody><tr><td><code>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code></td></tr></tbody></table><br /><b style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px; ">Stack Trace:</b> <br /><span class="Apple-style-span" style=" white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;font-family:'Lucida Console';font-size:10px;"><br /></span><table width="100%" bgcolor="#ffffcc"><tbody><tr><td><code><pre style="font-family: 'Lucida Console'; font-size: 0.9em; ">[ArgumentException: Arguments to MakeRelative must be root-relative] EPiServer.UrlBuilder.MakeRelative(String fromBase, String path) +417 EPiServer.UrlBuilder.Rebase(UrlBuilder fromBaseUrl, UrlBuilder toBaseUrl, RebaseKind kind) +553 EPiServer.Web.FriendlyHtmlRewriteToExternal.HtmlRewriteUrl(UrlBuilder internalUrl, UrlBuilder externalUrl, UrlBuilder url, Encoding encoding, Object& internalObject) +139 EPiServer.Web.FriendlyHtmlRewriteToExternal.rewritePipe_HtmlRewriteUrl(Object sender, HtmlRewriteEventArgs e) +304 EPiServer.Web.RewritePipe.OnHtmlRewriteUrl(HtmlRewriteEventArgs e) +19 EPiServer.Web.HtmlRewritePipe.WriteElement(MyHtmlRewriteEventArgs e, SgmlReader reader, TextWriter writer) +404 EPiServer.Web.HtmlRewritePipe.RewriteToEnd(TextReader reader, TextWriter writer) +2063 EPiServer.Web.HtmlRewriteStream.Close() +165 System.Web.HttpWriter.Filter(Boolean finalFiltering) +69 System.Web.HttpResponse.FilterOutput() +82 System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +47 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 </pre></code></td></tr></tbody></table><br /><hr width="100%" size="1" color="silver"><b style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px; ">Version Information:</b> Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053</span></div></span><div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com1tag:blogger.com,1999:blog-5994592872119219985.post-79549552564589253242008-09-03T00:43:00.006-04:002009-11-07T14:45:19.571-05:00Google Chrome a Revolutionary Browser<div>One of the worst deficiencies in today’s browsers is the single thread per tab and one process per browser module. Opera, Firefox and IE would continually grow in memory. Memory allocated for new tabs are never deallocated and recycle, even if you close that tab.</div><div><br /></div><div> A simple experiment with an IE instance and 50 tabs would show the defficiencies in that single process model. <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQpRpnUnmwCmADbjuzVhKmR7swYXAWwKMoL63F36E_0v7iW2QC6OzOwU2mR6U8gCgr0b2gG64OHY8EGmEPLLuIliaQz1xpBOOr-ZpKunJUmke2l_flbbthtyk7IAuriLE9PjZSJ6TPqE/s1600-h/Google+Chrome+Task+Manager.jpg"><img id="BLOGGER_PHOTO_ID_5241652021685370386" style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQpRpnUnmwCmADbjuzVhKmR7swYXAWwKMoL63F36E_0v7iW2QC6OzOwU2mR6U8gCgr0b2gG64OHY8EGmEPLLuIliaQz1xpBOOr-ZpKunJUmke2l_flbbthtyk7IAuriLE9PjZSJ6TPqE/s320/Google+Chrome+Task+Manager.jpg" border="0" /></a> Once a single tab crashes, the entire process would fail; therefore, You would lose all your tabs and your work in progress. If check process explorer while running Google Chrome, you would find multiple chrome.exe instances. It is a different design, chrome uses a multi-processes design, in addition to multi threading. Every new tab in the browser is a new process with its own memory space, this is significantly different and it enhances the way of browsing and multi tasking within a browser. also If one site/tab crashes, the browsing issue is mitigated. And that single tab/process would be closed. All of it’s memory would be freed, and other tabs are saved. The main browser window has its own task manager, and could be used to close independent tabs/web applications</div><br /><div></div><div>One of my friends has noticed increased performance of Ajax controls when running the site (SharePoint site) in Chrome, the reason for that is that Chrome is using V8 JavaScript Engine which COMPILES JavaScript to machine code that runs within the process instead of using Javascript as a script language and interpreting it, thus any JavaScript will run so much faster.<br /></div><div> </div><div>Conclusion: I believe their browser will grow very quickly in the market since they are considering Web2.0 and Web Applications into the design and architecture form the beginning, they are also performing Quality Control Tests using their Google Database of top ranked sites, can you top that with a better diverse list of test cases, I just hope it complies with CSS standards but at the same time be intelligent enough to render IE custom styles correctly as well, I also hope that they will not create their own standards and force us developers to start customizing Google Chrome hacks for it as well with their market share.</div><div class="blogger-post-footer">All site content is a property of WeSam Abdallah, please ask for permission prior to quoting or reuse of any content.</div>WeSam Abdallahhttp://www.blogger.com/profile/03800894261970357630noreply@blogger.com0