我编写了一个WEB程序,写好后编译了一下,
我将编译后的文件在本机配置的环境下运行正常,
可是上传上到服务器上后却不正常了,
奇怪的是将未编译的原码传上去却可以运行!
让我不解的是,编译后的文件在本机运行正常.这是为什么?
以下是编译后的在服务器上运时提示的错误:Server Error in '/' Application.
--------------------------------------------------------------------------------Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0030: Cannot convert type 'ASP.view_aspx' to 'System.Web.UI.WebControls.View'Source Error: Line 120:        public view_aspx() {
Line 121:            string[] dependencies;
Line 122:            ((View)(this)).AppRelativeVirtualPath = "~/View.aspx";
Line 123:            if ((global::ASP.view_aspx.@__initialized == false)) {
Line 124:                global::ASP.view_aspx.@__stringResource = this.ReadStringResource();
 Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\82ca0331\437480f9\App_Web_view.aspx.cdcab7d2.-q8klhx3.0.cs    Line: 122