【问题标题】:3tire Web application publish error?3 层 Web 应用程序发布错误?
【发布时间】:2014-02-27 08:31:23
【问题描述】:

我在 3 轮胎架构中创建了一个网站,并且它在本地工作,但是当我在 .net 服务器中实时发布和上传时,它给出了错误

错误

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: Could not load type 'urprofessional.Clients.index'.

Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="urprofessional.Clients.index" %>

【问题讨论】:

  • 你检查过你的括号了吗?

标签: asp.net ajax c#-4.0


【解决方案1】:

试试看:-

CodeBehind="OutReport.aspx.cs" 更改为CodeFile="OutReport.aspx.cs"

对我来说,解决方法是更改​​构建选项卡中的输出路径。

我将输出路径更改为 bin\,错误消失了。

参考here

参考此链接:Could not load type

参考这个链接stackoverflow这里是同样的问题。

参考could not load type

Project Deployment Overview

希望对你有帮助。

【讨论】:

  • 我只上传了 aspx 和 dll 我在服务器中没有 aspx.cs 文件,它在 dll arser 中转换错误消息:文件“/urprofessional/Clients/index.aspx.cs”不存在。源错误:第 1 行:
  • 是否设置了输出路径='\bin'?参考这里了解问题blog.techdreams.org/2008/04/…
  • GovindaRajbhar 任何其他帮助
  • @LingrajGowda 对不起朋友,我无法得到解决方案。如果我能得到,那么我会帮助你。
猜你喜欢
  • 1970-01-01
  • 2010-11-14
  • 1970-01-01
  • 2018-11-21
  • 1970-01-01
  • 2018-03-11
  • 2018-06-26
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多