编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
编译器错误信息: BC30456: “CreateResourceBasedLiteralControl”不是“ASP.Test_aspx”的成员。
源错误:
行 1: <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
行 2: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Test.aspx.vb" Inherits="PantoSchool.Test"%>
行 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
错在第一行(标记为红色)
有那位知道这是什么原因阿?帮帮忙,告诉我。
19 个解决方案
#1
are you using keywords as your class name or namespace name? can you show some of your code in Test.aspx.vb?
#2
你把微软的WebControls安装程序在安装一遍试试!
#3
我运行另一个页面也发生了这个错(在第一行报告编译错误)
以下是该页面的.vb文件代码。
Imports PantoSchool.XT.Accounts.Business
Imports System.Data
Imports System.Data.SqlClient
Imports PantoSchool.Common
Public Class Product_Module_modify
Inherits System.Web.UI.Page
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
Protected WithEvents DropDownList1 As System.Web.UI.WebControls.DropDownList
Protected WithEvents TextBox2 As System.Web.UI.WebControls.TextBox
Protected WithEvents TextBox3 As System.Web.UI.WebControls.TextBox
Protected WithEvents ListBox1 As System.Web.UI.WebControls.ListBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents ListBox2 As System.Web.UI.WebControls.ListBox
Protected WithEvents Button2 As System.Web.UI.WebControls.Button
Protected WithEvents Button3 As System.Web.UI.WebControls.Button
Protected WithEvents Button4 As System.Web.UI.WebControls.Button
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'在此处放置初始化页的用户代码
If Not IsPostBack Then
'取得所有的无主单元添加到ListBox1
Dim QueryString As String
QueryString = "select * from XT_Cell where ModuleID=null"
Dim strConn As String
strConn = "server=dvserver; User ID=sa;Password=;database=PantoSchoolXfz"
Dim objCmd As New SqlCommand(strConn)
Dim objReader As SqlDataReader
objReader = objCmd.ExecuteReader
Do While objReader.Read
ListBox1.Items.Add(objReader.Item("ModuleName"))
Loop
End If
End Sub
End Class
以下是该页面的.vb文件代码。
Imports PantoSchool.XT.Accounts.Business
Imports System.Data
Imports System.Data.SqlClient
Imports PantoSchool.Common
Public Class Product_Module_modify
Inherits System.Web.UI.Page
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
Protected WithEvents DropDownList1 As System.Web.UI.WebControls.DropDownList
Protected WithEvents TextBox2 As System.Web.UI.WebControls.TextBox
Protected WithEvents TextBox3 As System.Web.UI.WebControls.TextBox
Protected WithEvents ListBox1 As System.Web.UI.WebControls.ListBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents ListBox2 As System.Web.UI.WebControls.ListBox
Protected WithEvents Button2 As System.Web.UI.WebControls.Button
Protected WithEvents Button3 As System.Web.UI.WebControls.Button
Protected WithEvents Button4 As System.Web.UI.WebControls.Button
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'在此处放置初始化页的用户代码
If Not IsPostBack Then
'取得所有的无主单元添加到ListBox1
Dim QueryString As String
QueryString = "select * from XT_Cell where ModuleID=null"
Dim strConn As String
strConn = "server=dvserver; User ID=sa;Password=;database=PantoSchoolXfz"
Dim objCmd As New SqlCommand(strConn)
Dim objReader As SqlDataReader
objReader = objCmd.ExecuteReader
Do While objReader.Read
ListBox1.Items.Add(objReader.Item("ModuleName"))
Loop
End If
End Sub
End Class
#4
请帮我看看,谢谢!
#5
我刚刚发现一个现象:
我做的这个项目是用VSS联机开发的,同样一个页面我运行时有错误,而别人运行时却没有错误。这是为什么?
而我在本地开发的项目能正常的运行!这又是为什么?
我做的这个项目是用VSS联机开发的,同样一个页面我运行时有错误,而别人运行时却没有错误。这是为什么?
而我在本地开发的项目能正常的运行!这又是为什么?
#6
inside the C# compiler:
if (User.Identity.Name == "jc19281(高头)")
throw new Exception("BC30456: CreateResourceBasedLiteralControl不是ASP.Test_aspx的成员");
:-)
if (User.Identity.Name == "jc19281(高头)")
throw new Exception("BC30456: CreateResourceBasedLiteralControl不是ASP.Test_aspx的成员");
:-)
#7
to saucer:
我没看懂阿!!
英文不好!
我没看懂阿!!
英文不好!
#8
到底该怎样解决??
#9
阿~~~~~~~~~~~~~
我真的要崩溃了阿。现在用别人的权限登陆运行也发生这个错误了!我只是点了“获取最新版本阿”!!!!
思归大侠,你在不在阿??????????
救我啊!!!!!!!!!!!
我真的要崩溃了阿。现在用别人的权限登陆运行也发生这个错误了!我只是点了“获取最新版本阿”!!!!
思归大侠,你在不在阿??????????
救我啊!!!!!!!!!!!
#10
according to
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Test.aspx.vb" Inherits="PantoSchool.Test"%>
your Page class is "PantoSchool.Test", but the above code says, the class is "Product_Module_modify", what's going on?
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Test.aspx.vb" Inherits="PantoSchool.Test"%>
your Page class is "PantoSchool.Test", but the above code says, the class is "Product_Module_modify", what's going on?
#11
抱歉我贴错了,<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Test.aspx.vb" Inherits="PantoSchool.Test"%>
对应的Page class 是Test
Imports PantoSchool.XT.Accounts.Business
Imports PantoSchool.XT.Accounts.DataAccess
Imports Microsoft.Web.UI.WebControls
Public Class Test
Inherits Web.PageBase
Protected WithEvents TreeView1 As Microsoft.Web.UI.WebControls.TreeView
Protected WithEvents btnAddModule As System.Web.UI.WebControls.Button
Protected WithEvents btnModifyModule As System.Web.UI.WebControls.Button
Protected WithEvents btnDeleteModule As System.Web.UI.WebControls.Button
Protected WithEvents lblProductID As System.Web.UI.WebControls.Label
Protected WithEvents lblProductName As System.Web.UI.WebControls.Label
Protected WithEvents lblProductUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblProductDescription As System.Web.UI.WebControls.Label
Protected WithEvents pnlProductInfo As System.Web.UI.WebControls.Panel
Protected WithEvents lblModuleName As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleDescription As System.Web.UI.WebControls.Label
Protected WithEvents pnlModuleInfo As System.Web.UI.WebControls.Panel
Protected WithEvents pnlAll As System.Web.UI.WebControls.Panel
Protected WithEvents chkIsPublic As System.Web.UI.WebControls.CheckBox
Protected WithEvents pnlCellInfo As System.Web.UI.WebControls.Panel
Protected WithEvents lblCellID As System.Web.UI.WebControls.Label
Protected WithEvents lblCellName As System.Web.UI.WebControls.Label
Protected WithEvents lblCellUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblCellDescription As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleID As System.Web.UI.WebControls.Label
Protected WithEvents Button4 As System.Web.UI.WebControls.Button
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub
#End Region
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'由于业务逻辑层的部分功能还未完称,所以所有的功能暂时是直接调数据操纵层的对象来完成的。
'现在只是完成功能,等逻辑层的功能完善后,重写功能的实现部分!!!!!!!!!!!
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'在此处放置初始化页的用户代码
If Not IsPostBack Then
Call ShowTree()
Call ShowPanel("")
End If
'实现TreeView展开不提交,点击才提交
'------------------------------------------------------
Dim strTreeName As String = "TreeView1"
Dim strRef As String = Page.GetPostBackEventReference(TreeView1)
Dim strScript As String = "<script language='JavaScript'> " & vbCrLf _
& "<!-- " & vbCrLf _
& " function initTree() { " & vbCrLf _
& " " & strTreeName & ".onSelectedIndexChange = function() { " & vbCrLf _
& " if (event.oldTreeNodeIndex != event.newTreeNodeIndex) " & vbCrLf _
& " this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex); " & vbCrLf _
& " window.setTimeout('" & strRef.Replace("'", "\'") & "', 0, 'JavaScript'); " & vbCrLf _
& " } " & vbCrLf _
& " } " & vbCrLf _
& "// --> " & vbCrLf _
& "</script>"
Page.RegisterClientScriptBlock("InitTree", strScript)
'-------------------------------------------------------
End Sub
后面的太长了,不贴了,都是些操纵页面的代码。
同一个页面:Test 本来我运行的结果是错误的,但别人运行(在别人的机器上用别人的权限登陆运行是正确的,在我的机器上用别人的权限登陆运行结果是错误的!)的结果是正确的。但别人点了“获取最新版本“后在运行,结果就是错误的了!(所有的页面都不能运行!)
这是为什么???????
对应的Page class 是Test
Imports PantoSchool.XT.Accounts.Business
Imports PantoSchool.XT.Accounts.DataAccess
Imports Microsoft.Web.UI.WebControls
Public Class Test
Inherits Web.PageBase
Protected WithEvents TreeView1 As Microsoft.Web.UI.WebControls.TreeView
Protected WithEvents btnAddModule As System.Web.UI.WebControls.Button
Protected WithEvents btnModifyModule As System.Web.UI.WebControls.Button
Protected WithEvents btnDeleteModule As System.Web.UI.WebControls.Button
Protected WithEvents lblProductID As System.Web.UI.WebControls.Label
Protected WithEvents lblProductName As System.Web.UI.WebControls.Label
Protected WithEvents lblProductUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblProductDescription As System.Web.UI.WebControls.Label
Protected WithEvents pnlProductInfo As System.Web.UI.WebControls.Panel
Protected WithEvents lblModuleName As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleDescription As System.Web.UI.WebControls.Label
Protected WithEvents pnlModuleInfo As System.Web.UI.WebControls.Panel
Protected WithEvents pnlAll As System.Web.UI.WebControls.Panel
Protected WithEvents chkIsPublic As System.Web.UI.WebControls.CheckBox
Protected WithEvents pnlCellInfo As System.Web.UI.WebControls.Panel
Protected WithEvents lblCellID As System.Web.UI.WebControls.Label
Protected WithEvents lblCellName As System.Web.UI.WebControls.Label
Protected WithEvents lblCellUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblCellDescription As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleID As System.Web.UI.WebControls.Label
Protected WithEvents Button4 As System.Web.UI.WebControls.Button
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub
#End Region
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'由于业务逻辑层的部分功能还未完称,所以所有的功能暂时是直接调数据操纵层的对象来完成的。
'现在只是完成功能,等逻辑层的功能完善后,重写功能的实现部分!!!!!!!!!!!
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'在此处放置初始化页的用户代码
If Not IsPostBack Then
Call ShowTree()
Call ShowPanel("")
End If
'实现TreeView展开不提交,点击才提交
'------------------------------------------------------
Dim strTreeName As String = "TreeView1"
Dim strRef As String = Page.GetPostBackEventReference(TreeView1)
Dim strScript As String = "<script language='JavaScript'> " & vbCrLf _
& "<!-- " & vbCrLf _
& " function initTree() { " & vbCrLf _
& " " & strTreeName & ".onSelectedIndexChange = function() { " & vbCrLf _
& " if (event.oldTreeNodeIndex != event.newTreeNodeIndex) " & vbCrLf _
& " this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex); " & vbCrLf _
& " window.setTimeout('" & strRef.Replace("'", "\'") & "', 0, 'JavaScript'); " & vbCrLf _
& " } " & vbCrLf _
& " } " & vbCrLf _
& "// --> " & vbCrLf _
& "</script>"
Page.RegisterClientScriptBlock("InitTree", strScript)
'-------------------------------------------------------
End Sub
后面的太长了,不贴了,都是些操纵页面的代码。
同一个页面:Test 本来我运行的结果是错误的,但别人运行(在别人的机器上用别人的权限登陆运行是正确的,在我的机器上用别人的权限登陆运行结果是错误的!)的结果是正确的。但别人点了“获取最新版本“后在运行,结果就是错误的了!(所有的页面都不能运行!)
这是为什么???????
#12
>>>>但别人运行(在别人的机器上用别人的权限登陆运行是正确的,在我的机>>>>器上用别人的权限登陆运行结果是错误的!)的结果是正确的
try to retrieve the old code to make sure it still works and then compare the old code and new code in VSS or with windiff
try to retrieve the old code to make sure it still works and then compare the old code and new code in VSS or with windiff
#13
“try to retrieve the old code”
是不是指从“历史记录”中选择以前的记录?
刚刚我做过了,用的是以前的记录(肯定能运行的并有差别的),但运行后错误不变!
咋办?
是不是指从“历史记录”中选择以前的记录?
刚刚我做过了,用的是以前的记录(肯定能运行的并有差别的),但运行后错误不变!
咋办?
#14
不知道这个有没有什么帮助。
显示详细的编译器输出:
C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3705\vbc.exe" /t:library /utf8output /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\90xwzwcf.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\311b73c4\00a34633_7ac7c201\pantoschool.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\e2e80f39\0027bdf9_33cfc201\pantoschool.jx.jbsz.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\7489f11e\00a029f6_33cfc201\pantoschool.common.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\b74a5790\0054eefa_33cfc201\pantoschool.web.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\7beb2a13\00fa8bf8_33cfc201\pantoschool.xt.accounts.dll" /R:"c:\winnt\assembly\gac\microsoft.web.ui.webcontrols\1.0.2.226__31bf3856ad364e35\microsoft.web.ui.webcontrols.dll" /R:"c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.dll" /D:DEBUG=1 /debug+ /win32resource:"c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.res" "c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb"
Microsoft (R) Visual Basic .NET 编译器版本 7.00.9466
用于 Microsoft (R) .NET 框架版本 1.00.3705
版权所有 (C) Microsoft Corporation 1987-2001。保留所有权利。
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(35) : error BC30560: “Test”在命名空间“PantoSchool”中不明确。
Inherits PantoSchool.Test
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(78) : error BC30456: “Server”不是“ASP.Test_aspx”的成员。
Me.Server.ScriptTimeout = 30000000
~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(81) : error BC30284: property“SupportAutoEvents”不能声明为“Overrides”,因为它不重写基 class 中的 property。
Protected Overrides ReadOnly Property SupportAutoEvents As Boolean
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(89) : error BC30456: “Context”不是“ASP.Test_aspx”的成员。
Return CType(Me.Context.ApplicationInstance,ASP.Global_asax)
~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(93) : error BC30284: property“TemplateSourceDirectory”不能声明为“Overrides”,因为它不重写基 class 中的 property。
Public Overrides ReadOnly Property TemplateSourceDirectory As String
~~~~~~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(106) : error BC30456: “btnAddModule”不是“ASP.Test_aspx”的成员。
Me.btnAddModule = __ctrl
~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(127) : error BC30456: “btnModifyModule”不是“ASP.Test_aspx”的成员。
Me.btnModifyModule = __ctrl
~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(148) : error BC30456: “btnDeleteModule”不是“ASP.Test_aspx”的成员。
Me.btnDeleteModule = __ctrl
~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(169) : error BC30456: “Button4”不是“ASP.Test_aspx”的成员。
Me.Button4 = __ctrl
~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(245) : error BC30456: “TreeView1”不是“ASP.Test_aspx”的成员。
Me.TreeView1 = __ctrl
~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(302) : error BC30456: “lblProductID”不是“ASP.Test_aspx”的成员。
Me.lblProductID = __ctrl
~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(318) : error BC30456: “lblProductName”不是“ASP.Test_aspx”的成员。
Me.lblProductName = __ctrl
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(334) : error BC30456: “lblProductUrl”不是“ASP.Test_aspx”的成员。
Me.lblProductUrl = __ctrl
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(350) : error BC30456: “lblProductDescription”不是“ASP.Test_aspx”的成员。
Me.lblProductDescription = __ctrl
~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(366) : error BC30456: “pnlProductInfo”不是“ASP.Test_aspx”的成员。
Me.pnlProductInfo = __ctrl
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(462) : error BC30456: “lblModuleID”不是“ASP.Test_aspx”的成员。
Me.lblModuleID = __ctrl
~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(478) : error BC30456: “lblModuleName”不是“ASP.Test_aspx”的成员。
Me.lblModuleName = __ctrl
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(494) : error BC30456: “lblModuleUrl”不是“ASP.Test_aspx”的成员。
Me.lblModuleUrl = __ctrl
~~~~~~~~~~~~~~~
显示详细的编译器输出:
C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3705\vbc.exe" /t:library /utf8output /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\90xwzwcf.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\311b73c4\00a34633_7ac7c201\pantoschool.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\e2e80f39\0027bdf9_33cfc201\pantoschool.jx.jbsz.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\7489f11e\00a029f6_33cfc201\pantoschool.common.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\b74a5790\0054eefa_33cfc201\pantoschool.web.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\7beb2a13\00fa8bf8_33cfc201\pantoschool.xt.accounts.dll" /R:"c:\winnt\assembly\gac\microsoft.web.ui.webcontrols\1.0.2.226__31bf3856ad364e35\microsoft.web.ui.webcontrols.dll" /R:"c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.dll" /D:DEBUG=1 /debug+ /win32resource:"c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.res" "c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb"
Microsoft (R) Visual Basic .NET 编译器版本 7.00.9466
用于 Microsoft (R) .NET 框架版本 1.00.3705
版权所有 (C) Microsoft Corporation 1987-2001。保留所有权利。
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(35) : error BC30560: “Test”在命名空间“PantoSchool”中不明确。
Inherits PantoSchool.Test
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(78) : error BC30456: “Server”不是“ASP.Test_aspx”的成员。
Me.Server.ScriptTimeout = 30000000
~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(81) : error BC30284: property“SupportAutoEvents”不能声明为“Overrides”,因为它不重写基 class 中的 property。
Protected Overrides ReadOnly Property SupportAutoEvents As Boolean
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(89) : error BC30456: “Context”不是“ASP.Test_aspx”的成员。
Return CType(Me.Context.ApplicationInstance,ASP.Global_asax)
~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(93) : error BC30284: property“TemplateSourceDirectory”不能声明为“Overrides”,因为它不重写基 class 中的 property。
Public Overrides ReadOnly Property TemplateSourceDirectory As String
~~~~~~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(106) : error BC30456: “btnAddModule”不是“ASP.Test_aspx”的成员。
Me.btnAddModule = __ctrl
~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(127) : error BC30456: “btnModifyModule”不是“ASP.Test_aspx”的成员。
Me.btnModifyModule = __ctrl
~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(148) : error BC30456: “btnDeleteModule”不是“ASP.Test_aspx”的成员。
Me.btnDeleteModule = __ctrl
~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(169) : error BC30456: “Button4”不是“ASP.Test_aspx”的成员。
Me.Button4 = __ctrl
~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(245) : error BC30456: “TreeView1”不是“ASP.Test_aspx”的成员。
Me.TreeView1 = __ctrl
~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(302) : error BC30456: “lblProductID”不是“ASP.Test_aspx”的成员。
Me.lblProductID = __ctrl
~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(318) : error BC30456: “lblProductName”不是“ASP.Test_aspx”的成员。
Me.lblProductName = __ctrl
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(334) : error BC30456: “lblProductUrl”不是“ASP.Test_aspx”的成员。
Me.lblProductUrl = __ctrl
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(350) : error BC30456: “lblProductDescription”不是“ASP.Test_aspx”的成员。
Me.lblProductDescription = __ctrl
~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(366) : error BC30456: “pnlProductInfo”不是“ASP.Test_aspx”的成员。
Me.pnlProductInfo = __ctrl
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(462) : error BC30456: “lblModuleID”不是“ASP.Test_aspx”的成员。
Me.lblModuleID = __ctrl
~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(478) : error BC30456: “lblModuleName”不是“ASP.Test_aspx”的成员。
Me.lblModuleName = __ctrl
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(494) : error BC30456: “lblModuleUrl”不是“ASP.Test_aspx”的成员。
Me.lblModuleUrl = __ctrl
~~~~~~~~~~~~~~~
#15
还有很多,系统不让我贴了。
#16
do you have
Namespace PantoSchool
Public Class Test
........
Namespace PantoSchool
Public Class Test
........
#17
没有,有什么关系吗??
#18
我加了命名空间以后就好了。哈哈哈哈哈哈哈哈
谢谢谢谢谢谢。
不过为什么呢??????
谢谢谢谢谢谢。
不过为什么呢??????
#19
结贴了,如果谁知道为什么会出现这个错误的话,请用短消息通知我,谢谢!
#20
#1
are you using keywords as your class name or namespace name? can you show some of your code in Test.aspx.vb?
#2
你把微软的WebControls安装程序在安装一遍试试!
#3
我运行另一个页面也发生了这个错(在第一行报告编译错误)
以下是该页面的.vb文件代码。
Imports PantoSchool.XT.Accounts.Business
Imports System.Data
Imports System.Data.SqlClient
Imports PantoSchool.Common
Public Class Product_Module_modify
Inherits System.Web.UI.Page
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
Protected WithEvents DropDownList1 As System.Web.UI.WebControls.DropDownList
Protected WithEvents TextBox2 As System.Web.UI.WebControls.TextBox
Protected WithEvents TextBox3 As System.Web.UI.WebControls.TextBox
Protected WithEvents ListBox1 As System.Web.UI.WebControls.ListBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents ListBox2 As System.Web.UI.WebControls.ListBox
Protected WithEvents Button2 As System.Web.UI.WebControls.Button
Protected WithEvents Button3 As System.Web.UI.WebControls.Button
Protected WithEvents Button4 As System.Web.UI.WebControls.Button
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'在此处放置初始化页的用户代码
If Not IsPostBack Then
'取得所有的无主单元添加到ListBox1
Dim QueryString As String
QueryString = "select * from XT_Cell where ModuleID=null"
Dim strConn As String
strConn = "server=dvserver; User ID=sa;Password=;database=PantoSchoolXfz"
Dim objCmd As New SqlCommand(strConn)
Dim objReader As SqlDataReader
objReader = objCmd.ExecuteReader
Do While objReader.Read
ListBox1.Items.Add(objReader.Item("ModuleName"))
Loop
End If
End Sub
End Class
以下是该页面的.vb文件代码。
Imports PantoSchool.XT.Accounts.Business
Imports System.Data
Imports System.Data.SqlClient
Imports PantoSchool.Common
Public Class Product_Module_modify
Inherits System.Web.UI.Page
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
Protected WithEvents DropDownList1 As System.Web.UI.WebControls.DropDownList
Protected WithEvents TextBox2 As System.Web.UI.WebControls.TextBox
Protected WithEvents TextBox3 As System.Web.UI.WebControls.TextBox
Protected WithEvents ListBox1 As System.Web.UI.WebControls.ListBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents ListBox2 As System.Web.UI.WebControls.ListBox
Protected WithEvents Button2 As System.Web.UI.WebControls.Button
Protected WithEvents Button3 As System.Web.UI.WebControls.Button
Protected WithEvents Button4 As System.Web.UI.WebControls.Button
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'在此处放置初始化页的用户代码
If Not IsPostBack Then
'取得所有的无主单元添加到ListBox1
Dim QueryString As String
QueryString = "select * from XT_Cell where ModuleID=null"
Dim strConn As String
strConn = "server=dvserver; User ID=sa;Password=;database=PantoSchoolXfz"
Dim objCmd As New SqlCommand(strConn)
Dim objReader As SqlDataReader
objReader = objCmd.ExecuteReader
Do While objReader.Read
ListBox1.Items.Add(objReader.Item("ModuleName"))
Loop
End If
End Sub
End Class
#4
请帮我看看,谢谢!
#5
我刚刚发现一个现象:
我做的这个项目是用VSS联机开发的,同样一个页面我运行时有错误,而别人运行时却没有错误。这是为什么?
而我在本地开发的项目能正常的运行!这又是为什么?
我做的这个项目是用VSS联机开发的,同样一个页面我运行时有错误,而别人运行时却没有错误。这是为什么?
而我在本地开发的项目能正常的运行!这又是为什么?
#6
inside the C# compiler:
if (User.Identity.Name == "jc19281(高头)")
throw new Exception("BC30456: CreateResourceBasedLiteralControl不是ASP.Test_aspx的成员");
:-)
if (User.Identity.Name == "jc19281(高头)")
throw new Exception("BC30456: CreateResourceBasedLiteralControl不是ASP.Test_aspx的成员");
:-)
#7
to saucer:
我没看懂阿!!
英文不好!
我没看懂阿!!
英文不好!
#8
到底该怎样解决??
#9
阿~~~~~~~~~~~~~
我真的要崩溃了阿。现在用别人的权限登陆运行也发生这个错误了!我只是点了“获取最新版本阿”!!!!
思归大侠,你在不在阿??????????
救我啊!!!!!!!!!!!
我真的要崩溃了阿。现在用别人的权限登陆运行也发生这个错误了!我只是点了“获取最新版本阿”!!!!
思归大侠,你在不在阿??????????
救我啊!!!!!!!!!!!
#10
according to
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Test.aspx.vb" Inherits="PantoSchool.Test"%>
your Page class is "PantoSchool.Test", but the above code says, the class is "Product_Module_modify", what's going on?
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Test.aspx.vb" Inherits="PantoSchool.Test"%>
your Page class is "PantoSchool.Test", but the above code says, the class is "Product_Module_modify", what's going on?
#11
抱歉我贴错了,<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Test.aspx.vb" Inherits="PantoSchool.Test"%>
对应的Page class 是Test
Imports PantoSchool.XT.Accounts.Business
Imports PantoSchool.XT.Accounts.DataAccess
Imports Microsoft.Web.UI.WebControls
Public Class Test
Inherits Web.PageBase
Protected WithEvents TreeView1 As Microsoft.Web.UI.WebControls.TreeView
Protected WithEvents btnAddModule As System.Web.UI.WebControls.Button
Protected WithEvents btnModifyModule As System.Web.UI.WebControls.Button
Protected WithEvents btnDeleteModule As System.Web.UI.WebControls.Button
Protected WithEvents lblProductID As System.Web.UI.WebControls.Label
Protected WithEvents lblProductName As System.Web.UI.WebControls.Label
Protected WithEvents lblProductUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblProductDescription As System.Web.UI.WebControls.Label
Protected WithEvents pnlProductInfo As System.Web.UI.WebControls.Panel
Protected WithEvents lblModuleName As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleDescription As System.Web.UI.WebControls.Label
Protected WithEvents pnlModuleInfo As System.Web.UI.WebControls.Panel
Protected WithEvents pnlAll As System.Web.UI.WebControls.Panel
Protected WithEvents chkIsPublic As System.Web.UI.WebControls.CheckBox
Protected WithEvents pnlCellInfo As System.Web.UI.WebControls.Panel
Protected WithEvents lblCellID As System.Web.UI.WebControls.Label
Protected WithEvents lblCellName As System.Web.UI.WebControls.Label
Protected WithEvents lblCellUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblCellDescription As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleID As System.Web.UI.WebControls.Label
Protected WithEvents Button4 As System.Web.UI.WebControls.Button
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub
#End Region
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'由于业务逻辑层的部分功能还未完称,所以所有的功能暂时是直接调数据操纵层的对象来完成的。
'现在只是完成功能,等逻辑层的功能完善后,重写功能的实现部分!!!!!!!!!!!
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'在此处放置初始化页的用户代码
If Not IsPostBack Then
Call ShowTree()
Call ShowPanel("")
End If
'实现TreeView展开不提交,点击才提交
'------------------------------------------------------
Dim strTreeName As String = "TreeView1"
Dim strRef As String = Page.GetPostBackEventReference(TreeView1)
Dim strScript As String = "<script language='JavaScript'> " & vbCrLf _
& "<!-- " & vbCrLf _
& " function initTree() { " & vbCrLf _
& " " & strTreeName & ".onSelectedIndexChange = function() { " & vbCrLf _
& " if (event.oldTreeNodeIndex != event.newTreeNodeIndex) " & vbCrLf _
& " this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex); " & vbCrLf _
& " window.setTimeout('" & strRef.Replace("'", "\'") & "', 0, 'JavaScript'); " & vbCrLf _
& " } " & vbCrLf _
& " } " & vbCrLf _
& "// --> " & vbCrLf _
& "</script>"
Page.RegisterClientScriptBlock("InitTree", strScript)
'-------------------------------------------------------
End Sub
后面的太长了,不贴了,都是些操纵页面的代码。
同一个页面:Test 本来我运行的结果是错误的,但别人运行(在别人的机器上用别人的权限登陆运行是正确的,在我的机器上用别人的权限登陆运行结果是错误的!)的结果是正确的。但别人点了“获取最新版本“后在运行,结果就是错误的了!(所有的页面都不能运行!)
这是为什么???????
对应的Page class 是Test
Imports PantoSchool.XT.Accounts.Business
Imports PantoSchool.XT.Accounts.DataAccess
Imports Microsoft.Web.UI.WebControls
Public Class Test
Inherits Web.PageBase
Protected WithEvents TreeView1 As Microsoft.Web.UI.WebControls.TreeView
Protected WithEvents btnAddModule As System.Web.UI.WebControls.Button
Protected WithEvents btnModifyModule As System.Web.UI.WebControls.Button
Protected WithEvents btnDeleteModule As System.Web.UI.WebControls.Button
Protected WithEvents lblProductID As System.Web.UI.WebControls.Label
Protected WithEvents lblProductName As System.Web.UI.WebControls.Label
Protected WithEvents lblProductUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblProductDescription As System.Web.UI.WebControls.Label
Protected WithEvents pnlProductInfo As System.Web.UI.WebControls.Panel
Protected WithEvents lblModuleName As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleDescription As System.Web.UI.WebControls.Label
Protected WithEvents pnlModuleInfo As System.Web.UI.WebControls.Panel
Protected WithEvents pnlAll As System.Web.UI.WebControls.Panel
Protected WithEvents chkIsPublic As System.Web.UI.WebControls.CheckBox
Protected WithEvents pnlCellInfo As System.Web.UI.WebControls.Panel
Protected WithEvents lblCellID As System.Web.UI.WebControls.Label
Protected WithEvents lblCellName As System.Web.UI.WebControls.Label
Protected WithEvents lblCellUrl As System.Web.UI.WebControls.Label
Protected WithEvents lblCellDescription As System.Web.UI.WebControls.Label
Protected WithEvents lblModuleID As System.Web.UI.WebControls.Label
Protected WithEvents Button4 As System.Web.UI.WebControls.Button
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub
#End Region
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'由于业务逻辑层的部分功能还未完称,所以所有的功能暂时是直接调数据操纵层的对象来完成的。
'现在只是完成功能,等逻辑层的功能完善后,重写功能的实现部分!!!!!!!!!!!
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'在此处放置初始化页的用户代码
If Not IsPostBack Then
Call ShowTree()
Call ShowPanel("")
End If
'实现TreeView展开不提交,点击才提交
'------------------------------------------------------
Dim strTreeName As String = "TreeView1"
Dim strRef As String = Page.GetPostBackEventReference(TreeView1)
Dim strScript As String = "<script language='JavaScript'> " & vbCrLf _
& "<!-- " & vbCrLf _
& " function initTree() { " & vbCrLf _
& " " & strTreeName & ".onSelectedIndexChange = function() { " & vbCrLf _
& " if (event.oldTreeNodeIndex != event.newTreeNodeIndex) " & vbCrLf _
& " this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex); " & vbCrLf _
& " window.setTimeout('" & strRef.Replace("'", "\'") & "', 0, 'JavaScript'); " & vbCrLf _
& " } " & vbCrLf _
& " } " & vbCrLf _
& "// --> " & vbCrLf _
& "</script>"
Page.RegisterClientScriptBlock("InitTree", strScript)
'-------------------------------------------------------
End Sub
后面的太长了,不贴了,都是些操纵页面的代码。
同一个页面:Test 本来我运行的结果是错误的,但别人运行(在别人的机器上用别人的权限登陆运行是正确的,在我的机器上用别人的权限登陆运行结果是错误的!)的结果是正确的。但别人点了“获取最新版本“后在运行,结果就是错误的了!(所有的页面都不能运行!)
这是为什么???????
#12
>>>>但别人运行(在别人的机器上用别人的权限登陆运行是正确的,在我的机>>>>器上用别人的权限登陆运行结果是错误的!)的结果是正确的
try to retrieve the old code to make sure it still works and then compare the old code and new code in VSS or with windiff
try to retrieve the old code to make sure it still works and then compare the old code and new code in VSS or with windiff
#13
“try to retrieve the old code”
是不是指从“历史记录”中选择以前的记录?
刚刚我做过了,用的是以前的记录(肯定能运行的并有差别的),但运行后错误不变!
咋办?
是不是指从“历史记录”中选择以前的记录?
刚刚我做过了,用的是以前的记录(肯定能运行的并有差别的),但运行后错误不变!
咋办?
#14
不知道这个有没有什么帮助。
显示详细的编译器输出:
C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3705\vbc.exe" /t:library /utf8output /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\90xwzwcf.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\311b73c4\00a34633_7ac7c201\pantoschool.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\e2e80f39\0027bdf9_33cfc201\pantoschool.jx.jbsz.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\7489f11e\00a029f6_33cfc201\pantoschool.common.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\b74a5790\0054eefa_33cfc201\pantoschool.web.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\7beb2a13\00fa8bf8_33cfc201\pantoschool.xt.accounts.dll" /R:"c:\winnt\assembly\gac\microsoft.web.ui.webcontrols\1.0.2.226__31bf3856ad364e35\microsoft.web.ui.webcontrols.dll" /R:"c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.dll" /D:DEBUG=1 /debug+ /win32resource:"c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.res" "c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb"
Microsoft (R) Visual Basic .NET 编译器版本 7.00.9466
用于 Microsoft (R) .NET 框架版本 1.00.3705
版权所有 (C) Microsoft Corporation 1987-2001。保留所有权利。
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(35) : error BC30560: “Test”在命名空间“PantoSchool”中不明确。
Inherits PantoSchool.Test
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(78) : error BC30456: “Server”不是“ASP.Test_aspx”的成员。
Me.Server.ScriptTimeout = 30000000
~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(81) : error BC30284: property“SupportAutoEvents”不能声明为“Overrides”,因为它不重写基 class 中的 property。
Protected Overrides ReadOnly Property SupportAutoEvents As Boolean
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(89) : error BC30456: “Context”不是“ASP.Test_aspx”的成员。
Return CType(Me.Context.ApplicationInstance,ASP.Global_asax)
~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(93) : error BC30284: property“TemplateSourceDirectory”不能声明为“Overrides”,因为它不重写基 class 中的 property。
Public Overrides ReadOnly Property TemplateSourceDirectory As String
~~~~~~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(106) : error BC30456: “btnAddModule”不是“ASP.Test_aspx”的成员。
Me.btnAddModule = __ctrl
~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(127) : error BC30456: “btnModifyModule”不是“ASP.Test_aspx”的成员。
Me.btnModifyModule = __ctrl
~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(148) : error BC30456: “btnDeleteModule”不是“ASP.Test_aspx”的成员。
Me.btnDeleteModule = __ctrl
~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(169) : error BC30456: “Button4”不是“ASP.Test_aspx”的成员。
Me.Button4 = __ctrl
~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(245) : error BC30456: “TreeView1”不是“ASP.Test_aspx”的成员。
Me.TreeView1 = __ctrl
~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(302) : error BC30456: “lblProductID”不是“ASP.Test_aspx”的成员。
Me.lblProductID = __ctrl
~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(318) : error BC30456: “lblProductName”不是“ASP.Test_aspx”的成员。
Me.lblProductName = __ctrl
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(334) : error BC30456: “lblProductUrl”不是“ASP.Test_aspx”的成员。
Me.lblProductUrl = __ctrl
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(350) : error BC30456: “lblProductDescription”不是“ASP.Test_aspx”的成员。
Me.lblProductDescription = __ctrl
~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(366) : error BC30456: “pnlProductInfo”不是“ASP.Test_aspx”的成员。
Me.pnlProductInfo = __ctrl
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(462) : error BC30456: “lblModuleID”不是“ASP.Test_aspx”的成员。
Me.lblModuleID = __ctrl
~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(478) : error BC30456: “lblModuleName”不是“ASP.Test_aspx”的成员。
Me.lblModuleName = __ctrl
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(494) : error BC30456: “lblModuleUrl”不是“ASP.Test_aspx”的成员。
Me.lblModuleUrl = __ctrl
~~~~~~~~~~~~~~~
显示详细的编译器输出:
C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3705\vbc.exe" /t:library /utf8output /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\90xwzwcf.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\311b73c4\00a34633_7ac7c201\pantoschool.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\e2e80f39\0027bdf9_33cfc201\pantoschool.jx.jbsz.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\7489f11e\00a029f6_33cfc201\pantoschool.common.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\b74a5790\0054eefa_33cfc201\pantoschool.web.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary asp.net files\pantoschool\a1671d9e\a398b1b9\assembly\dl\7beb2a13\00fa8bf8_33cfc201\pantoschool.xt.accounts.dll" /R:"c:\winnt\assembly\gac\microsoft.web.ui.webcontrols\1.0.2.226__31bf3856ad364e35\microsoft.web.ui.webcontrols.dll" /R:"c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.dll" /D:DEBUG=1 /debug+ /win32resource:"c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.res" "c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb"
Microsoft (R) Visual Basic .NET 编译器版本 7.00.9466
用于 Microsoft (R) .NET 框架版本 1.00.3705
版权所有 (C) Microsoft Corporation 1987-2001。保留所有权利。
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(35) : error BC30560: “Test”在命名空间“PantoSchool”中不明确。
Inherits PantoSchool.Test
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(78) : error BC30456: “Server”不是“ASP.Test_aspx”的成员。
Me.Server.ScriptTimeout = 30000000
~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(81) : error BC30284: property“SupportAutoEvents”不能声明为“Overrides”,因为它不重写基 class 中的 property。
Protected Overrides ReadOnly Property SupportAutoEvents As Boolean
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(89) : error BC30456: “Context”不是“ASP.Test_aspx”的成员。
Return CType(Me.Context.ApplicationInstance,ASP.Global_asax)
~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(93) : error BC30284: property“TemplateSourceDirectory”不能声明为“Overrides”,因为它不重写基 class 中的 property。
Public Overrides ReadOnly Property TemplateSourceDirectory As String
~~~~~~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(106) : error BC30456: “btnAddModule”不是“ASP.Test_aspx”的成员。
Me.btnAddModule = __ctrl
~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(127) : error BC30456: “btnModifyModule”不是“ASP.Test_aspx”的成员。
Me.btnModifyModule = __ctrl
~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(148) : error BC30456: “btnDeleteModule”不是“ASP.Test_aspx”的成员。
Me.btnDeleteModule = __ctrl
~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(169) : error BC30456: “Button4”不是“ASP.Test_aspx”的成员。
Me.Button4 = __ctrl
~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(245) : error BC30456: “TreeView1”不是“ASP.Test_aspx”的成员。
Me.TreeView1 = __ctrl
~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(302) : error BC30456: “lblProductID”不是“ASP.Test_aspx”的成员。
Me.lblProductID = __ctrl
~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(318) : error BC30456: “lblProductName”不是“ASP.Test_aspx”的成员。
Me.lblProductName = __ctrl
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(334) : error BC30456: “lblProductUrl”不是“ASP.Test_aspx”的成员。
Me.lblProductUrl = __ctrl
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(350) : error BC30456: “lblProductDescription”不是“ASP.Test_aspx”的成员。
Me.lblProductDescription = __ctrl
~~~~~~~~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(366) : error BC30456: “pnlProductInfo”不是“ASP.Test_aspx”的成员。
Me.pnlProductInfo = __ctrl
~~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(462) : error BC30456: “lblModuleID”不是“ASP.Test_aspx”的成员。
Me.lblModuleID = __ctrl
~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(478) : error BC30456: “lblModuleName”不是“ASP.Test_aspx”的成员。
Me.lblModuleName = __ctrl
~~~~~~~~~~~~~~~~
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\pantoschool\a1671d9e\a398b1b9\ikczty0s.0.vb(494) : error BC30456: “lblModuleUrl”不是“ASP.Test_aspx”的成员。
Me.lblModuleUrl = __ctrl
~~~~~~~~~~~~~~~
#15
还有很多,系统不让我贴了。
#16
do you have
Namespace PantoSchool
Public Class Test
........
Namespace PantoSchool
Public Class Test
........
#17
没有,有什么关系吗??
#18
我加了命名空间以后就好了。哈哈哈哈哈哈哈哈
谢谢谢谢谢谢。
不过为什么呢??????
谢谢谢谢谢谢。
不过为什么呢??????
#19
结贴了,如果谁知道为什么会出现这个错误的话,请用短消息通知我,谢谢!