Error message

Discussion in 'Getting started' started by MUSTAPHA, Jan 11, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Help,
    i get this error while i was trying to make my website available on web.see the detail of the error.
    How can i correct this error.

    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:


    Source File: E:\web\classified1\htdocs\global.asax Line: 15


    Compiler Warning Messages:
    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.ot8nttrj.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



    Show Detailed Compiler Output:

    C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.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.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.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.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.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_Code._lhsd2xa.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_global.asax.ot8nttrj.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.ot8nttrj.0.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\39dc17f7\898d74d3\App_global.asax.ot8nttrj.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.ot8nttrj.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()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~


    Show Complete Compilation Source:

    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
     
  2. ...Are you installing an old version on IIS7?
     
  3. installing classified advert 2.0 on discountASP.NET SERVER

    Help, what is wrong with this global.asax file, it seem the error is coming from this section, view the code of global.asax and the error message.

    global.asax file
    <%@ Application Language="VB" %>
    <%@ Import Namespace="AspNet.StarterKits.Classifieds.Web" %>

    <script runat="server">

    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)

    If (Not Roles.RoleExists("Administrators")) Then
    Roles.CreateRole("Administrators")
    End If
    If (Not Roles.RoleExists("Guests")) Then
    Roles.CreateRole("Guests")
    End If

    Dim cha As New ClassifiedsHttpApplication()
    cha.Application_Start(sender, e)

    End Sub



    </script>

    ERROR MESSAGE
    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:


    Source File: E:\web\classified1\htdocs\global.asax Line: 15
     
  4. ...My guess, without much to go on, is this is an older version with the AspNet.StarterKits.Classifieds.Web binary targeting asp.net v2
     
  5. Re - Error message

    Yes , it is classifieds advert 2.0 , vb , but change to 3.5 by visual studio 2008 and it run well in my local server
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page