Error 404: File or Directoty Not Found. RRS feed

  • Question

  • Hi All,
        Currently I am creating one WCF web service in IIS 7.0. I have one Service.svc form which contains


    Service="STSConfig" %>

    Here I have added STSConfig.cs in App_Code folder. When I build the solution I am getting 'Build Succeeded' message. I have one Default.aspx page & after running it I am getting this page also.

    But my problem is when I type in IE as

    I am getting one message as

    Error 404: File or Directoty Not Found.
    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    I have also checked spelling & it's correct.
    I am not getting anything how to cope with this. Could anyone please help me in this? As it's really IMP for me to solve this problem ASAP.
    I am using Visual Studio 2008, .Net Framework 3.5 & Windows Server 2008 as O.S.
    Waiting for your reply.


    Wednesday, April 1, 2009 6:52 AM


All replies

  • Sorry for asking the obvious but have you created a virtual director in IIS manager mapping to the directory containing the .svc file?

    Richard Blewett, thinktecture - http://www.dotnetconsult.co.uk/weblog2
    Wednesday, April 1, 2009 7:30 AM
  • Hi Richard,
        Yes I have created virual directory. Below giving you step how I did this. So please tell me if I am going wrong.

    1. Opened Visual Studio. File -> New -> Web Site. Gave name lets say 'STS' & created in E drive as E:\STS. Closed Visual Studio.
    2. Went to IIS. Right click -> Add virual directory -> Gave Alias name as STS -> Physical Path as E:\STS. Clicked OK.
    3. Again went to IIS -> selected STS -> Right click -> Convert to Application.
    4. Opened Visual Studio. File -> Open ->WebSite -> Local IIS -> STS.

    I am really in need of getting this work so if you have any information please send.



    Wednesday, April 1, 2009 8:40 AM
  • Please refer to:
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Thursday, April 2, 2009 10:08 AM