Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,I made an asp.net 3.5 application,and publish it.
It is running succesfully on the local machine and when i deployed it in the server
(iis).it is giving me error as

To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".

then i change the custom error mode to "off".after this i got error as this

Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: The file '/MyApps.aspx.cs' does not exist.

Source Error: 


Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyPage.aspx.cs" CodeBehind="MyPage.aspx.cs"
Line 2:      Inherits="MyApps._MyPage" %>
Line 3:  

Then i again change my default aspx page(start page)to some different aspx page in the iis.
Then the page is running succesfully,but when i change my to MyPage.aspx it is
giving me error.How to get rid of this error.When this type error occurs.
Please help.
Posted
Updated 13-Jun-12 12:56pm
v2
Comments
Sandeep Mewara 14-Jun-12 16:16pm    
Is this the class name of your code behind file: "MyApps._MyPage"?
software_Engi08 15-Jun-12 1:18am    
My page name is MyPage.aspx & MyPage.aspx.cs and
in codebehide it is as
public partial class _MyPage : System.Web.UI.Page

1 solution

Error clearly states that its pointing to MyApps.aspx page which may not be existing in your solution. Please check in your files if there is a file called "MyApps.aspx". If it does not exist, then check in your code if you have written MyApps.aspx by mistake. Please post back if you still face any issues.
 
Share this answer
 
Comments
software_Engi08 15-Jun-12 1:21am    
Before publishing i was having both MyPage.aspx and MyPage.aspx.cs page
but when i publish it using visual studio 2008 ,that time i was only having
MyPage.aspx and in bin folder MyPage.dll

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900