HOW DO I CORRECT THIS ERROR , SEE DETAIL OF THE ERROR BELOW
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: BC30002: Type 'ClassifiedsHttpApplication' is not defined.
Source Error:
Line 13: End If Line 14: Line 15: Dim cha As New ClassifiedsHttpApplication() Line 16: cha.Application_Start(sender, e) Line 17:
<div class="expandable">Compiler Warning Messages:</div> <div id="warningDiv" style="display: none;">
Warning: BC40056: Namespace or type specified in the Imports 'AspNet.StarterKits.Classifieds.Web' 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. Source Error:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_global.asax.4heu_iha.0.vb
Line 13: Option Explicit On
Line 14:
Line 15: Imports AspNet.StarterKits.Classifieds.Web
Line 16: Imports Microsoft.VisualBasic
Line 17: Imports System
C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.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" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_Code.hxajjczl.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.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.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.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.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_global.asax.4heu_iha.dll" /D:DEBUG=1 /debug+ /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\root\39dc17f7\898d74d3\App_global.asax.4heu_iha.0.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_global.asax.4heu_iha.1.vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.4016
for Microsoft (R) .NET Framework version 2.0.50727.4206
Copyright (c) Microsoft Corporation. All rights reserved.
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_global.asax.4heu_iha.0.vb(15) : warning BC40056: Namespace or type specified in the Imports 'AspNet.StarterKits.Classifieds.Web' 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 AspNet.StarterKits.Classifieds.Web
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:\web\classified1\htdocs\global.asax(15) : error BC30002: Type 'ClassifiedsHttpApplication' is not defined.
Dim cha As New ClassifiedsHttpApplication()
~~~~~~~~~~~~~~~~~~~~~~~~~~
Line 1: #ExternalChecksum("E:\web\classified1\htdocs\global.asax","{406ea660-64cf-4c82-b6f0-42d48172a799}","F6370A42B1B94C766F5CE4367643F3A2")
Line 2: '------------------------------------------------------------------------------
Line 3: ' <auto-generated>
Line 4: ' This code was generated by a tool.
Line 5: ' Runtime Version:2.0.50727.4206
Line 6: '
Line 7: ' Changes to this file may cause incorrect behavior and will be lost if
Line 8: ' the code is regenerated.
Line 9: ' </auto-generated>
Line 10: '------------------------------------------------------------------------------
Line 11:
Line 12: Option Strict Off
Line 13: Option Explicit On
Line 14:
Line 15: Imports AspNet.StarterKits.Classifieds.Web
Line 16: Imports Microsoft.VisualBasic
Line 17: Imports System
Line 18: Imports System.Collections
Line 19: Imports System.Collections.Specialized
Line 20: Imports System.Configuration
Line 21: Imports System.Text
Line 22: Imports System.Text.RegularExpressions
Line 23: Imports System.Web
Line 24: Imports System.Web.Caching
Line 25: Imports System.Web.Profile
Line 26: Imports System.Web.Security
Line 27: Imports System.Web.SessionState
Line 28: Imports System.Web.UI
Line 29: Imports System.Web.UI.HtmlControls
Line 30: Imports System.Web.UI.WebControls
Line 31: Imports System.Web.UI.WebControls.WebParts
Line 32:
Line 33: Namespace ASP
Line 34:
Line 35: <System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _
Line 36: Public Class global_asax
Line 37: Inherits Global.System.Web.HttpApplication
Line 38:
Line 39: Private Shared __initialized As Boolean
Line 40:
Line 41:
Line 42: #ExternalSource("E:\web\classified1\htdocs\global.asax",4)
Line 43:
Line 44:
Line 45: Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Line 46:
Line 47: If (Not Roles.RoleExists("Administrators")) Then
Line 48: Roles.CreateRole("Administrators")
Line 49: End If
Line 50: If (Not Roles.RoleExists("Guests")) Then
Line 51: Roles.CreateRole("Guests")
Line 52: End If
Line 53:
Line 54: Dim cha As New ClassifiedsHttpApplication()
Line 55: cha.Application_Start(sender, e)
Line 56:
Line 57: End Sub
Line 58:
Line 59:
Line 60:
Line 61:
Line 62: #End ExternalSource
Line 63:
Line 64:
Line 65: <System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Line 66: Public Sub New()
Line 67: MyBase.New
Line 68: If (Global.ASP.global_asax.__initialized = false) Then
Line 69: Global.ASP.global_asax.__initialized = true
Line 70: End If
Line 71: End Sub
Line 72:
Line 73: Protected ReadOnly Property Profile() As ProfileCommon
Line 74: Get
Line 75: Return CType(Me.Context.Profile,ProfileCommon)
Line 76: End Get
Line 77: End Property
Line 78: End Class
Line 79: End Namespace
Line 80:
</div>
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209
In case of namespace just right click on "ClassifiedsHttpApplication" and select resolve. However in case of missing ddl reference you need to add the dll reference first.
Regards,
Ahsan Muhammad Khan
Please mark a post as answered if it solve your problem.
sabalimotu
Member
57 Points
100 Posts
Error message
Jan 09, 2011 06:49 AM|LINK
HOW DO I CORRECT THIS ERROR , SEE DETAIL OF THE ERROR BELOW
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: BC30002: Type 'ClassifiedsHttpApplication' is not defined.
Source Error:
Source File: E:\web\classified1\htdocs\global.asax Line: 15
<div class="expandable">Compiler Warning Messages:</div> <div id="warningDiv" style="display: none;"> Warning: BC40056: Namespace or type specified in the Imports 'AspNet.StarterKits.Classifieds.Web' 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.
Source Error:
</div>
<div class="expandable">Show Detailed Compiler Output:</div> <div id="compilerOutputDiv" style="display: none;">C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.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" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_Code.hxajjczl.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.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.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.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.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_global.asax.4heu_iha.dll" /D:DEBUG=1 /debug+ /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\root\39dc17f7\898d74d3\App_global.asax.4heu_iha.0.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_global.asax.4heu_iha.1.vb" Microsoft (R) Visual Basic Compiler version 8.0.50727.4016 for Microsoft (R) .NET Framework version 2.0.50727.4206 Copyright (c) Microsoft Corporation. All rights reserved. C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_global.asax.4heu_iha.0.vb(15) : warning BC40056: Namespace or type specified in the Imports 'AspNet.StarterKits.Classifieds.Web' 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 AspNet.StarterKits.Classifieds.Web ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ E:\web\classified1\htdocs\global.asax(15) : error BC30002: Type 'ClassifiedsHttpApplication' is not defined. Dim cha As New ClassifiedsHttpApplication() ~~~~~~~~~~~~~~~~~~~~~~~~~~
<div class="expandable">Show Complete Compilation Source:</div> <div id="dynamicCodeDiv" style="display: none;">Line 1: #ExternalChecksum("E:\web\classified1\htdocs\global.asax","{406ea660-64cf-4c82-b6f0-42d48172a799}","F6370A42B1B94C766F5CE4367643F3A2") Line 2: '------------------------------------------------------------------------------ Line 3: ' <auto-generated> Line 4: ' This code was generated by a tool. Line 5: ' Runtime Version:2.0.50727.4206 Line 6: ' Line 7: ' Changes to this file may cause incorrect behavior and will be lost if Line 8: ' the code is regenerated. Line 9: ' </auto-generated> Line 10: '------------------------------------------------------------------------------ Line 11: Line 12: Option Strict Off Line 13: Option Explicit On Line 14: Line 15: Imports AspNet.StarterKits.Classifieds.Web Line 16: Imports Microsoft.VisualBasic Line 17: Imports System Line 18: Imports System.Collections Line 19: Imports System.Collections.Specialized Line 20: Imports System.Configuration Line 21: Imports System.Text Line 22: Imports System.Text.RegularExpressions Line 23: Imports System.Web Line 24: Imports System.Web.Caching Line 25: Imports System.Web.Profile Line 26: Imports System.Web.Security Line 27: Imports System.Web.SessionState Line 28: Imports System.Web.UI Line 29: Imports System.Web.UI.HtmlControls Line 30: Imports System.Web.UI.WebControls Line 31: Imports System.Web.UI.WebControls.WebParts Line 32: Line 33: Namespace ASP Line 34: Line 35: <System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _ Line 36: Public Class global_asax Line 37: Inherits Global.System.Web.HttpApplication Line 38: Line 39: Private Shared __initialized As Boolean Line 40: Line 41: Line 42: #ExternalSource("E:\web\classified1\htdocs\global.asax",4) Line 43: Line 44: Line 45: Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) Line 46: Line 47: If (Not Roles.RoleExists("Administrators")) Then Line 48: Roles.CreateRole("Administrators") Line 49: End If Line 50: If (Not Roles.RoleExists("Guests")) Then Line 51: Roles.CreateRole("Guests") Line 52: End If Line 53: Line 54: Dim cha As New ClassifiedsHttpApplication() Line 55: cha.Application_Start(sender, e) Line 56: Line 57: End Sub Line 58: Line 59: Line 60: Line 61: Line 62: #End ExternalSource Line 63: Line 64: Line 65: <System.Diagnostics.DebuggerNonUserCodeAttribute()> _ Line 66: Public Sub New() Line 67: MyBase.New Line 68: If (Global.ASP.global_asax.__initialized = false) Then Line 69: Global.ASP.global_asax.__initialized = true Line 70: End If Line 71: End Sub Line 72: Line 73: Protected ReadOnly Property Profile() As ProfileCommon Line 74: Get Line 75: Return CType(Me.Context.Profile,ProfileCommon) Line 76: End Get Line 77: End Property Line 78: End Class Line 79: End Namespace Line 80:Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209
ahsanmk
Participant
1228 Points
232 Posts
Re: Error message
Jan 09, 2011 07:44 AM|LINK
Hi,
You are missing a namespace or dll reference.
In case of namespace just right click on "ClassifiedsHttpApplication" and select resolve. However in case of missing ddl reference you need to add the dll reference first.
Regards,
Ahsan Muhammad Khan