Unzipping? Normally you would download the .vsi file, execute it so a template will get inserted in vs.net/VWD. Then you open your vs.net/VWD, choose to create a new website and in the following dialog window you choose the classifieds template.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
I spend countless hours trying to get it to work on a server and it still does not work. It is working on local machine, though
Please help
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)
I am having thesame problem, see detail below. but i think there is place within the code will suppose to make reference to the new name of the site instead of the remote site, we shall soon find out , but i want to apeal to honourable members of the forum
to come to our aid.
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.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
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()
~~~~~~~~~~~~~~~~~~~~~~~~~~
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
See the code below and make the necessary adjustment by using the name of the website isntead of the remote website , line 54.
ine 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:
hanleycp
Member
35 Points
7 Posts
Type ClassifiedsHttpApplication() is not defined
Jul 19, 2006 04:57 PM|LINK
XIII
All-Star
182674 Points
23445 Posts
ASPInsiders
Moderator
MVP
Re: Type ClassifiedsHttpApplication() is not defined
Jul 19, 2006 06:54 PM|LINK
Hi,
Unzipping? Normally you would download the .vsi file, execute it so a template will get inserted in vs.net/VWD. Then you open your vs.net/VWD, choose to create a new website and in the following dialog window you choose the classifieds template.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
beard
Member
10 Points
2 Posts
Re: Type ClassifiedsHttpApplication() is not defined
Nov 06, 2006 06:38 PM|LINK
I am getting the same compilation error:
What do I do wrong?
I spend countless hours trying to get it to work on a server and it still does not work. It is working on local machine, though
Please help
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:
rtwPhoenix
Member
8 Points
5 Posts
Re: Type ClassifiedsHttpApplication() is not defined
Jan 08, 2008 11:50 PM|LINK
I am having the same problem and can not solve it. Did you find a solution? If so would you mind sharing?
Thankyou
RTW
sabalimotu
Member
57 Points
100 Posts
Re: Type ClassifiedsHttpApplication() is not defined
Jan 11, 2011 09:45 PM|LINK
I am having thesame problem, see detail below. but i think there is place within the code will suppose to make reference to the new name of the site instead of the remote site, we shall soon find out , but i want to apeal to honourable members of the forum to come to our aid.
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.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() ~~~~~~~~~~~~~~~~~~~~~~~~~~
<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
sabalimotu
Member
57 Points
100 Posts
Re: Type ClassifiedsHttpApplication() is not defined
Jan 11, 2011 10:11 PM|LINK
See the code below and make the necessary adjustment by using the name of the website isntead of the remote website , line 54.
ine 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: