我编写了一个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
我将编译后的文件在本机配置的环境下运行正常,
可是上传上到服务器上后却不正常了,
奇怪的是将未编译的原码传上去却可以运行!
让我不解的是,编译后的文件在本机运行正常.这是为什么?
以下是编译后的在服务器上运时提示的错误: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
解决方案 »
- 为什么总是提示:Connection must be valid and open?高分赠送。
- 关于checkbox的问题
- 小弟坤龙,asp.net的初学者.望大虾们不吝赐教!顺便给小弟提供一个好点的.netQQ群,不胜感激!只剩10分了,不好意思了,呵呵
- 有没有办法设置VS.Net默认的源代码管理?
- 关于 Microsoft Meida Player 的显示问题〉
- Url重写的问题,顶者有分,在线等
- 采用SqlDataAdapter批处理导入一个Datable数据,一条记录也没有
- 100分求SQL Server 2000 Reporting server的升级CD内容!分不够再加!
- duwamish7中 .tdl文件問題?
- 下载问题求解
- ASP.NET验证控减在服务器正常,在客户端却显示错误
- xp下vs2005发布的网站无法打开
与命名空间View同名了,
谢谢了.
呵呵