I totally do not understand this error problem. I have created other applications and had no problems the only difference in this one is I am adding MenuItem programmatically Menu.aspx and use a redirect, where other applications MenuItem are hard coded with like:
<asp:MenuItem NavigateUrl="~/EmailDistribution.aspx" Text="Email Distribution"/>
Using VS 2010 and .NET Framework 4, application has 2 pages: Menu.aspx and PromptPage.aspx and both use a master page, MenuMaster.
I have depolyed it to sever and try to run, but keep getting error message:
Server Error in '/OIA DashBoard' 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: /OIA DashBoard/PromptPage.aspx
I have double check the spelling and do not see the problem. url goes to Menu.aspx page with no problems, from that page I click on MenuItem to redirect to the PrompPage.aspx and that when the error occcurs.
This is the PrompPage.aspx can not find.
<%@ Register TagPrefix="cc1" Namespace="MessageDisplay" Assembly="msgBox" %><%@ Page Title="Prompt Page" Language="C#" MasterPageFile="~/MenuMaster.master" AutoEventWireup="true" CodeFile="PromptPage.aspx.cs" Inherits="PromptPage" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %><asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"><link href="Styles/Custom.css" rel="stylesheet" type="text/css" /></asp:Content><asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
This is the Menu.aspx that can be found:
<%@ Register TagPrefix="cc1" Namespace="MessageDisplay" Assembly="msgBox" %><%@ Page Title="Menu Page" Language="C#" MasterPageFile="~/MenuMaster.master" AutoEventWireup="true" CodeFile="Menu.aspx.cs" Inherits="Menu" %><asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"></asp:Content><asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
This is the web.config:
<appSettings><add key="urlMenu" value="http://mmmmmmm.kkkkkk.com/OIA DashBoard/Menu.aspx"/><add key="urlPrompt" value="http://mmmmmmm.kkkkkk.com/OIA DashBoard/PromptPage.aspx"/></appSettings>
From the web browser I go to the folder and open Menu.aspx and no problem, but when I try to open PromptPage.aspx get the error message. So I am guessing there is something wrong in the PromptPage.aspx, but not sure what.
Any help would be greatly appreciated!