There's a pretty good explanation (and resolution) to the '__o' is not
declared issue on stackoverflow -
http://stackoverflow.com/questions/750902/how-do-i-get-rid-of-o-is-not-declared



On 14 December 2011 16:55, Peter Maddin <[email protected]> wrote:

> I have been given a couple of applications written in vb.net (which I
> dislike, having only used  c#)****
>
> ** **
>
> One solution is ok, I have managed to tweak the database, asmx web
> services and add a web site to IIS so that it actually runs.****
>
> It was written in vs2005 and uses lots of obsolete ideas (still at the
> time it was probably hot stuff).****
>
> ** **
>
> The other solution has got me flummoxed. It has code in-line with html.***
> *
>
> When I open the web site with vs2010, it does not complain but won’t build.
> ****
>
> I get lots of errors like****
>
> ** **
>
> Error      1949       '__o' is not declared. It may be inaccessible due to
> its protection level.   ****
>
> ** **
>
> I have no idea how to address this.****
>
> ** **
>
> Some of the aspx have include statements like this****
>
> ** **
>
> <%@ Page explicit="true" %>****
>
> <%@ Import namespace="ADODB" %>****
>
> <script language="VB" runat="Server">****
>
>          Dim Conn As ADODB.Connection****
>
>          Dim rst As ADODB.Recordset****
>
>          Dim SQLstr As String****
>
>          Dim varErrors As Double****
>
>          Dim lngCounter as Long ****
>
> </script>****
>
> <!-- #INCLUDE FILE="includes/include-header.aspx" -->****
>
> <!-- #INCLUDE FILE="includes/include-adovbs.aspx" -->****
>
> <!-- #INCLUDE FILE="includes/include-ErrorHandler.aspx" -->****
>
> ** **
>
> I am not familiar with asp.net using  vb.net in this manor (vb code mixed
> in with javascript and html). Are these include statements being honoured?
> ****
>
> If not, it might explain why some variables/properties cannot be found.***
> *
>
> ** **
>
> I am not sure how old this code is but it looks pretty archaic to me.****
>
> ** **
>
> *Regards Peter Maddin*
> *Applications Development Officer*
> *Path**West Laboratory Medicine WA*
> *Phone : +618 6396 4285 (Monday, Wednesday,Friday)*
>
> *Phone : +618 9346 4372 (Tuesday, Thursday)**
> Mobile: 0423 540 825*
> *E-Mail : [email protected]; [email protected]*
> *The contents of this e-mail transmission outside of the WAGHS network
> are intended solely for the named recipient's), may be confidential, and
> may be privileged or otherwise protected from disclosure in the public
> interest. The use, reproduction, disclosure or distribution of the contents
> of this e-mail transmission by any person other than the named recipient(s)
> is prohibited. If you are not a named recipient please notify the sender
> immediately**.*****
>
>  ****
>
> ** **
>

Reply via email to