编译时C#中的Erron [英] Erron in C# when compiling

查看:68
本文介绍了编译时C#中的Erron的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<%@ Page Language="C#" MasterPageFile="~/loanmaster.master" CodeFile="LoanRegister/loanlogin.aspx.cs" Inherits="loanlogin" %>

<pre lang="xml">Server Error in &#39;/Loan Register&#39; 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 &#39;/Loan Register/LoanRegister/loanlogin.aspx.cs&#39; does not exist.

Source Error:


Line 1:  &lt;%@ Page Language=&quot;C#&quot; MasterPageFile=&quot;~/loanmaster.master&quot; CodeFile=&quot;LoanRegister/loanlogin.aspx.cs&quot; Inherits=&quot;loanlogin&quot; %&gt;
Line 2:
Line 3:</pre>

推荐答案

错误消息非常明确: 文件'/ Loan Register / LoanRegister / loanlogin.aspx.cs'不存在。



查找文件,并且将其移动到指定位置,或更改位置!
The error message is pretty explicit: "The file '/Loan Register/LoanRegister/loanlogin.aspx.cs' does not exist."

Find the file, and either move it to the specified location, or change the location!


尝试在您的aspx页面和母版页中将Codefile更改为代码隐藏
Try changing Codefile to codebehind in your aspx page as well as the masterpage


这篇关于编译时C#中的Erron的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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