2014-02-27 140 views
0

我创建一个网站在3轮胎结构和它的工作地方,但是当我发布和上传.NET服务器在现场提示错误3tire Web应用程序发布错误?

错误

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" %> 
+0

你检查了你的假设吗? – Kuzgun

回答

0

尝试: -

变化CodeBehind="OutReport.aspx.cs"CodeFile="OutReport.aspx.cs"

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

我改变了输出路径到bin \并且错误消失了。

参考here

请参考以下链接:Could not load type

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

参考could not load type

Project Deployment Overview

我希望这会帮助你。

+0

我只上传aspx和dll我没有aspx.cs文件在服务器上它转换为dll arser错误消息:文件'/urprofessional/Clients/index.aspx.cs'不存在。 源错误: 第1行:<%@页面语言= “C#” AutoEventWireup = “真” 的CodeFile = “index.aspx.cs” 继承= “urprofessional.Clients.index” %> –

+0

是您的代码的运行在你的本地服务器上罚款? –

+0

是的,它在本地服务器上工作正常 –