Reputation: 381
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Account/Examples/fio.aspx
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044
This page I am trying to assess is here now:
http://localhost/<mysitename>/Account/Examples/fio.aspx
but when I was writing and debugging site in Visual Studio ,everything worked fine and my page was here
/Account/Examples/fio.aspx
Since this morning. I have no idea how to fix it.
Upvotes: 1
Views: 28377
Reputation: 7705
You need to create an application in IIS for you website that points to the root directory of the site as it is deployed on the server. You will also need to create an Application Pool that is set to .Net Framework 4 to manage the IIS process that your site will run as.
You're getting the error because the default website in IIS (usually set to c:\inetpub\wwwroot) doesn't know anything about the pages within your website.
Upvotes: 1
Reputation: 4596
Add the below code to your web.config file. Your browser will then show you the full error message.
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Upvotes: 5