Read-Only DataAccess Error Using VS.NET
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngvs' list.


Al B -DN
The project I've created is from the "Creating Read-Only Data Access in
a Web Forms Page" Walkthrough in the VS.NET helpfiles. Essentially,
I've created a connection to a SQL DB using OleDbConnection. I've added
an OleDbCommand object. I've added a DataGrid and bound it with VB code
below:

================== Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not IsPostBack Then
OleDbConnection1.Open()
Dim Reader As System.Data.OleDb.OleDbDataReader
Reader = OleDbCommand1.ExecuteReader()
DataGrid1.DataSource = Reader
DataGrid1.DataBind()
Reader.Close()
OleDbConnection1.Close()
End If

End Sub
==================
It appears that the error is from an automatically generated file, and I
really have no clue what to do about it. Is this another installation
problem I'm having? This error is happening on two different servers.

If the error information below doesn't post correctly, I'll re-submit in
plain text. Thanks for any insight as to why I might be having these
problems...
Al

Server Error in '/walk/readonly' 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: BC30180: Keyword does not name a type.

Source Error:

    

Line 31:
<System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _

Line 32: Public Class Global_asax

Line 33: Inherits readonly.Global

Line 34:

Line 35: Private Shared __intialized As Boolean = false

Source File: C:\winnt\microsoft.net\framework\v1.0.3705\Temporary
ASP.NET Files\walk_readonly\0f8b2d40\5fa02ed4\oynfizzo.0.vb Line: 33

Show Detailed Compiler Output:

C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3705\vbc.exe"
/t:library /utf8output
/R:"c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\sy
stem.drawing.dll"
/R:"c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system
.xml.dll"
/R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f
11d50a3a\system.enterpriseservices.dll"
/R:"c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\syste
m.data.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary
asp.net
files\walk_readonly\0f8b2d40\5fa02ed4\assembly\dl\2a32aa15\00a6124d_bfa9
c101\readonly.dll"
/R:"c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system
.web.dll"
/R:"c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll
"
/R:"c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a
3a\system.web.services.dll"
/out:"C:\winnt\microsoft.net\framework\v1.0.3705\Temporary ASP.NET
Files\walk_readonly\0f8b2d40\5fa02ed4\oynfizzo.dll" /D:DEBUG=1 /debug+
"C:\winnt\microsoft.net\framework\v1.0.3705\Temporary ASP.NET
Files\walk_readonly\0f8b2d40\5fa02ed4\oynfizzo.0.vb"

Microsoft (R) Visual Basic .NET Compiler version 7.00.9466

for Microsoft (R) .NET Framework version 1.00.3705

Copyright (C) Microsoft Corporation 1987-2001. All rights reserved.

C:\winnt\microsoft.net\framework\v1.0.3705\Temporary ASP.NET
Files\walk_readonly\0f8b2d40\5fa02ed4\oynfizzo.0.vb(33) : error BC30180:
Keyword does not name a type.

Inherits readonly.Global

~~~~~~~~

Show Complete Compilation Source:

Line 1:
'-----------------------------------------------------------------------
-------

Line 2: ' <autogenerated>

Line 3: ' This code was generated by a tool.

Line 4: ' Runtime Version: 1.0.3705.0

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.CompilerGlobalScopeAttribute()> _

Line 32: Public Class Global_asax

Line 33: Inherits readonly.Global

Line 34:

Line 35: Private Shared __intialized As Boolean = false

Line 36:

Line 37: Public Sub New()

Line 38: MyBase.New

Line 39: If (ASP.Global_asax.__intialized = false) Then

Line 40: ASP.Global_asax.__intialized = 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.0.3705.0;
ASP.NET Version:1.0.3705.0
Reply to this message...
 
    
Rob Caron
The project I've created is from the "Creating Read-Only Data Access in
a Web Forms Page" Walkthrough in the VS.NET helpfiles. Essentially,
I've created a connection to a SQL DB using OleDbConnection. I've added
an OleDbCommand object. I've added a DataGrid and bound it with VB code
below:
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not IsPostBack Then
OleDbConnection1.Open()
Dim Reader As System.Data.OleDb.OleDbDataReader
Reader =3D OleDbCommand1.ExecuteReader()
DataGrid1.DataSource =3D Reader
DataGrid1.DataBind()
Reader.Close()
OleDbConnection1.Close()
End If
=20
End Sub
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=20
It appears that the error is from an automatically generated file, and I
really have no clue what to do about it. Is this another installation
problem I'm having? This error is happening on two different servers. =20
=20
If the error information below doesn't post correctly, I'll re-submit in
plain text. Thanks for any insight as to why I might be having these
problems... Al
=20

Server Error in '/walk/readonly' Application.=20

_____ =20

Compilation Error=20

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.=20

Compiler Error Message: BC30180: Keyword does not name a type.

Source Error:

=09

Line 31:
<System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _

Line 32: Public Class Global_asax

Line 33: Inherits readonly.Global

Line 34: =20

Line 35: Private Shared __intialized As Boolean =3D false

Source File: C:\winnt\microsoft.net\framework\v1.0.3705\Temporary
ASP.NET Files\walk_readonly\0f8b2d40\5fa02ed4\oynfizzo.0.vb Line: 33=20

Show Detailed Compiler Output:

C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3705\vbc.exe"
/t:library /utf8output
/R:"c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\sy
stem.drawing.dll"
/R:"c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system
.xml.dll"
/R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.3300.0__b03f5f7f
11d50a3a\system.enterpriseservices.dll"
/R:"c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\syste
m.data.dll" /R:"c:\winnt\microsoft.net\framework\v1.0.3705\temporary
asp.net
files\walk_readonly\0f8b2d40\5fa02ed4\assembly\dl\2a32aa15\00a6124d_bfa9
c101\readonly.dll"
/R:"c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system
.web.dll"
/R:"c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll
"
/R:"c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a
3a\system.web.services.dll"
/out:"C:\winnt\microsoft.net\framework\v1.0.3705\Temporary ASP.NET
Files\walk_readonly\0f8b2d40\5fa02ed4\oynfizzo.dll" /D:DEBUG=3D1 /debug+
"C:\winnt\microsoft.net\framework\v1.0.3705\Temporary ASP.NET
Files\walk_readonly\0f8b2d40\5fa02ed4\oynfizzo.0.vb"

Microsoft (R) Visual Basic .NET Compiler version 7.00.9466

for Microsoft (R) .NET Framework version 1.00.3705

Copyright (C) Microsoft Corporation 1987-2001. All rights reserved.

C:\winnt\microsoft.net\framework\v1.0.3705\Temporary ASP.NET
Files\walk_readonly\0f8b2d40\5fa02ed4\oynfizzo.0.vb(33) : error BC30180:
Keyword does not name a type.

Inherits readonly.Global

~~~~~~~~ =20

Show Complete Compilation Source:

Line 1:
'-----------------------------------------------------------------------
-------

Line 2: ' <autogenerated>

Line 3: ' This code was generated by a tool.

Line 4: ' Runtime Version: 1.0.3705.0

Line 5: '

Line 6: ' Changes to this file may cause incorrect behavior and
will be lost if=20

Line 7: ' the code is regenerated.

Line 8: ' </autogenerated>

Line 9:
'-----------------------------------------------------------------------
-------

Line 10: =20

Line 11: Option Strict Off

Line 12: Option Explicit On

Line 13: =20

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: =20

Line 29: Namespace ASP

Line 30: =20

Line 31:
<System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _

Line 32: Public Class Global_asax

Line 33: Inherits readonly.Global

Line 34: =20

Line 35: Private Shared __intialized As Boolean =3D false

Line 36: =20

Line 37: Public Sub New()

Line 38: MyBase.New

Line 39: If (ASP.Global_asax.__intialized =3D false) Then

Line 40: ASP.Global_asax.__intialized =3D true

Line 41: End If

Line 42: End Sub

Line 43: End Class

Line 44: End Namespace

Line 45: =20

_____ =20

Version Information: Microsoft .NET Framework Version:1.0.3705.0;
ASP.NET Version:1.0.3705.0=20
=20
=20
Reply to this message...
 
 
System.CodeDom.CodeCompileUnit
System.CodeDom.Compiler.CodeDomProvider
System.CodeDom.Compiler.CompilerResults
System.Data.OleDb.OleDbCommand
System.Data.OleDb.OleDbConnection
System.Data.OleDb.OleDbDataReader
System.EventArgs
System.Object
System.Runtime.CompilerServices.CompilerGlobalScopeAttribute
System.Web.HttpCompileException
System.Web.HttpContext
System.Web.HttpException
System.Web.HttpRuntime
System.Web.HttpWorkerRequest
System.Web.UI.TemplateParser
System.Web.UI.WebControls.DataGrid
System.Windows.Forms.DataGrid




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com