RE: trying to repair an ASP.net web site, can't log in via the administrative account anymore: I need an explanation in plain English
The problem though is that with the account to which I retrieved the user name; it is not letting me reset the password for it saying that it doesn’t exist, yet when I retrieve the user name, an email comes back with a temporary password and my user name and yet still it claims that login is unsuccessful. Did you by any chance read through the post that I sent out in my last message? He told me how to fix it, but I don’t understand what he’s saying about changing the authentication from 0 to 2 in the database; what does that mean? And when he tells me to direct the email to the local drive, can I do that in lieu of messing with the database? From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of mike smith Sent: Wednesday, June 26, 2013 1:05 AM To: ozDotNet Subject: Re: trying to repair an ASP.net web site, can't log in via the administrative account anymore: I need an explanation in plain English An idea is that the "not found in database" is to put crackers off from bruteforcing it looking for usernames. If you returned both "invalid username" and "invalid password" you'd have an opportunity to build a list of users, and then work on finding passwords. Just a thought. Mike On Wed, Jun 26, 2013 at 1:32 PM, Katherine Moss mailto:katherine.m...@gordon.edu>> wrote: Hello all, I figure that this is relevant considering my site runs ASP.net. I'm on the Sueetie Framework, and I have the following issue: I changed the administrator password to both the administrative accounts listed on the site and now I cannot remember it. I have my email settings set to deliver to a local directory on the hard drive of the server, so many of the email addresses are not valid for testing purposes until I can set up an email server. I am a stronger administrator (and I'm still learning as always) than developer. I was wondering if you could explain the following conversation between me and the developer of the Sueetie Framework in plain English? Portions of it I do not understand what he is telling me to do, and he seems to think that I should understand exactly what he is talking about, though he's not one for really explaining things and educating you in what you don't know. And not to mention the fact that since he says that email addresses listed don't have to be valid, I try to use the forgot password link to retrieve passwords and nothing happens, I try to use forgot user name as well to try and discover what user I have, and then it says that it is not found in the database. That kind of behavior sort of makes me rather anxious, though the easiest thing probably at this point would be to start over, though I'm not willing to admit defeat yet, but if someone touched something ... The forum link is here: http://sueetie.com/forum/default.aspx?g=posts&m=3344#post3344 And my site is here if you want to see it: http://accesscop.org My goal is to get this issue fixed as soon as possible. And if something did happen to any of my accounts on here and they weren't of my doing, then I have no idea how that might have happened; my site doesn't get too many hits, and no one who has hit it would ever do anything harmful. Thanks for the hand; I'll be a lot more at ease once I can get into the administrator accounts again and be able to make my friend also an administrator so that this could never happen again unless both of us goofed up our passwords. And even if we did, hopefully by then I'll have an email server set up in the near future; I plan on using the .net-based SmarterMail. Thanks, Katherine -- Meski http://courteous.ly/aAOZcv "Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough" - Adam Hills
Re: trying to repair an ASP.net web site, can't log in via the administrative account anymore: I need an explanation in plain English
An idea is that the "not found in database" is to put crackers off from bruteforcing it looking for usernames. If you returned both "invalid username" and "invalid password" you'd have an opportunity to build a list of users, and then work on finding passwords. Just a thought. Mike On Wed, Jun 26, 2013 at 1:32 PM, Katherine Moss wrote: > Hello all, > I figure that this is relevant considering my site runs ASP.net. I'm on > the Sueetie Framework, and I have the following issue: > I changed the administrator password to both the administrative accounts > listed on the site and now I cannot remember it. I have my email settings > set to deliver to a local directory on the hard drive of the server, so > many of the email addresses are not valid for testing purposes until I can > set up an email server. I am a stronger administrator (and I'm still > learning as always) than developer. I was wondering if you could explain > the following conversation between me and the developer of the Sueetie > Framework in plain English? Portions of it I do not understand what he is > telling me to do, and he seems to think that I should understand exactly > what he is talking about, though he's not one for really explaining things > and educating you in what you don't know. And not to mention the fact that > since he says that email addresses listed don't have to be valid, I try to > use the forgot password link to retrieve passwords and nothing happens, I > try to use forgot user name as well to try and discover what user I have, > and then it says that it is not found in the database. That kind of > behavior sort of makes me rather anxious, though the easiest thing probably > at this point would be to start over, though I'm not willing to admit > defeat yet, but if someone touched something ... > The forum link is here: > http://sueetie.com/forum/default.aspx?g=posts&m=3344#post3344 > And my site is here if you want to see it: > http://accesscop.org > My goal is to get this issue fixed as soon as possible. And if something > did happen to any of my accounts on here and they weren't of my doing, then > I have no idea how that might have happened; my site doesn't get too many > hits, and no one who has hit it would ever do anything harmful. Thanks for > the hand; I'll be a lot more at ease once I can get into the administrator > accounts again and be able to make my friend also an administrator so that > this could never happen again unless both of us goofed up our passwords. > And even if we did, hopefully by then I'll have an email server set up in > the near future; I plan on using the .net-based SmarterMail. > > Thanks, > Katherine > > > > -- Meski http://courteous.ly/aAOZcv "Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough" - Adam Hills
trying to repair an ASP.net web site, can't log in via the administrative account anymore: I need an explanation in plain English
Hello all, I figure that this is relevant considering my site runs ASP.net. I'm on the Sueetie Framework, and I have the following issue: I changed the administrator password to both the administrative accounts listed on the site and now I cannot remember it. I have my email settings set to deliver to a local directory on the hard drive of the server, so many of the email addresses are not valid for testing purposes until I can set up an email server. I am a stronger administrator (and I'm still learning as always) than developer. I was wondering if you could explain the following conversation between me and the developer of the Sueetie Framework in plain English? Portions of it I do not understand what he is telling me to do, and he seems to think that I should understand exactly what he is talking about, though he's not one for really explaining things and educating you in what you don't know. And not to mention the fact that since he says that email addresses listed don't have to be valid, I try to use the forgot password link to retrieve passwords and nothing happens, I try to use forgot user name as well to try and discover what user I have, and then it says that it is not found in the database. That kind of behavior sort of makes me rather anxious, though the easiest thing probably at this point would be to start over, though I'm not willing to admit defeat yet, but if someone touched something ... The forum link is here: http://sueetie.com/forum/default.aspx?g=posts&m=3344#post3344 And my site is here if you want to see it: http://accesscop.org My goal is to get this issue fixed as soon as possible. And if something did happen to any of my accounts on here and they weren't of my doing, then I have no idea how that might have happened; my site doesn't get too many hits, and no one who has hit it would ever do anything harmful. Thanks for the hand; I'll be a lot more at ease once I can get into the administrator accounts again and be able to make my friend also an administrator so that this could never happen again unless both of us goofed up our passwords. And even if we did, hopefully by then I'll have an email server set up in the near future; I plan on using the .net-based SmarterMail. Thanks, Katherine
RE: ASP.NET web site
>> I've been through this a few times and it has never, ever been worth the effort/pain. Sorry but I'm joining the chorus of people chanting 'rewrite, rewrite...' I could not agree more, but I need to have some strong arguments in order to support that. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Kennedy Sent: Wednesday, 21 December 2011 12:39 PM To: ozDotNet Subject: Re: ASP.NET web site I am not sure how the author managed to debug this web site. Response.Write() is an ASP programmer's idea of debugging. I've been through this a few times and it has never, ever been worth the effort/pain. Sorry but I'm joining the chorus of people chanting 'rewrite, rewrite...' Greg On Wed, Dec 21, 2011 at 2:31 PM, Peter Maddin wrote: I have got a response back from the author of the web site I am trying to investigate In short no it was NOT written in ASP and converted. This was however one of the first .Net Projects I undertook so it looks very similar to ASP style of programming. The code has never been compiled but placed AS IS on a web server. Again a habit from writing ASP for years before It targets .net framework 2.0. The aspx pages are a mixture of VB, Javascript and HTML. I have managed to get it registered in IIS 5.1 (old XP Pro desktop) and get the default.aspx page open. I can open it with vs2005 (installed specially for this purpose) as a web site. I can debug to a limited extent after attaching to aspnet_wp.exe. However many of my breakpoints cannot be hit (although some are?!). For most I get a circle with an exclamation mark and the message "breakpoint will not currently be hit no symbols loaded for this document" If I get an exception or if application logic is directed to a web page, breakpoints are ignored, so I just get the standard asp.net error page. If I try and build the web site (there is no project or solution files) I get build errors. Without being able to build in debug mode I would guess that there are no PDB files so no symbol information. I have never tried to work with anything quite this old. That this is even possible (no compilation) has surprised me. I am not sure how the author managed to debug this web site. Any ideas short of scrapping it and rewriting to try in order to debug it would be most welcome. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Ken Schaefer Sent: Wednesday, 14 December 2011 3:58 PM To: ozDotNet Subject: RE: ASP.NET web site Definitely a converted ASP application (plenty of articles touting how easy it as to convert ASP to ASP.NET by tweaking a bit of syntax back around 2001/2002). This type of page is the result. The use of ADODB and adovbs.inc is a give-away Cheers Ken -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Peter Maddin Sent: Wednesday, 14 December 2011 3:55 PM To: djones...@gmail.com; 'ozDotNet' Subject: RE: ASP.NET web site Thanks >> Yeah that is a 1.1 vb web page I suspected as much. >> looks like it was either a wizard conversion from asp to asp.net, It does look like a converted asp application. I actually checked out some asp examples in order to compare asp code with what I was looking at. >> Try turning option explicit off and o
Re: ASP.NET web site
*I am not sure how the author managed to debug this web site.* Response.Write() is an ASP programmer's idea of debugging. I've been through this a few times and it has never, *ever *been worth the effort/pain. Sorry but I'm joining the chorus of people chanting 'rewrite, rewrite...' Greg On Wed, Dec 21, 2011 at 2:31 PM, Peter Maddin wrote: > I have got a response back from the author of the web site I am trying to > investigate > > ** ** > > In short no it was NOT written in ASP and converted. > > > > This was however one of the first .Net Projects I undertook so it looks > very similar to ASP style of programming. > > > > The code has never been compiled but placed AS IS on a web server. Again a > habit from writing ASP for years before > > ** ** > > It targets .net framework 2.0. The aspx pages are a mixture of VB, > Javascript and HTML. > > ** ** > > I have managed to get it registered in IIS 5.1 (old XP Pro desktop) and > get the default.aspx page open. > > I can open it with vs2005 (installed specially for this purpose) as a web > site. > > ** ** > > I can debug to a limited extent after attaching to aspnet_wp.exe. > > However many of my breakpoints cannot be hit (although some are?!). > > ** ** > > For most I get a circle with an exclamation mark and the message > > “breakpoint will not currently be hit no symbols loaded for this document” > > > ** ** > > If I get an exception or if application logic is directed to a web page, > breakpoints are ignored, so I just get the standard asp.net error page.*** > * > > ** ** > > If I try and build the web site (there is no project or solution files) I > get build errors. > > Without being able to build in debug mode I would guess that there are no > PDB files so no symbol information. > > ** ** > > I have never tried to work with anything quite this old. That this is even > possible (no compilation) has surprised me. > > I am not sure how the author managed to debug this web site. Any ideas > short of scrapping it and rewriting to try in order to debug it would be > most welcome. > > ** ** > > ** ** > > *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 : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au* > *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**.* > > > > -Original Message- > From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] > On Behalf Of Ken Schaefer > Sent: Wednesday, 14 December 2011 3:58 PM > To: ozDotNet > Subject: RE: ASP.NET web site > > ** ** > > Definitely a converted ASP application (plenty of articles touting how > easy it as to convert ASP to ASP.NET by tweaking a bit of syntax back > around 2001/2002). This type of page is the result. The use of ADODB and > adovbs.inc is a give-away > > ** ** > > Cheers > > Ken > > ** ** > > -Original Message- > > From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] > On Behalf Of Peter Maddin > > Sent: Wednesday, 14 December 2011 3:55 PM > > To: djones...@gmail.com; 'ozDotNet' > > Subject: RE: ASP.NET web site > > ** ** > > Thanks > > >> Yeah that is a 1.1 vb web page > > ** ** > > I suspected as much. > > ** ** > > >> looks like it was either a wizard conversion from asp to asp.net, > > ** ** > > It does look like a converted asp application. I actually checked out some > asp examples in order to compare asp code with what I was looking at. > > ** ** > > >> Try turning option explicit off and option strict off in the project*** > * > > properties. > > ** ** > > I'll give that a try. > > ** ** > > >> My first reaction, is scrap it and rewrite > > ** ** > > I could not agree more but the powers that be would prefer one to maintain > what's there and avoid a rewrite if possible. > > ** ** > > >> Which is the reason I decided not to do vb.net and do c# instead. > > ** ** > > I also decided not to use vb.net and go with C#. Have not regretted that > decision until I was landed with this. > > ** ** >
RE: ASP.NET web site
Sounds like one of the old Pre-VS Wizard web sites. I'd be happy to have a look at it and offer suggestions. Myself - web developer since pre-Denali (first release of ASP) so I know my way around some of the early technologies. Let me know if I can help Dave David J. Boccabella Proprietor Anubis Systems Phone: 0433 808 525 Fax: 3200 0085 Email: <mailto:boo...@cvsol.com> davidboccabe...@anubis-systems.com This e-mail and it's contents is confidential to Anubis Systems. This e-mail, any attachments, or any part of can not be reproduced without the express written permission of Anubis Systems From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Peter Maddin Sent: Wednesday, 21 December 2011 2:32 PM To: 'ozDotNet' Subject: RE: ASP.NET web site I have got a response back from the author of the web site I am trying to investigate In short no it was NOT written in ASP and converted. This was however one of the first .Net Projects I undertook so it looks very similar to ASP style of programming. The code has never been compiled but placed AS IS on a web server. Again a habit from writing ASP for years before It targets .net framework 2.0. The aspx pages are a mixture of VB, Javascript and HTML. I have managed to get it registered in IIS 5.1 (old XP Pro desktop) and get the default.aspx page open. I can open it with vs2005 (installed specially for this purpose) as a web site. I can debug to a limited extent after attaching to aspnet_wp.exe. However many of my breakpoints cannot be hit (although some are?!). For most I get a circle with an exclamation mark and the message "breakpoint will not currently be hit no symbols loaded for this document" If I get an exception or if application logic is directed to a web page, breakpoints are ignored, so I just get the standard asp.net error page. If I try and build the web site (there is no project or solution files) I get build errors. Without being able to build in debug mode I would guess that there are no PDB files so no symbol information. I have never tried to work with anything quite this old. That this is even possible (no compilation) has surprised me. I am not sure how the author managed to debug this web site. Any ideas short of scrapping it and rewriting to try in order to debug it would be most welcome. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Ken Schaefer Sent: Wednesday, 14 December 2011 3:58 PM To: ozDotNet Subject: RE: ASP.NET web site Definitely a converted ASP application (plenty of articles touting how easy it as to convert ASP to ASP.NET by tweaking a bit of syntax back around 2001/2002). This type of page is the result. The use of ADODB and adovbs.inc is a give-away Cheers Ken -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Peter Maddin Sent: Wednesday, 14 December 2011 3:55 PM To: djones...@gmail.com; 'ozDotNet' Subject: RE: ASP.NET web site Thanks >> Yeah that is a 1.1 vb web page I suspected as much. >> looks like it was either a wizard conversion from asp to asp.net, It does look like a converted asp application. I actually checked out some asp examples in order to compare asp code with what I was looking at. >> Try turning option explicit off and option strict off in the project properties. I'll give that a try. >> My first reaction, is scrap it and rewrite I could not agree more but the powers that be would prefer one to maintain what's there and avoid a rewrite if possible. >> Which is the reason I decided not to do vb.net and do c# instead. I also decided not to use vb.net and go with C#. Have not regretted that decision until I was landed with this.
RE: ASP.NET web site
I have got a response back from the author of the web site I am trying to investigate In short no it was NOT written in ASP and converted. This was however one of the first .Net Projects I undertook so it looks very similar to ASP style of programming. The code has never been compiled but placed AS IS on a web server. Again a habit from writing ASP for years before It targets .net framework 2.0. The aspx pages are a mixture of VB, Javascript and HTML. I have managed to get it registered in IIS 5.1 (old XP Pro desktop) and get the default.aspx page open. I can open it with vs2005 (installed specially for this purpose) as a web site. I can debug to a limited extent after attaching to aspnet_wp.exe. However many of my breakpoints cannot be hit (although some are?!). For most I get a circle with an exclamation mark and the message "breakpoint will not currently be hit no symbols loaded for this document" If I get an exception or if application logic is directed to a web page, breakpoints are ignored, so I just get the standard asp.net error page. If I try and build the web site (there is no project or solution files) I get build errors. Without being able to build in debug mode I would guess that there are no PDB files so no symbol information. I have never tried to work with anything quite this old. That this is even possible (no compilation) has surprised me. I am not sure how the author managed to debug this web site. Any ideas short of scrapping it and rewriting to try in order to debug it would be most welcome. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Ken Schaefer Sent: Wednesday, 14 December 2011 3:58 PM To: ozDotNet Subject: RE: ASP.NET web site Definitely a converted ASP application (plenty of articles touting how easy it as to convert ASP to ASP.NET by tweaking a bit of syntax back around 2001/2002). This type of page is the result. The use of ADODB and adovbs.inc is a give-away Cheers Ken -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Peter Maddin Sent: Wednesday, 14 December 2011 3:55 PM To: djones...@gmail.com; 'ozDotNet' Subject: RE: ASP.NET web site Thanks >> Yeah that is a 1.1 vb web page I suspected as much. >> looks like it was either a wizard conversion from asp to asp.net, It does look like a converted asp application. I actually checked out some asp examples in order to compare asp code with what I was looking at. >> Try turning option explicit off and option strict off in the project properties. I'll give that a try. >> My first reaction, is scrap it and rewrite I could not agree more but the powers that be would prefer one to maintain what's there and avoid a rewrite if possible. >> Which is the reason I decided not to do vb.net and do c# instead. I also decided not to use vb.net and go with C#. Have not regretted that decision until I was landed with this.
RE: ASP.NET web site
Thanks for the link. That sort of explains why one is getting that bizarre error message. I am about to try and build this using vs2003, to see if that is better. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of William Luu Sent: Thursday, 15 December 2011 7:24 AM To: ozDotNet Subject: Re: ASP.NET web site 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-decla red On 14 December 2011 16:55, Peter Maddin 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" %> Dim Conn As ADODB.Connection Dim rst As ADODB.Recordset Dim SQLstr As String Dim varErrors As Double Dim lngCounter as Long 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 PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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.
Re: ASP.NET web site
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 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" %> > > > > Dim Conn As ADODB.Connection > > Dim rst As ADODB.Recordset > > Dim SQLstr As String > > Dim varErrors As Double > > Dim lngCounter as Long > > > > > > > > > > ** ** > > 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 : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au* > *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**.* > > > > ** ** >
RE: ASP.NET web site
I think the cost to my sanity is probably too much as well. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Arjang Assadi Sent: Wednesday, 14 December 2011 4:09 PM To: ozDotNet Subject: Re: ASP.NET web site On 14 December 2011 18:55, Peter Maddin wrote: > I could not agree more but the powers that be would prefer one to maintain > what's there and avoid a rewrite if possible. Peter, I feel your pain. Some things must not be maintained but scrapped, this is a perfect example, otherwise why not leave it running on whatever ancient server it was running on as it was? Maintaining it as it is will cost more in terms developer life span. Regards Arjang
RE: ASP.NET web site
Thanks for that. Its nice to know. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Ken Schaefer Sent: Wednesday, 14 December 2011 3:58 PM To: ozDotNet Subject: RE: ASP.NET web site Definitely a converted ASP application (plenty of articles touting how easy it as to convert ASP to ASP.NET by tweaking a bit of syntax back around 2001/2002). This type of page is the result. The use of ADODB and adovbs.inc is a give-away Cheers Ken -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Peter Maddin Sent: Wednesday, 14 December 2011 3:55 PM To: djones...@gmail.com; 'ozDotNet' Subject: RE: ASP.NET web site Thanks >> Yeah that is a 1.1 vb web page I suspected as much. >> looks like it was either a wizard conversion from asp to asp.net, It does look like a converted asp application. I actually checked out some asp examples in order to compare asp code with what I was looking at. >> Try turning option explicit off and option strict off in the project properties. I'll give that a try. >> My first reaction, is scrap it and rewrite I could not agree more but the powers that be would prefer one to maintain what's there and avoid a rewrite if possible. >> Which is the reason I decided not to do vb.net and do c# instead. I also decided not to use vb.net and go with C#. Have not regretted that decision until I was landed with this.
RE: ASP.NET web site
"Maintaining it as it is will cost more in terms developer life span" Yes will, my life span is expected to be short enough already! Time for a white lie - along the lines of "not supportable", "not feasable" or if you prefer more of the Mythbusters slant: "not plausable" I have previously undertaken such a conversion as what you might call "technical debt/death" but it always leads me to Developer Pain so I tend to be upfront. R -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Arjang Assadi Sent: Wednesday, 14 December 2011 18:09 To: ozDotNet Subject: Re: ASP.NET web site On 14 December 2011 18:55, Peter Maddin wrote: > I could not agree more but the powers that be would prefer one to > maintain what's there and avoid a rewrite if possible. Peter, I feel your pain. Some things must not be maintained but scrapped, this is a perfect example, otherwise why not leave it running on whatever ancient server it was running on as it was? Maintaining it as it is will cost more in terms developer life span. Regards Arjang
Re: ASP.NET web site
On 14 December 2011 18:55, Peter Maddin wrote: > I could not agree more but the powers that be would prefer one to maintain > what's there and avoid a rewrite if possible. Peter, I feel your pain. Some things must not be maintained but scrapped, this is a perfect example, otherwise why not leave it running on whatever ancient server it was running on as it was? Maintaining it as it is will cost more in terms developer life span. Regards Arjang
RE: ASP.NET web site
Definitely a converted ASP application (plenty of articles touting how easy it as to convert ASP to ASP.NET by tweaking a bit of syntax back around 2001/2002). This type of page is the result. The use of ADODB and adovbs.inc is a give-away Cheers Ken -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Peter Maddin Sent: Wednesday, 14 December 2011 3:55 PM To: djones...@gmail.com; 'ozDotNet' Subject: RE: ASP.NET web site Thanks >> Yeah that is a 1.1 vb web page I suspected as much. >> looks like it was either a wizard conversion from asp to asp.net, It does look like a converted asp application. I actually checked out some asp examples in order to compare asp code with what I was looking at. >> Try turning option explicit off and option strict off in the project properties. I'll give that a try. >> My first reaction, is scrap it and rewrite I could not agree more but the powers that be would prefer one to maintain what's there and avoid a rewrite if possible. >> Which is the reason I decided not to do vb.net and do c# instead. I also decided not to use vb.net and go with C#. Have not regretted that decision until I was landed with this.
RE: ASP.NET web site
Thanks >> Yeah that is a 1.1 vb web page I suspected as much. >> looks like it was either a wizard conversion from asp to asp.net, It does look like a converted asp application. I actually checked out some asp examples in order to compare asp code with what I was looking at. >> Try turning option explicit off and option strict off in the project properties. I'll give that a try. >> My first reaction, is scrap it and rewrite I could not agree more but the powers that be would prefer one to maintain what's there and avoid a rewrite if possible. >> Which is the reason I decided not to do vb.net and do c# instead. I also decided not to use vb.net and go with C#. Have not regretted that decision until I was landed with this. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of djones...@gmail.com Sent: Wednesday, 14 December 2011 3:20 PM To: ozDotNet Subject: Re: ASP.NET web site Yeah that is a 1.1 vb web page, to do that now you need to write it as a handler. Try turning option explicit off and option strict off in the project properties. My first reaction, is scrap it and rewrite, it looks like it was either a wizard conversion from asp to asp.net, or the original developer thought that vb.net was the same as vb/vbscript. Which is the reason I decided not to do vb.net and do c# instead. Davy --Original Message-- From: Mark Hurd Sender: ozdotnet-boun...@ozdotnet.com To: ozDotNet ReplyTo: ozDotNet Subject: Re: ASP.NET web site Sent: 14 Dec 2011 08:11 Could it require ASP.NET 1.1 not 2.0? -- Regards,Mark Hurd, B.Sc.(Ma.)(Hons.) On 14 December 2011 16:52, Peter Maddin wrote: > That is what I first thought, so I checked up on some asp examples. > > It does not look like asp so I suppose it must be asp.net using vb.net just > really really old. > > Regards Peter Maddin > Applications Development Officer > PathWest Laboratory Medicine WA > Phone : +618 6396 4285 (Monday, Wednesday,Friday) > > Phone : +618 9346 4372 (Tuesday, Thursday) > Mobile: 0423 540 825 > E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au > 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. Sent from my BlackBerry® wireless device
RE: ASP.NET web site
>> Could it require ASP.NET 1.1 not 2.0? Anything is possible. I have an old XP Pro desktop that I used for Delphi development. It has vs2003 installed. I might take a copy across if the machine still boots up. Looking at the mess resulting from mixing HTML, VB and JavaScript up together makes me feel ill. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Mark Hurd Sent: Wednesday, 14 December 2011 3:11 PM To: ozDotNet Subject: Re: ASP.NET web site Could it require ASP.NET 1.1 not 2.0? -- Regards,Mark Hurd, B.Sc.(Ma.)(Hons.) On 14 December 2011 16:52, Peter Maddin wrote: > That is what I first thought, so I checked up on some asp examples. > > It does not look like asp so I suppose it must be asp.net using vb.net just > really really old. > > Regards Peter Maddin > Applications Development Officer > PathWest Laboratory Medicine WA > Phone : +618 6396 4285 (Monday, Wednesday,Friday) > > Phone : +618 9346 4372 (Tuesday, Thursday) > Mobile: 0423 540 825 > E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au > 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.
Re: ASP.NET web site
Yeah that is a 1.1 vb web page, to do that now you need to write it as a handler. Try turning option explicit off and option strict off in the project properties. My first reaction, is scrap it and rewrite, it looks like it was either a wizard conversion from asp to asp.net, or the original developer thought that vb.net was the same as vb/vbscript. Which is the reason I decided not to do vb.net and do c# instead. Davy --Original Message-- From: Mark Hurd Sender: ozdotnet-boun...@ozdotnet.com To: ozDotNet ReplyTo: ozDotNet Subject: Re: ASP.NET web site Sent: 14 Dec 2011 08:11 Could it require ASP.NET 1.1 not 2.0? -- Regards,Mark Hurd, B.Sc.(Ma.)(Hons.) On 14 December 2011 16:52, Peter Maddin wrote: > That is what I first thought, so I checked up on some asp examples. > > It does not look like asp so I suppose it must be asp.net using vb.net just > really really old. > > Regards Peter Maddin > Applications Development Officer > PathWest Laboratory Medicine WA > Phone : +618 6396 4285 (Monday, Wednesday,Friday) > > Phone : +618 9346 4372 (Tuesday, Thursday) > Mobile: 0423 540 825 > E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au > 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. Sent from my BlackBerry® wireless device
Re: ASP.NET web site
Could it require ASP.NET 1.1 not 2.0? -- Regards,Mark Hurd, B.Sc.(Ma.)(Hons.) On 14 December 2011 16:52, Peter Maddin wrote: > That is what I first thought, so I checked up on some asp examples. > > It does not look like asp so I suppose it must be asp.net using vb.net just > really really old. > > Regards Peter Maddin > Applications Development Officer > PathWest Laboratory Medicine WA > Phone : +618 6396 4285 (Monday, Wednesday,Friday) > > Phone : +618 9346 4372 (Tuesday, Thursday) > Mobile: 0423 540 825 > E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au > 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.
RE: ASP.NET web site
That is what I first thought, so I checked up on some asp examples. It does not look like asp so I suppose it must be asp.net using vb.net just really really old. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Rob von Nesselrode Sent: Wednesday, 14 December 2011 2:00 PM To: 'ozDotNet' Subject: RE: ASP.NET web site Looks more like classic ASP to me. ignoring the file extensions... R _ From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Peter Maddin Sent: Wednesday, 14 December 2011 15:55 To: 'ozDotNet' Subject: ASP.NET web site 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" %> Dim Conn As ADODB.Connection Dim rst As ADODB.Recordset Dim SQLstr As String Dim varErrors As Double Dim lngCounter as Long 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 PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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.
RE: ASP.NET web site
Looks more like classic ASP to me. ignoring the file extensions... R _ From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Peter Maddin Sent: Wednesday, 14 December 2011 15:55 To: 'ozDotNet' Subject: ASP.NET web site 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" %> Dim Conn As ADODB.Connection Dim rst As ADODB.Recordset Dim SQLstr As String Dim varErrors As Double Dim lngCounter as Long 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 PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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.
ASP.NET web site
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" %> Dim Conn As ADODB.Connection Dim rst As ADODB.Recordset Dim SQLstr As String Dim varErrors As Double Dim lngCounter as Long 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 PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au 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.