Hi,
I have created an appl. using 'The Phile' as a template. I have the following
compilation error when I try to run my default (home) page--plz look down through
the error msg and then the global.asax.
vb file I've included and see if you can
help with what needs fixing here:
<code>
Server Error in '/Vendorscape' 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: BC30560: 'Global' is ambiguous in the namespace 'FYRM.VendorScape.Web'.
Source Error:
Line 31: <System.Runtime.CompilerServices.CompilerGlobalSco peAttribute()> _
Line 32: Public Class Global_asax
Line 33: Inherits FYRM.VendorScape.Web.Global
Line 34:
Line 35: Private Shared __initialized As Boolean = false
Source File: C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET Files\vendorscape\fd45cafa\afb208bb\pwt9ileb.0.
vb Line: 33
Show Detailed Compiler Output:
C:\WINNT\System32> "c:\winnt\microsoft.net\framework\v1.1.4322\vbc.ex e" /t:library /utf8output /R:"c:\winnt\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.data.dll" /R:"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temp orary asp.net files\vendorscape\fd45cafa\afb208bb\assembly\dl2\e 88ecea0\0026e557_7016c401\core.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temp orary asp.net files\vendorscape\fd45cafa\afb208bb\assembly\dl2\8 13e5b44\0080475a_7016c401\vendorscape.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temp orary asp.net files\vendorscape\fd45cafa\afb208bb\assembly\dl2\0 7a3a9f3\002d684a_4c13c401\fyrm.vendorscape.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.dll" /R:"c:\winnt\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temp orary asp.net files\vendorscape\fd45cafa\afb208bb\assembly\dl2\e b774bc7\00531659_7016c401\accounts.business.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temp orary asp.net files\vendorscape\fd45cafa\afb208bb\assembly\dl2\d 50a9269\0026e557_7016c401\accounts.data.dll" /R:"c:\winnt\assembly\gac\system.web.mobile\1.0.500 0.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temp orary asp.net files\vendorscape\fd45cafa\afb208bb\assembly\dl2\d 7c47a78\0026e557_7016c401\accounts.configuration.d ll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Te mporary ASP.NET Files\vendorscape\fd45cafa\afb208bb\pwt9ileb.dll" /D:DEBUG=1 /debug+ "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET Files\vendorscape\fd45cafa\afb208bb\pwt9ileb.0.
vb"
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET Files\vendorscape\fd45cafa\afb208bb\pwt9ileb.0.
vb( 33) : error BC30560: 'Global' is ambiguous in the namespace 'FYRM.VendorScape.Web'.
Inherits FYRM.VendorScape.Web.Global
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Show Complete Compilation Source:
Line 1: '-----------------------------------------------------------------------------
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
Line 5: '
Line 6: ' Changes to this file may cause incorrect behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '-----------------------------------------------------------------------------
Line 10:
Line 11: Option Strict Off
Line 12: Option Explicit On
Line 13:
Line 14: Imports Microsoft.VisualBasic
Line 15: Imports System
Line 16: Imports System.Collections
Line 17: Imports System.Collections.Specialized
Line 18: Imports System.Configuration
Line 19: Imports System.Text
Line 20: Imports System.Text.RegularExpressions
Line 21: Imports System.Web
Line 22: Imports System.Web.Caching
Line 23: Imports System.Web.Security
Line 24: Imports System.Web.SessionState
Line 25: Imports System.Web.UI
Line 26: Imports System.Web.UI.HtmlControls
Line 27: Imports System.Web.UI.WebControls
Line 28:
Line 29: Namespace ASP
Line 30:
Line 31: <System.Runtime.CompilerServices.CompilerGlobalSco peAttribute()> _
Line 32: Public Class Global_asax
Line 33: Inherits FYRM.VendorScape.Web.Global
Line 34:
Line 35: Private Shared __initialized As Boolean = false
Line 36:
Line 37: Public Sub New()
Line 38: MyBase.New
Line 39: If (ASP.Global_asax.__initialized = false) Then
Line 40: ASP.Global_asax.__initialized = true
Line 41: End If
Line 42: End Sub
Line 43: End Class
Line 44: End Namespace
Line 45:
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
</code>
This is auto-generated code in the WINNT directory that holds temp files for running
ASP.Net applications...that's as far as I understand about this. Here's my
global.asax.
vb file in the application...
<code>
Imports System.Web
Imports System.Web.SessionState
Imports System.Diagnostics
Imports System.Collections
Imports System.ComponentModel
Namespace VendorScape.Web
Public Class Global
Inherits System.Web.HttpApplication
#Region " Component Designer Generated Code "
Public Sub New()
MyBase.New()
'This call is required by the Component Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Required by the Component Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Component Designer
'It can be modified using the Component Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
components = New System.ComponentModel.Container
End Sub
#End Region
' Fires when the application is started
' ---
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
End Sub
' Fires when the session is started
' ---
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
End Sub
' Fires at the beginning of each request
' ---
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
End Sub
' Fires upon attempting to authenticate the use
' ---
Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs)
End Sub
' Fires when an error occurs
' ---
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
Dim currentError As Exception = Server.GetLastError()
' Write error to log file
FYRM.WebModules.AppException.LogError(currentError .Message.ToString)
' Write error to screen
FYRM.VendorScape.Web.VendorScapePage.ShowError(cur rentError)
' Clear error so that it does not bubble up
Server.ClearError()
End Sub
' Fires when the session ends
' ---
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
End Sub
' Fires when the application ends
' ---
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
End Sub
End Class
End Namespace
</code>
...again, if you're familiar with 'ThePhile' you'll see that I have
used it pretty much verbatim.
TFTH (Thanks for the help!)
R Corcoran, Jr.