读书人

[疑难顽贴]不想对CSDN失望.但是这个有

发布时间: 2012-01-19 20:57:58 作者: rapoo

[疑难顽贴]不想对CSDN失望.但是这个问题没解决的办法..求求前辈们指点我....
我都不知道Line 118--Line 122的代码是哪的...
ContentRentIn页面中没这些代码...
页面传值给ContentRentIn这个页,报的错。
而且我感觉也不是虚拟服务器设置问题。
服务器和本机都是2.0
本机没问题 上传至服务器报错

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.contentrentin_aspx ' to 'System.Web.UI.WebControls.Content '

Source Error:



Line 118: public contentrentin_aspx() {
Line 119: string[] dependencies;
Line 120: ((Content)(this)).AppRelativeVirtualPath = "~/ContentRentIn.aspx ";
Line 121: if ((global::ASP.contentrentin_aspx.@__initialized == false)) {
Line 122: dependencies = new string[2];


Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_contentrentin.aspx.cdcab7d2.9ztl_s2f.0.cs Line: 120


Compiler Warning Messages:
Warning: CS0108: 'ASP.contentrentin_aspx.Profile ' hides inherited member 'Content.Profile '. Use the new keyword if hiding was intended.
Source Error:

c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_contentrentin.aspx.cdcab7d2.9ztl_s2f.0.cs

Line 129: }
Line 130:
Line 131: protected System.Web.Profile.DefaultProfile Profile {
Line 132: get {
Line 133: return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));


Warning: CS0108: 'ASP.contentrentin_aspx.ApplicationInstance ' hides inherited member 'Content.ApplicationInstance '. Use the new keyword if hiding was intended.
Source Error:

c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_contentrentin.aspx.cdcab7d2.9ztl_s2f.0.cs


Line 135: }
Line 136:
Line 137: protected System.Web.HttpApplication ApplicationInstance {
Line 138: get {
Line 139: return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));



Show Detailed Compiler Output:


c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe " /t:library /utf8output /R: "C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll " /R: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_jiben.master.cdcab7d2.3mctozn4.dll " /R: "C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll " /R: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\assembly\dl3\1f93981a\3ae54a85_4a75c701\App_Web_x9khclzm.DLL " /R: "C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll " /R: "C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll " /R: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\assembly\dl3\554287ae\5a66b17d_4a75c701\App_Code.DLL " /R: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\assembly\dl3\8d890daf\86c6e382_4a75c701\App_Web_towyqcdt.DLL " /R: "C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll " /R: "C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll " /R: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll " /R: "C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll " /R: "C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll " /R: "C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll " /out: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_contentrentin.aspx.cdcab7d2.9ztl_s2f.dll " /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_contentrentin.aspx.cdcab7d2.9ztl_s2f.0.cs " "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_contentrentin.aspx.cdcab7d2.9ztl_s2f.1.cs "


Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_contentrentin.aspx.cdcab7d2.9ztl_s2f.0.cs(131,53): warning CS0108: 'ASP.contentrentin_aspx.Profile ' hides inherited member 'Content.Profile '. Use the new keyword if hiding was intended.


c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\assembly\dl3\8d890daf\86c6e382_4a75c701\App_Web_towyqcdt.DLL: (Location of symbol related to previous warning)
c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_contentrentin.aspx.cdcab7d2.9ztl_s2f.0.cs(137,46): warning CS0108: 'ASP.contentrentin_aspx.ApplicationInstance ' hides inherited member 'Content.ApplicationInstance '. Use the new keyword if hiding was intended.
c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\assembly\dl3\8d890daf\86c6e382_4a75c701\App_Web_towyqcdt.DLL: (Location of symbol related to previous warning)
c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2aacfb15\d01c0502\App_Web_contentrentin.aspx.cdcab7d2.9ztl_s2f.0.cs(120,14): error CS0030: Cannot convert type 'ASP.contentrentin_aspx ' to 'System.Web.UI.WebControls.Content '




Show Complete Compilation Source:

[解决办法]
哥们,你看你的问题太乱了.所以很多人看不下去.谢谢
你整理的有条理后,再问问看
[解决办法]
up
[解决办法]
public contentrentin_aspx() 你是不是没有写返回类型阿?
[解决办法]
建议删除framework 后 重新安装下
[解决办法]
warning CS0108: 'ASP.contentrentin_aspx.ApplicationInstance ' hides inherited member 'Content.ApplicationInstance '. Use the new keyword if hiding was intended
------------------
好象说你继承的时候,名字冲突了?
如果要继承,请改名字。

汗一个,英语很差。LZ自己看看这句话吧,看好了应该问题就解决了。

一大堆问题,其实都是同一类问题。
[解决办法]
大哥装中文2.0吧..英语实在太差了..看不懂..
[解决办法]
第一个错误是很简单的问题。检查页面中最上面的@Page中的CodeFile和Inherits是否正确。
第二个错误应该把第一个错误解决了就没了。

读书人网 >asp.net

热点推荐