<?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>Mike Plate &#187; IIS</title>
	<atom:link href="http://www.mikeplate.com/category/iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikeplate.com</link>
	<description>Freelance web and mobile developer</description>
	<lastBuildDate>Tue, 17 Aug 2010 20:12:19 +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>Attach to w3wp.exe from Visual Studio 2005 on Windows Vista</title>
		<link>http://www.mikeplate.com/attach-to-w3wpexe-from-visual-studio-2005-on-windows-vista/</link>
		<comments>http://www.mikeplate.com/attach-to-w3wpexe-from-visual-studio-2005-on-windows-vista/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 10:11:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://mikeplate.wordpress.com/2007/01/09/attach-to-w3wpexe-from-visual-studio-2005-on-windows-vista/</guid>
		<description><![CDATA[Doesn&#8217;t it just drive you crazy when you KNOW something IS there, but it isn&#8217;t? Like when you&#8217;re in Visual Studio 2005 on Windows Vista and would like to debug your asp.net application by attaching to the w3wp.exe process. You know you are running asp.net 2.0 code, but the dialog box still claimes that there [...]]]></description>
			<content:encoded><![CDATA[<p>Doesn&#8217;t it just drive you crazy when you KNOW something IS there, but it isn&#8217;t? Like when you&#8217;re in Visual Studio 2005 on Windows Vista and would like to debug your asp.net application by attaching to the w3wp.exe process. You know you are running asp.net 2.0 code, but the dialog box still claimes that there is NO managed code inside w3wp.exe. But it is! Aaargh.</p>
<p>So you try to figure out what could be wrong, which may include the following:</p>
<ul>
<li>Debug mode for compilation in web.config. Checked.</li>
<li>A setting in IIS 7.0  Manager that you&#8217;re unfamiliar with. Well, I found a setting for server side debugging in the ASP-section, which existed before. Turning it on didn&#8217;t seem to help (why would it?).</li>
<li>Maybe something with the application pool? There is a mode for &#8220;Managed Pipeline Mode&#8221;, but setting it to &#8220;Classic&#8221; didn&#8217;t seem to help (as it shouldn&#8217;t). Changing the identity of the pool didn&#8217;t help either.</li>
<li>At some point I think I&#8217;ve seen something about your account having to be a member of a &#8220;debugging&#8221; group in your Windows machine. However, there are no such user groups in my local machine. &lt;edit&gt;It seems that this group is not necessary since Visual Studio 2005&lt;/edit&gt;</li>
<li>Also, of course, you have to run Visual Studio 2005 as an administrator, but I&#8217;ve done that since the beginning (no need to right click if you set the Properties, Compatability, Run as administrator checkbox for the icon).</li>
</ul>
<p>I did use <a href="http://www.microsoft.com/technet/sysinternals/utilities/ProcessExplorer.mspx" title="Process Explorer">Process Explorer</a> to ensure that .net was loaded in w3wp.exe, and sure enough it was.</p>
<p>So I found a note on the web about &#8220;Windows Authentication&#8221; being used when debugging asp.net. Now I&#8217;m not sure if this was the single thing that helped since I tried several things, but after installing &#8220;Windows Authentication&#8221; in IIS 7.0, the &#8220;Managed&#8221; code shows up in w3wp.exe and I can attach to it from Visual Studio 2005.</p>
<p>The solution:</p>
<ul>
<li>Control Panel</li>
<li>Programs</li>
<li>Turn Windows features on or off</li>
<li> Internet Informaton Services</li>
<li>World Wide Web Services</li>
<li>Security</li>
<li>Check for &#8220;Windows Authentication&#8221;</li>
<li>Rebooted computer (just in case &#8211; don&#8217;t know if it was needed or even if iisreset.exe would have been necessary)</li>
</ul>
<p>Please write a comment if you&#8217;ve had the same problem, and got it solved the same way I did, or if you did something else/more to get it working.</p>
<p>&lt;edit&gt;Although primarily about pressing F5 to automatically attach to w3wp.exe, <a href="http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx">this blog post</a> talks about what needs to be done.&lt;/edit&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeplate.com/attach-to-w3wpexe-from-visual-studio-2005-on-windows-vista/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Running legacy asp scripts on Vista and IIS 7.0</title>
		<link>http://www.mikeplate.com/running-legacy-asp-scripts-on-vista-and-iis-70/</link>
		<comments>http://www.mikeplate.com/running-legacy-asp-scripts-on-vista-and-iis-70/#comments</comments>
		<pubDate>Fri, 24 Nov 2006 13:19:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://mikeplate.wordpress.com/2006/11/24/running-legacy-asp-scripts-on-vista-and-iis-70/</guid>
		<description><![CDATA[Getting my legacy asp scripts to run against a Microsoft Access database on Windows Vista and IIS 7.0 took some investigation. Using Process Monitor was an enormous help when I had no clues but: An error occurred on the server when processing the URL. Please contact the system administrator. Hey, that&#8217;s me! And then: Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p>Getting my legacy asp scripts to run against a Microsoft Access database on Windows Vista and IIS 7.0 took some investigation. Using <a href="http://www.microsoft.com/technet/sysinternals/processesandthreads/processmonitor.mspx">Process Monitor</a> was an enormous help when I had no clues but:</p>
<blockquote><p>An error occurred on the server when processing the URL. Please contact the  system administrator.</p></blockquote>
<p>Hey, that&#8217;s me! And then:</p>
<blockquote><p>Microsoft JET Database Engine error  &#8217;80004005&#8242;<br />
Unspecified error<br />
/myapp/myscript.asp, line 9</p></blockquote>
<p>Ok, so I suspected that the first problem was due to the fact that I needed to activate asp scripts in some way. However, turns out it was a new setting for sending the <a href="http://www.iis.net/default.aspx?tabid=2&amp;subtabid=25&amp;i=994">error message</a> to the client (maybe it has existed somewhere before, but I&#8217;ve never had to change it). This setting is located in the new IIS Manager:</p>
<blockquote><p>Features View, ASP, Debugging Properties, Send Errors to Browser</p></blockquote>
<p>But this only got me to the second error message. And that, I had seen before. It should have something to do with file and directory permissions. Being uncertain about which user IIS 7 actually runs legacy asp scripts as, I used Process Monitor to find the &#8220;IUSR&#8221; user. But givning that user full permissons to the directory where my.mdb resided didn&#8217;t help. So back to Process Monitor &#8211; filtering on failed operations from the w3wp.exe process. Ahh! Temporary files. Of course! The OLEDB driver needs access to the system temporary folder to store some files when opening the connection to the database file. And the location for this in Vista is:</p>
<p>C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp</p>
<p>Now, <a href="http://www.microsoft.com/technet/windowsvista/security/uac.mspx">UAC</a> can really drive you mad. I wonder how long I can take it before giving up and turning it off. For security purposes, it is of course great. Then again, I&#8217;ve run Windows for a lot of years as a member of the Administrators group, and never had any real security issues. At least not any that I know of&#8230; <img src='http://www.mikeplate.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Pasting &#8220;C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp&#8221; into the address bar of  Explorer will tell you that it doesn&#8217;t exist. Well, I didn&#8217;t believe Vista so I removed the ending directories until Vista told me that I had to elevate priviliges to get into one of the parent folders. Ok, I did that and now I could get into the full path. Great. A warning that I was changing file permissons on a system directory was all that was standing between me and success &#8211; and thankfully that was not an obstacle.</p>
<p>So now I&#8217;m running my old asp-scripts until I&#8217;ve had the opportunity to convert all projects to asp.net.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeplate.com/running-legacy-asp-scripts-on-vista-and-iis-70/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: www.mikeplate.com @ 2010-09-07 11:31:14 -->