<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>I Think In Code &#187; Error</title>
	<atom:link href="http://www.ithinkincode.com/index.php/category/error/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ithinkincode.com</link>
	<description>Kevin Marquette</description>
	<lastBuildDate>Sun, 05 Sep 2010 13:20:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Invalid cert on Linksys router WRT54GL</title>
		<link>http://www.ithinkincode.com/index.php/2010/09/invalid-cert-on-linksys-router-wrt54gl/</link>
		<comments>http://www.ithinkincode.com/index.php/2010/09/invalid-cert-on-linksys-router-wrt54gl/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 13:20:40 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[Error]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/?p=589</guid>
		<description><![CDATA[Getting SSL cert trusted on my linksys router.]]></description>
			<content:encoded><![CDATA[<p>I finally decided to set up SSL on my linksys router. I did not set up SSL before because when I set my router up, there was only one computer on the network directly connected.  Once you have your router configured, you don&#8217;t have to connect to it all that often.  </p>
<p>I use a randomly generated key for my wireless connection.  I had a guest over that wanted to connect to my network.  So I connected to my router and read off the key to him.  As I was reviewing all my settings, I saw the SSL option was not selected.  I decided it was best practice to enable it.  I turned the setting on, reconnected with a https page, and my browser did not like the cert.  So I set out to resolve the issue.</p>
<p>I knew the cert was not trusted, so I had to figure out a way to get it trusted.  I found these steps over on <a href="http://stackoverflow.com/questions/681695/what-do-i-need-to-do-to-get-ie8-to-accept-a-self-signed-certificate">StackOverFlow.com</a>.  They almost worked for me.  It got me on the right track anyway.</p>
<p>In those steps, you have to set the site as a trusted site.  Reconnect and ignore the warning.  Then view the cert.  This time it will give you an option to install it.  After installing it, I was still getting an error message.  But it was a little  different this time.  It was saying that the cert was issued for a different site.  I don&#8217;t know if everyone has this issue, but I did change my ip range and I expected that to be the cause.   Looking at the cert, it indicates that it was issued to Linksys.  This gave me an idea.</p>
<p>I was using the IP address and certs are issued to server names.  So I just needed a DNS entry that maps the IP address to the name that it expected. But I do not host dns on my network.  I just use the DNS from my ISP.  DNS is not the only way to set up those mappings.  The host file also does that.  Open up C:\Windows\System32\drivers\etc\hosts and add a line with my router IP address and the name linksys.</p>
<p>Now when I type in https://linksys I get my router with a trusted SSL connection that is valid.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2010/09/invalid-cert-on-linksys-router-wrt54gl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My redirected favorites are broken in IE</title>
		<link>http://www.ithinkincode.com/index.php/2010/07/redirectedfavoritesbroken/</link>
		<comments>http://www.ithinkincode.com/index.php/2010/07/redirectedfavoritesbroken/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 21:08:35 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[Error]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/?p=582</guid>
		<description><![CDATA[I ran into this issue where my redirected favorites in IE 8 broke.  They broke bad for everyone.  IE would list nothing in the favorites drop down and the links bar was also empty.  Attempts to add a new favorite would fail.  I could not even create a favorites folder from within the favorites manager. [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into this issue where my redirected favorites in IE 8 broke.  They broke bad for everyone.  IE would list nothing in the favorites drop down and the links bar was also empty.  Attempts to add a new favorite would fail.  I could not even create a favorites folder from within the favorites manager.</p>
<p>This started out very intermittent.  The same user could go from one computer to another. It would work on some and not on others.  It would work for our IT group every time.  The first common connection I made was the use of offline files.  We don&#8217;t like offline files. We find it causes us nothing but problems.  I will save those for another time.  I did find that machines that had offline files off had this issue.  If offline files are turned on, the problem went away.</p>
<p>We recently started over with our group policies as we rolled out Server 2008 and Windows 7.  We used the new folder redirection feature to redirect documents to the home folder and set favorites to fallow the home folder.  By default this enabled offline files to sync those locations.  There was a registry setting that disabled this default behavior that we later found and set.  But this still left offline files running.  It may be on by default.  I don&#8217;t remember any more.</p>
<p>Because offline files was on for most people this problem was fairly rare.  We finally had enough problems with offline files that we decided to kill it for everyone.  The resulting problem was everyone lost favorites.   So I set out to find a solution.  The better I wrapped my head around this the stranger it felt.</p>
<p>The other important detail was that our network administrators did not have this problem.  So that led me to permissions.  Our users only have security to home folders, not the folder structure under them.  Before we would map the UNC path of the profile to the N: drive.  Then we would point everything to N: including documents.  The new way to do it in group policy wants to use the UNC path as the redirection point.  That is introducing issues with some apps.  IE favorites included.</p>
<p>The problem goes away if I give the user full access all the way from the root of the share to the home folder location.  This is a bit much but it does work.  With this information in mind, I set out to see the minimum permissions that I needed to grant the users for this to work.  If I get the user just read access to the folders it worked.  Here is the list of minimum permissions that those sub folders needed to have.</p>
<p>List folder / read data<br />
Read attributes<br />
Read permissions</p>
<p>That looked like a simple enough solution but something still didn&#8217;t feel right.  If that is what the issues was, then I should have been able to find lots of other people with this problem.  For as much as I searched for this and as little as I was able to find, I knew something else was strange.  After some more experiments, I narrowed this down to be a very rare and unusual bug.</p>
<p>I found that I only had to set those permissions on the folder under the home folder.  None of the other parent folders needed any permissions at all.</p>
<p>I also found that the depth of the home folder made a difference.  If I moved the users home folder up just one directory location (with out any special permissions) the problem went away.  I even created a new folder structure of the same depth on the same root share to test this out.  It had the same results.</p>
<p>I also found that not using DFS (distributed file system) would also make this problem go away.  Same folder depth but not located on a dfs share.</p>
<p>So if we left Offline Files on, or used a folder structure that was one folder shallower, or did not use DFS, or did not redirect favorites with the server 2008 redirection policy, or did not use IE, then we never would have had this problem. I can see why it was so hard for me to find information on this.  I hope that the next person dealing with this is able to find this post and something in here will give them a glue to solve whatever issue they have.  I expect I am missing some simple detail but I was able to get it working in the end.</p>
<p>If you wanted to know how deep our home folders are, they UNC path looks something like this:  \\domain.name\rootshare\home\depart\username</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2010/07/redirectedfavoritesbroken/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sever 2008 UAC and Folder Security Issues</title>
		<link>http://www.ithinkincode.com/index.php/2010/07/server-2008-uac-folder-security/</link>
		<comments>http://www.ithinkincode.com/index.php/2010/07/server-2008-uac-folder-security/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 16:01:54 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[Error]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[Server 2008]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/?p=535</guid>
		<description><![CDATA[I ran into an interesting issue on our 2008 file server. When I was logged in as myself I did not have access to several folders that used for various shares. I was given an prompt that would allow me to gain access to them. If I continued, it would modify the permissions on every [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an interesting issue on our 2008 file server.  When I was logged in as myself I did not have access to several folders that used for various shares.  I was given an prompt that would allow me to gain access to them.  If I continued, it would modify the permissions on every object in that folder adding my name to everything.  But when I checked the permissions, the other groups (that I was a member of) were still on the folder.  </p>
<p>The thing that made this stranger was my access was correct if I connected from a share on another computer.  This was only a problem if I was on the physical server.  I also discovered that the domain administrator account did not have this issue.  It looked like server 2008 was not resolving group membership on folders.  Domain Admins had full control of the folder and I was a member of that group.  </p>
<p>For a while I would just login as the domain admin.  After a little hunting I found that UAC was causing the issues.  I didn&#8217;t even consider User Account Control because of the way it mucked up the permissions.  The solution is to disable UAC and reboot.  Once I did that, the problem went away.</p>
<p>I feel strongly that UAC is bugged in the way it handles this situation.  When UAC is off and you click on a folder, your group permissions are checked and you are granted access.  The system does not automatically add your name to the folder you try to open.  Your group membership is enough to grant you access.  That is how it should be.  Now in the situation where UAC is turned on, you are prompted to grant yourself permissions.  I don&#8217;t mind that it has to prompt you, but the action it takes after the prompt is the problem.  It should check the group membership and see that you have access then let you go on.  But what it does instead is give you full permissions directly even when your group membership is correct.</p>
<p>Who would think that this is the desired operation?  I would expect most people that discover that this happened, the first thing they do is remove themselves from the security permissions.  The other problem that I ran into what waiting for it to propagate those permissions.  This can take a very long time when its on the root share for all your users.  </p>
<p>This functionality also acts differently from other situations where UAC is protecting the system.  If I try to do operations on the program files folder on a Windows 7 computer, I am prompted to make my changes but the underlying security is never changed.  </p>
<p>UAC is one of those features that I want to embrace but it keeps shooting its self in the foot.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2010/07/server-2008-uac-folder-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE Protected Mode and Networked HP Printers Hang</title>
		<link>http://www.ithinkincode.com/index.php/2010/01/ie-protected-mode-and-networked-hp-printers-hang/</link>
		<comments>http://www.ithinkincode.com/index.php/2010/01/ie-protected-mode-and-networked-hp-printers-hang/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 20:53:34 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[Error]]></category>
		<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/?p=459</guid>
		<description><![CDATA[I ran into a problem printing from IE8 protected mode to a networked HP printer where it would freeze IE and lockup printing.  I had 2 computers act differently with this problem. The first one where the issue was reported would lock up not only IE but also other printing.  After the crash, the print queue [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into a problem printing from IE8 protected mode to a networked HP printer where it would freeze IE and lockup printing.  I had 2 computers act differently with this problem.</p>
<p>The first one where the issue was reported would lock up not only IE but also other printing.  After the crash, the print queue would not act correctly.  Printing test pages would give me an error saying that the server was not responding and that I needed to reboot it.  Other people could still print and test prints originating from the print server would print.  I also could not add new printers while this was happening.  Relogging did nothing.  a full reboot would return things to normal until it locked up later.</p>
<p>After a few crashes, we connected it to IE8 printing.  With a little more testing I discovered it would print fine with protected mode off but failed with it on.  We are trying our hardest to run secure by default so we want this protection.  Too bad it protected us from printing.</p>
<p>I returned to my computer and mapped the printer to my computer.  I was easily able to reproduce the problem.  My print spooler recovered better and I could print other things, but IE crashed hard every time.  I did a little hunting on the web and had a hard time finding content on topic.  Here is what I did find.</p>
<p>When IE runs in protected mode, it runs with limited privileges.  In my case the print driver wanted to run an exe from a location that is restricted by those privileges.   With that in mind, here are your options when faced with this problem.</p>
<p>1) Turn protected mode off<br />
2) Run IE as administrator<br />
3) Reinstall with a basic driver<br />
4) Install printer locally (skip print server)<br />
3) Don&#8217;t print to that printer<br />
4) Create rules to elevate the processes</p>
<p>Some people are able to install more basic drivers but that is hit or miss.  On my computer I was able to install it locally avoiding the print server and it worked fine.  That was an interesting detail.  Our print server is server 2003. </p>
<p>I was able to resolve the issue by creating a rule to elevate the processes needed for printing.  The<a href="http://social.answers.microsoft.com/Forums/en-US/InternetExplorer/thread/1803e307-37ec-4f09-87ef-ba751c55ba7b"> post </a>that gave me this idea is <a href="http://social.answers.microsoft.com/Forums/en-US/InternetExplorer/thread/1803e307-37ec-4f09-87ef-ba751c55ba7b">here</a>. I did exactly what was suggested and it fixed the problem.  There are <a href="http://msdn.microsoft.com/en-us/library/bb250462(VS.85).aspx">registry keys for IE </a>that tell it what to elevate under protected mode.  I created a rule for the same 3 files mentioned: HP1006MC.EXE, HP1006SM.exe, P1006SSL.exe.  After closing IE one more time, it picked up those rules and it worked fine.</p>
<p>I exported those keys to reg files for more testing and it worked on the original computer that the problem was reported on.  I merged those settings into our domain policy and I hope that&#8217;s the last I have to deal with that. </p>
<p>I found those files in the C:\Windows\System32\spool\drivers\w32x86\3 folder.  If I have more problems like this, my plan is to create a rule for all the exe files in that folder.  I was able to do the exact same 3 that the other guy mentioned.  If the problem continued, I was prepared to make rules for all 10 files I found.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2010/01/ie-protected-mode-and-networked-hp-printers-hang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tracking Down RTE: 35601 Element Not Found</title>
		<link>http://www.ithinkincode.com/index.php/2009/03/tracking-down-rte-35601-element-not-found/</link>
		<comments>http://www.ithinkincode.com/index.php/2009/03/tracking-down-rte-35601-element-not-found/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 12:43:00 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/index.php/2009/03/tracking-down-rte-35601-element-not-found/</guid>
		<description><![CDATA[We recently turned on some new features of a product we were using and would get this RTE on a few records within the application. The number of problem records were small, the total number of records worked with in a day made them a regular occurrence. I went over to our test environment. It [...]]]></description>
			<content:encoded><![CDATA[<p>We recently turned on some new features of a product we were using and would get this RTE on a few records within the application.  The number of problem records were small, the total number of records worked with in a day made them a regular <span id="SPELLING_ERROR_0" class="blsp-spelling-corrected">occurrence</span>. </p>
<p>I went over to our test <span id="SPELLING_ERROR_1" class="blsp-spelling-corrected">environment</span>.  It was up to current patch levels, but the data was a few months old.  Almost all of my broken records in live were broken in test.  That gave me hope that its an existing data issue and not something <span id="SPELLING_ERROR_2" class="blsp-spelling-corrected">actively</span> breaking records.</p>
<p>The nice thing about our test <span id="SPELLING_ERROR_3" class="blsp-spelling-corrected">environment</span> is that I am <span id="SPELLING_ERROR_4" class="blsp-spelling-corrected">usually</span> the only person using it.  That makes it easy to toss the <span id="SPELLING_ERROR_5" class="blsp-spelling-error">SQL</span> <span id="SPELLING_ERROR_6" class="blsp-spelling-error">Profiler</span> on with out having to filter it to just my <span id="SPELLING_ERROR_7" class="blsp-spelling-corrected">traffic</span>.  I started the <span id="SPELLING_ERROR_8" class="blsp-spelling-error">profiler</span> at the point just before clicking the button that generated the RTE and paused it just after the message came up.  I closed the app and repeated this process a few times for both working and broken records.</p>
<p>Looking at the queries that each ran,  the broken records all <span id="SPELLING_ERROR_9" class="blsp-spelling-error">stopped</span> at the same point after the same query was run.  That tells me that the application is processing the queries as it runs them and the last one before it <span id="SPELLING_ERROR_10" class="blsp-spelling-error">stopped</span> is my suspect query.  If both the broken and the working records had the same full list of queries I would have had to check them all.   That would have indicated to me that it <span id="SPELLING_ERROR_11" class="blsp-spelling-error">pre-loads</span> most of the data before processing it.  I was in luck.</p>
<p>The query was a large one but the only difference between all records was the record ID.  So it is the same query running for both working and non-working records.  Running the query for all of them gave me different sized record sets.  Some had more a lot of records and some had very few.  One thing did jump out at me as I looked at the raw data.</p>
<p>A few null values jumped out to me in a column that looked like it should have a value.  With my experience with the data I knew it should have had a value.  I saw one column that had data in it directly related to reference I expected instead of that null value.  Because this looked like a complicated query, my first guess was a bad join. </p>
<p>That column was not the only one with nulls in it but every time it had a null the 3 columns to the right also had nulls.  <span id="SPELLING_ERROR_12" class="blsp-spelling-corrected">That&#8217;s</span> what I expect a bad join to look like.  So I started reformatting the query with proper indents and <span id="SPELLING_ERROR_13" class="blsp-spelling-corrected">white space</span>.  It did contain a few union calls.  The first query in the union <span id="SPELLING_ERROR_14" class="blsp-spelling-corrected">practically</span> returned the same results.  It looked the same except for a few less rows.  My null values were still mixed into the good data.</p>
<p>I focused on the table columns that were null and the one column that contained directly related information.  The <span id="SPELLING_ERROR_15" class="blsp-spelling-corrected">joins</span> between them looked correct.   Exactly how I would have written them.   After <span id="SPELLING_ERROR_16" class="blsp-spelling-corrected">rewriting</span> the query as  simple 2 table join that used the same logic, I ended up with the same results.  It was a join that I expected to be valid every time but in this case there are times where its not.  </p>
<p>It turned out to be a flaw in the application logic where it allowed some changes to one set of tables that should have enforced changes in another.  But they were enforcing them at the application level instead.  Other parts of the system enforced it <span id="SPELLING_ERROR_17" class="blsp-spelling-corrected">correctly</span>,  this one point in the application did not.  It overlooked the fact that it needed to enforce it and I almost expect the developer to make the same assumption I made.</p>
<p>I know this is a <span id="SPELLING_ERROR_18" class="blsp-spelling-error">little</span> different from my usual problem/solution posts but this was mostly an internal product and I wanted to document the process I took to <span id="SPELLING_ERROR_19" class="blsp-spelling-corrected">solve</span> it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2009/03/tracking-down-rte-35601-element-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New transaction cannot enlist in the specified transaction coordinator</title>
		<link>http://www.ithinkincode.com/index.php/2009/03/new-transaction-cannot-enlist-in-the-specified-transaction-coordinator/</link>
		<comments>http://www.ithinkincode.com/index.php/2009/03/new-transaction-cannot-enlist-in-the-specified-transaction-coordinator/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 22:29:00 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/index.php/2009/03/new-transaction-cannot-enlist-in-the-specified-transaction-coordinator/</guid>
		<description><![CDATA[I was tying to set up a special feature in the software I work with that involved linked servers. This was test setup so I configured some SQL servers I already had set up and ran into this error. [OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]OLE DB error [...]]]></description>
			<content:encoded><![CDATA[<p>I was tying to set up a special feature in the software I work with that involved linked servers.  This was  test setup so I configured some SQL servers I already had set up and ran into this error.</p>
<p><strong>[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]<br />OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].<br />Msg 7391, Level 16, State 1, Line 2<br />The operation could not be performed because the OLE DB provider &#8216;SQLOLEDB&#8217; was unable to begin a distributed transaction.</strong></p>
<p>The only message the application gave me was the first line but I uncovered a sql command that let me test it without the overhead of running my application.  Here is that command:</p>
<p><strong>BEGIN DISTRIBUTED TRANSACTION<br />select * from linkname.databasename.dbo.tablename<br />COMMIT TRAN</strong></p>
<p>I was able to get the inner command to run on its own. As a distributed transaction, it would fail every time.</p>
<p>I eventualy found this KB from microsoft to get me in the right direction.  <a href="http://support.microsoft.com/kb/839279">http://support.microsoft.com/kb/839279</a></p>
<p><a href="http://support.microsoft.com/kb/839279">You may receive a 7391 error message in SQL Server 2000 when you run a distributed transaction against a linked server after you install Windows Server 2003 or Windows XP Service Pack 2</a></p>
<p>It turned out to be a settings issue with the Microsoft Distributed Transation Cordinator (<strong>MS DTC</strong>).  I had no idea what that realy was.  It turns out MS DTC should be enabled when SQL is installed but by default its locked down (or is with 2003/xp sp2).</p>
<p>I used <strong>dcomcnfg</strong> to get to the component services.  Console Root -> Component Services -> Computers -> My computer -> Properties .  On the Default properties <strong>enable distributed COM</strong> on the computer.  Under MSDTC -> Security Configuration check the option for <strong>Network DTC Access</strong>.</p>
<p>I did make those changes on both servers, I don&#8217;t know if that was needed or not.  I did the linked server last and it worked as soon as I applied the changes.  I know those were the exact changes I made on the 2nd server.  The first one prabably has every thing checked or opened up trying to figure it out.</p>
<p>Other thing you may try if having issues it to make sure the Distributed Transaction Coordinator is running as <strong>network service</strong> and not local system.  Reinstalling it as a service and <strong>rebooting</strong> were a few other tips I read while trouble shooting this problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2009/03/new-transaction-cannot-enlist-in-the-specified-transaction-coordinator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows cannot install required files. Make sure all files required for installation are available, and restart the installation. Error code: 0&#215;800703</title>
		<link>http://www.ithinkincode.com/index.php/2008/04/windows-cannot-install-required-files-make-sure-all-files-required-for-installation-are-available-and-restart-the-installation-error-code-0x800703/</link>
		<comments>http://www.ithinkincode.com/index.php/2008/04/windows-cannot-install-required-files-make-sure-all-files-required-for-installation-are-available-and-restart-the-installation-error-code-0x800703/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 22:05:00 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[Error]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/index.php/2008/04/windows-cannot-install-required-files-make-sure-all-files-required-for-installation-are-available-and-restart-the-installation-error-code-0x800703/</guid>
		<description><![CDATA[I just built a new computer and ran into some issues installing Microsoft Windows Vista. I was getting this message: “Windows cannot install required files. Make sure all files required for installation are available, and restart the installation. Error code: 0x800703E6”. I would get past all the install windows and even copy all the files. [...]]]></description>
			<content:encoded><![CDATA[<p>I just built a new computer and ran into some issues installing Microsoft Windows Vista. I was getting this message: <strong>“Windows cannot install required files. Make sure all files required for installation are available, and restart the installation. Error code: 0x800703E6”</strong>. I would get past all the install windows and even copy all the files. It was the expanding files part that would fail.</p>
<p>My first guess was to remove a stick of ram. I have heard that before and I was at 4G with the 2 sticks. That did not help this time. I ran the memory tests and everything was ok. I left that second stick out while doing the rest of my tests.</p>
<p>I looked for the error code and I found a KB article (<a href="http://support.microsoft.com/kb/930984/en-us">KB930984</a>) that described my exact problem. It indicated that my firmware on my DVD drive was causing the issue. Either update the firmware or copy the files to the disk. I copied all the files to my C: and rebooted. I let it boot from the hard drive and ran into the same issue. I saw another site suggest that the DVD drive needed to be the slave on the IDE cable. Changing the jumper didn’t fix that either. I disconnected the DVD drive and the installer required that I had one.</p>
<p>I thought that was odd. I had an old DVD drive that windows would see but could not see any disk inserted. I set it up and started the install over. It still complained about the DVD drive. After placing a copy of all the files and the main disk and booting from it, the install would still look for the install files on the DVD. I still had the install disk in the drive during some of my tests. That would explain me still getting the error when I thought I had ruled the DVD drive out.</p>
<p>After some more searching, I found the solution. <a href="http://11011.net/archives/000673.html">Installing Vista from Hard Disk, USB Disk or Memory Stick</a>. I selected the repair option instead of install after reading that. Ignored the drive selection and started the command prompt. I ran the fallowing commands:</p>
<p><code><br />c:<br />cd /boot<br />del bcd<br />bcdedit /createstore<br />cd ../sources<br />setup<br /></code></p>
<p>The install went smooth after that. After the install finished, I reformated and installed Vista 64 bit. I was using my 32 bit disk because its a known good one. I was having issues so I wanted to eliminate variables as much as I could.</p>
<p>I copied all the CD files to the C: again but it failed to boot. I booted to the DVD but droped to a command line and ran the install off the hard disk. I did not have any other issues with the rest of the install. I even did that last install with both sticks of ram.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2008/04/windows-cannot-install-required-files-make-sure-all-files-required-for-installation-are-available-and-restart-the-installation-error-code-0x800703/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>No accessible &#8216;Main&#8217; method with an appropriate signature was found</title>
		<link>http://www.ithinkincode.com/index.php/2007/12/no-accessible-main-method-with-an-appropriate-signature-was-found/</link>
		<comments>http://www.ithinkincode.com/index.php/2007/12/no-accessible-main-method-with-an-appropriate-signature-was-found/#comments</comments>
		<pubDate>Mon, 24 Dec 2007 13:18:00 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/index.php/2007/12/no-accessible-main-method-with-an-appropriate-signature-was-found/</guid>
		<description><![CDATA[I was working in a project that was a windows application, but I decided to change it to a console application instead. I changed the type to console and selected Sub Main as my startup object. When I compiled it I got the fallowing error: Error 54 No accessible &#8216;Main&#8217; method with an appropriate signature [...]]]></description>
			<content:encoded><![CDATA[<p>I was working in a project that was a windows application, but I decided to change it to a console application instead. I changed the type to console and selected Sub Main as my startup object. When I compiled it I got the fallowing error: Error 54 No accessible &#8216;Main&#8217; method with an appropriate signature was found.</p>
<p>I expected problems because I knew I did not have the Sub Main defined in my project. I added a class file and entered the fallowing code:<br /><code>
<pre>Public Class Main

  Public Shared Sub Main()

     Application.Run(New Form1)

  End Sub

End Class
</pre>
<p></code></p>
<p>Several examples I saw had main defined with (ByVal args() As String) as the parameter. One thread on the subject indicated that you can add a module instead of a class. Here is the syntax for that.<br /><code>
<pre>Module Main

   Public Sub Main(ByVal args() As String)

      Application.Run(New Form1)

   End Sub

End Module

</pre>
<p></code></p>
<p>You will notice that the shared keyword is left off inside the module.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2007/12/no-accessible-main-method-with-an-appropriate-signature-was-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NullReferenceException raising an event in C#</title>
		<link>http://www.ithinkincode.com/index.php/2007/12/nullreferenceexception-raising-an-event-in-c/</link>
		<comments>http://www.ithinkincode.com/index.php/2007/12/nullreferenceexception-raising-an-event-in-c/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 12:56:00 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/index.php/2007/12/nullreferenceexception-raising-an-event-in-c/</guid>
		<description><![CDATA[I was working with events in C# and ran into this exception. System.NullReferenceException was unhandled Message=&#8221;Object reference not set to an instance of an object.&#8221; This exception was at the exact point in my code where I attempted to raise the event. It turns out that if there are not event handlers attached to your [...]]]></description>
			<content:encoded><![CDATA[<p>I was working with events in C# and ran into this exception. <strong>System.NullReferenceException was unhandled Message=&#8221;Object reference not set to an instance of an object.&#8221;</strong> This exception was at the exact point in my code where I attempted to raise the event. It turns out that if there are not event handlers attached to your event, an attempt to raise it will give you this exception. To solve it, you have to check to see if its null before raising it.</p>
<p><code>
<pre>public class TestEvent{    public event EventHandler MyEvent;    public void RaiseMyEvent(){          if(MyEvent != null){         MyEvent(this, null);       }   }}</pre>
<p></code></p>
<p>All the samples I was looking at did not check for a null value, so neither did I. Now that I had the problem, I see why I need to check.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2007/12/nullreferenceexception-raising-an-event-in-c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Raising an event in C#</title>
		<link>http://www.ithinkincode.com/index.php/2007/12/raising-an-event-in-c/</link>
		<comments>http://www.ithinkincode.com/index.php/2007/12/raising-an-event-in-c/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 01:37:00 +0000</pubDate>
		<dc:creator>Kevmar</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://www.ithinkincode.com/index.php/2007/12/raising-an-event-in-c/</guid>
		<description><![CDATA[Here is the simplest way to raise an event. public class TestEvent{ public event EventHandler MyEvent; public void RaiseMyEvent(){ MyEvent(this, null); }} This uses the default EventHandler that returns a object source and a EventArgs ex. If you want to pass back different parameters, you will need to create your own delegate. The delegate we [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the simplest way to raise an event.</p>
<p><code>
<pre>public class TestEvent{   public event EventHandler MyEvent;   public void RaiseMyEvent(){      MyEvent(this, null);   }}</pre>
<p></code></p>
<p>This uses the default EventHandler that returns a object source and a EventArgs ex. If you want to pass back different parameters, you will need to create your own delegate. The delegate we just used looks like this:<br /><code>
<pre>public delegate void EventHandler (object source, EventArgs ex);</pre>
<p></code></p>
<p>We dont have to define it because .NET already defined it for us. Here is a second example where we built a custom delegate and raise it.</p>
<p><code>
<pre>public delegate void MyCustomEventHandler (string message);

public class TestEvent2{public event MyCustomEventHandler MyEvent2;public void RaiseMyEvent(){MyEvent2("Message sent with event");}}</pre>
<p></code></p>
<p>Now that I explained how to raise events, there is a bug in that code. I&#8217;m saving that for my next post: <a href="http://kevinmarquette.blogspot.com/2007/12/nullreferenceexception-raising-event-in.html">NullReferenceException raising an event in C#</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithinkincode.com/index.php/2007/12/raising-an-event-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
