Moving WCF site from a virtual application to a virtual directory resulted in 404

November 6, 2008 at 1:14 pm 1 comment

Recently, I got a notice to move a WCF site we have to port 80. This mean we have move the site from a virtual application to a virtual directory under Default Web Site. Much to our surprise, the WCF stopped working after the move. Whenever we browse to the svc file, we get a 404 error. We did notice that we can get to a jpg file on the same directory, so it appears that the problem is not entirely permission related.

Apparently, the problem is caused by a corrupted metabase. The IIS metabase got corrupted by an earlier WCF installation. This was a bug that they later patched. The patch was installed. The virtual application was created after the patch was installed and so it did not have the problem, but the Default Web Site was created before the patch. When we move our WCF site under the Default Web Site, it inherited the problem.

On production, we fixed the problem by deleting the Default Web Site and then recreating it again. On test, there were too many web site, so we had to run a IIS clean map script. Please see the following link where I originally discovered the solution (isn’t google great).


Entry filed under: wcf.

Fixing Windows Delayed Write Failed error How I selected my Antivirus software for Windows

1 Comment Add your own

  • 1. article  |  October 28, 2012 at 5:20 am

    When someone writes an piece of writing he/she keeps the image of a user in his/her brain that how a user can understand
    it. Therefore that’s why this article is outstdanding. Thanks!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


November 2008
« Oct   Dec »

Most Recent Posts

%d bloggers like this: