Re: vb.net "Name is not declared" question
From: ST (ST_at_discussions.microsoft.com)
Date: 12/11/04
- Previous message: Zack: "connection string for another sql server on lan"
- In reply to: ST: "Re: vb.net "Name is not declared" question"
- Next in thread: Jon Skeet [C# MVP]: "Re: vb.net "Name is not declared" question"
- Reply: Jon Skeet [C# MVP]: "Re: vb.net "Name is not declared" question"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 11 Dec 2004 13:25:06 -0800
I actually figured out that issue by including this file (LuceneUtils.vb)
into the project. It has this code:
Imports System.Xml
Imports Lucene.Net.Documents
Imports Lucene.Net.Analysis
Imports Lucene.Net.Index
Imports Lucene.Net.Search
Imports Lucene.Net.QueryParsers
Imports Lucene.Net.Util
Imports System
Imports System.IO
Module LuceneUtils
Public Function getParser(ByRef a As Analyzer) As QueryParser
If (a Is Nothing) Then
a = New SimpleAnalyzer
End If
Dim qp As QueryParser = New QueryParser("body", a)
qp.SetOperator(QueryParser.DEFAULT_OPERATOR_OR)
Return qp
End Function
Public Function getQuery(ByVal query As String, ByRef a As Analyzer) As
Query
Return getParser(a).Parse(query)
End Function
End Module
But NOW....when I try and debug, I'm getting this error:
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type 'biopsy._default'.
Source Error:
Line 1: <%@ Register TagPrefix="uc1" TagName="menu" Src="menu.ascx" %><%@
Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb"
Inherits="biopsy._default"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>
Source File: c:\inetpub\wwwroot\biopsy\default.aspx Line: 1
Any ideas why this is happening? If you have time, can you explain to me
what exactly that Luceneutil file is for, and why it's affecting the rest of
my files now? Thanks!!
"ST" wrote:
> Do you have any suggestions for good books to help me with this? I have the
> Microsoft Press Visual Basic.NET step by step...but I'm only working with web
> applications, not windows, and it only has a little section in there on web
> apps...and it's not very detailed.
>
> "Jon Skeet [C# MVP]" wrote:
>
> > ST <ST@discussions.microsoft.com> wrote:
> > > What do you mean exactly? Sorry, this is code that somebody else did, and
> > > they told me to just add it into an existing project we have.
> >
> > Then you need to ask them for the GetQuery method as well - and then
> > start learning VB.NET from scratch, rather than from existing code. I
> > know it's harsh, but learning from first principles is much more likely
> > to get you a good firm foundation in the language (and the framework).
> >
> > --
> > Jon Skeet - <skeet@pobox.com>
> > http://www.pobox.com/~skeet
> > If replying to the group, please do not mail me too
> >
- Previous message: Zack: "connection string for another sql server on lan"
- In reply to: ST: "Re: vb.net "Name is not declared" question"
- Next in thread: Jon Skeet [C# MVP]: "Re: vb.net "Name is not declared" question"
- Reply: Jon Skeet [C# MVP]: "Re: vb.net "Name is not declared" question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|