我用vs2012写的webform程序,.net版本4.5,用vs调试正常的,但是发布为文件系统后,上传到win2008服务器上,报错如下,什么原因啊!服务器上也装了.net4.5
Server Error in '/' Application.Parser ErrorDescription: 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 '测试服务器._default'.Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="测试服务器._default" %>
Line 2:
Line 3: <!DOCTYPE html>Source File: /web/default.aspx Line: 1 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.118.0
Server Error in '/' Application.Parser ErrorDescription: 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 '测试服务器._default'.Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="测试服务器._default" %>
Line 2:
Line 3: <!DOCTYPE html>Source File: /web/default.aspx Line: 1 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.118.0
http://www.cnblogs.com/insus/p/4468249.htmlhttp://www.cnblogs.com/insus/p/4466200.html