HOME > .NET Framework > Forum > ปฏิทินมัน Error ครับ รบกวนหน่อยครับ Server Error in '/webin' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request.
ปฏิทินมัน Error ครับ รบกวนหน่อยครับ Server Error in '/webin' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request.
Server Error in '/webin' 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: BC30002: Type 'UsernameTableAdapter' is not defined.
Source Error:
Line 16:
Line 17: Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Line 18: Dim dataset As New UsernameTableAdapter
Line 19: Dim Recordset As Login.UsernameDataTable
Line 20:
C:\WINDOWS\system32> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.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.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.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\2.0.0.0__b77a5c561934e089\System.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webin\cb4985fa\15bbda16\App_Web_xp262qes.dll" /debug- /win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webin\cb4985fa\15bbda16\xp262qes.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webin\cb4985fa\15bbda16\App_Web_xp262qes.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webin\cb4985fa\15bbda16\App_Web_xp262qes.1.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webin\cb4985fa\15bbda16\App_Web_xp262qes.2.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webin\cb4985fa\15bbda16\App_Web_xp262qes.3.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webin\cb4985fa\15bbda16\App_Web_xp262qes.4.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webin\cb4985fa\15bbda16\App_Web_xp262qes.5.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webin\cb4985fa\15bbda16\App_Web_xp262qes.6.vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.3053
for Microsoft (R) .NET Framework version 2.0.50727.3053
Copyright (c) Microsoft Corporation. All rights reserved.
D:\webin\calendar\C_Add.aspx.vb(3) : warning BC40056: Namespace or type specified in the Imports 'CheckrowTableAdapters' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Imports CheckrowTableAdapters
~~~~~~~~~~~~~~~~~~~~~
D:\webin\calendar\C_Add.aspx.vb(22) : error BC30002: Type 'TopicTableAdapter' is not defined.
Dim dataset As New TopicTableAdapter
~~~~~~~~~~~~~~~~~
D:\webin\calendar\C_Add.aspx.vb(23) : error BC30002: Type 'Checkrow.TopicDataTable' is not defined.
Dim recordset As Checkrow.TopicDataTable
~~~~~~~~~~~~~~~~~~~~~~~
D:\webin\calendar\C_Add.aspx.vb(219) : error BC30002: Type 'TopicTableAdapter' is not defined.
Dim dataset As New TopicTableAdapter
~~~~~~~~~~~~~~~~~
D:\webin\calendar\C_Add.aspx.vb(220) : error BC30002: Type 'Checkrow.TopicDataTable' is not defined.
Dim recordset As Checkrow.TopicDataTable
~~~~~~~~~~~~~~~~~~~~~~~
D:\webin\calendar\C_Display.aspx.vb(1) : warning BC40056: Namespace or type specified in the Imports 'LoginTableAdapters' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Imports LoginTableAdapters
~~~~~~~~~~~~~~~~~~
D:\webin\calendar\C_Display.aspx.vb(18) : error BC30002: Type 'UsernameTableAdapter' is not defined.
Dim dataset As New UsernameTableAdapter
~~~~~~~~~~~~~~~~~~~~
D:\webin\calendar\C_Display.aspx.vb(19) : error BC30002: Type 'Login.UsernameDataTable' is not defined.
Dim Recordset As Login.UsernameDataTable
~~~~~~~~~~~~~~~~~~~~~~~
D:\webin\calendar\C_Display.aspx.vb(23) : error BC30002: Type 'Login.UsernameRow' is not defined.
For Each myrow As Login.UsernameRow In Recordset
~~~~~~~~~~~~~~~~~
อันนี้ โค๊ดจากไฟล์เต็มๆ
Imports LoginTableAdapters
Partial Class C_Display
Inherits System.Web.UI.Page
Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
Session("DateDo") = Calendar1.SelectedDate.Date
'AccessDataSource1.SelectParameters("DateDo").DefaultValue = Calendar1.SelectedDate.Date
GridView1.DataBind()
End Sub
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
Session("TopicID") = GridView1.SelectedValue
Server.Transfer("C_Update.aspx")
End Sub
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim dataset As New UsernameTableAdapter
Dim Recordset As Login.UsernameDataTable
Recordset = dataset.GetData(TextBox3.Text, TextBox4.Text)
If Recordset.Count > 0 Then
For Each myrow As Login.UsernameRow In Recordset
Session.Add("UsrLEVEL", myrow.Authorize.ToString)
Next
Else
Session.Add("UsrLEVEL", "1")
End If
If (Session("UsrLEVEL") = "3") Or (Session("UsrLEVEL") = "2") Then
Button4.Visible = True
Else
Button4.Visible = False
End If
If (Session("UsrLEVEL") = "3") Then
Panel3.Visible = True
Else
Panel3.Visible = False
End If
End Sub
Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click
Server.Transfer("C_Add.aspx")
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Server.Transfer("C_DisplayB.aspx")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If (Session("UsrLEVEL") = "3") Or (Session("UsrLEVEL") = "2") Then
Button4.Visible = True
End If
If (Session("UsrLEVEL") = "3") Then
Panel3.Visible = True
Else
Panel3.Visible = False
End If
End Sub
End Class