<p>In asp.net 3.5, I'm rewriting the url</p>

<p><a href="http://www.abc.com/archive/1108/harpersdecember" rel="nofollow noreferrer">http://www.abc.com/archive/1108/harpersdecember</a></p>

<p>to the following</p>

<p><a href="http://www.abc.com/article.aspx?docId=78" rel="nofollow noreferrer">http://www.abc.com/article.aspx?docId=78</a></p>

<p>I'm using this code to do it:</p>

<pre><code>                Context.RewritePath("/article.aspx?docId=78");
</code></pre>

<p>It works fine locally but when I upload to the remote web server, I get a 404 when trying to reference the above page.  Any suggestions why it works locally but not remotely?</p>

You may need to create a wildcard mapping in IIS on the remote server so that all requests are processed by ASP.Net. If you do not do this any URLs without .ASPX on the end will not run through your URL rewriting code.
There is a good explanation of this (and other reasons you might use it) on
Scott Guthrie's blog
.