在服务器上发布和部署时出现错误 [英] Getting error when publish and deployed on the server

查看:65
本文介绍了在服务器上发布和部署时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个asp.net 3.5应用程序,并将其发布.
它在本地计算机上成功运行,并且在我将其部署到服务器中时
(iis).它给我的错误是

为了使该特定错误消息的详细信息在远程计算机上可见,请创建一个< customerrors>位于当前Web应用程序根目录中的"web.config"配置文件中的标记.此< customerrors>标签应将其模式"属性设置为关".

然后我将自定义错误模式更改为关闭".在此之后,我得到了如下错误

"/"应用程序中的服务器错误.
-------------------------------------------------- ------------------------------
解析器错误
说明:在解析服务于此请求所需的资源期间发生错误.请查看以下特定的解析错误详细信息,并适当地修改您的源文件.

解析器错误消息:文件'/MyApps.aspx.cs'不存在.

源错误:


第1行:<%@页面语言="C#" AutoEventWireup ="true" CodeFile ="MyPage.aspx.cs" CodeBehind ="MyPage.aspx.cs"
第2行:Inherits ="MyApps._MyPage"%>
第3行:


然后我再次将默认的aspx页面(起始页面)更改为iis中的一些不同的aspx页面.
然后页面成功运行,但是当我将其更改为MyPage.aspx时,它是
给我错误.如何消除此错误.发生此类型错误时.
请提供帮助.请检入您的文件中是否有一个名为"MyApps.aspx"的文件.如果它不存在,那么请检查您的代码是否错误地编写了MyApps.aspx.如果您仍然遇到任何问题,请发回.


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.

解决方案

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.


这篇关于在服务器上发布和部署时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆