Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
ASPProtect Version 8.x Support
 CJWSoft Support Info : ASPProtect Version 8.x Support
Subject Info: Error 80040e21 A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
jval71
New User
New User


Joined: October/07/2008
Location: Canada
Online Status: Offline
Info: 7
Added: October/07/2008 at 10:51pm | IP Logged Quote jval71

Please help with error 80040e21. There's only one related post and it doesn't provide any answer.

When login into the admin area (.../aspprotect/password_admin/default.asp) I get the following error message:

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

/aspprotect/password_admin/database_log_inc.asp, line 85

Then, I hit the back button on the browser, and I'm in.

When trying to access a protected page, I get a similar error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

C:\WEBS\WEBNAME\SECUREDAREA\..\aspprotect\check_user_inc.asp /scripts/database_log_inc.asp, line 85

If I had entered an authorized username and password, hitting the back button takes me to the protected page. If I had entered an unauthorized username and password, hitting the back button takes me back to the login page.

Any pointers would be greatly appreciated!

Back to Top View jval71's Profile Search for other info by jval71
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: October/07/2008 at 11:13pm | IP Logged Quote cwilliams

weird stuff.. uncommon errors thus nothing posted about it

let's see your connection string and what version of the access database are you using ?

one more thing.. what is the regional LCID setting of your server ?
the server info page will tell you if you are not sure..



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
jval71
New User
New User


Joined: October/07/2008
Location: Canada
Online Status: Offline
Info: 7
Added: October/08/2008 at 3:31pm | IP Logged Quote jval71

Thank you for your prompt response. If you think this is weird, then at least that tells me that error 80040e21 is not another way of calling you a moron.

At this point I converted my small site to aspx, and will let you know if I get this error again.

Back to Top View jval71's Profile Search for other info by jval71
 
jval71
New User
New User


Joined: October/07/2008
Location: Canada
Online Status: Offline
Info: 7
Added: October/08/2008 at 4:21pm | IP Logged Quote jval71

No luck!

I was able to successfully install the ASPProtect.NET add-on -- testprotect test was successful. Can get into the admin area and generate code to protext the aspx pages.

However, as yesterday, I still get the error 80040e21 after entering my credentials. I have to hit the Back button on the browser to become fully logged-in.

Here's the connection string I used when configuring the ASPProtect application:

DBQ=C:\Webs\FNXSB4\aspprotect\data\database\ASPProtect_acces s2002.mdb;Driver={Microsoft Access Driver (*.mdb)};UID=Admin;Password=temp

And this is what I now have on the web.config file:

<add key="ASPPConnStr" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Webs\FNXSB4\aspprotect\data\database\ASPProtect_ac cess2002.mdb;Jet OLEDB:Database Password=temp" />

As you can see, I'm using the default access2002 db.

I'm using a Vista machine --that fortunately runs well-- with IIS 7. It is set for the English Canada region dd/mm/yyyy. The ASPProtect application's date has also been set the same way.

Hopefully this gives you enough information to assist me.

In the meantime, thank you very much in advance!

Back to Top View jval71's Profile Search for other info by jval71
 
jval71
New User
New User


Joined: October/07/2008
Location: Canada
Online Status: Offline
Info: 7
Added: October/08/2008 at 4:25pm | IP Logged Quote jval71

BTW, the space in the ...\ASPProtect_ac cess2002.mdb... (2nd string) is just a typo. There's no such a space in the web.config file.
Back to Top View jval71's Profile Search for other info by jval71
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: October/08/2008 at 4:44pm | IP Logged Quote cwilliams

Ok, well that free ASP.NET add on is not supported so I am not going to discuss that.

As for error problem though when running the classic asp files I need you to try some things...

Now I do not technically support installations when running on local machines especially vista installations but I will try and help regardless.

Let's start with the different versions of the database file.
http://www.aspprotect.com/files/ASPProtect_v8_Database_Versi ons.zip

I need you try each alternate database and see if the error comes up under all of them. It is what I would do if I were in the server troubleshooting myself. Something I can't really do because it's your local machine.

I am also a little concerned about permissions, odbc drivers, and the whole vista thing but let's start with the different databases.

I am running vista ultimate 64 bit here on one of machines and I am going to play around with it in the meantime and see if I can think of anything.



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: October/08/2008 at 5:45pm | IP Logged Quote cwilliams

ok, so I just installed IIS7 on a 2 day old installation of vista ultimate 64 bit.

I initially had an issue with 64 bit iis7 not being able to connect to access databases ... after a google or two I fixed that issue with something I read here
http://forums.iis.net/t/1066385.aspx

anyway... then everything with a fresh aspprotect installation runs perfectly.. no errors at all.. I am connecting to the 2002 version of the database with a similar connection string to the one your using..

How does this help you ?  I guess it really doesn't at this point.



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
jval71
New User
New User


Joined: October/07/2008
Location: Canada
Online Status: Offline
Info: 7
Added: October/09/2008 at 11:48am | IP Logged Quote jval71

Hi again,

No luck yet. I installed the access 2002-2003 db and same result. I even tried to run the application on my XP workstation, and got some erros.

Before trying again with the remaining two database versions and/or fixing my XP installation, there's something that's been in the back of my mind.

From the investigation I've done, the error in questions refers to the inability to write to the database. The line referenced in the error message -line 85 of the database_log_inc.asp file- relates to the IP address of the user. So either the application cannot write the IP address to the db, or it cannot capture it.

Assuming I've set permissions and parent paths correctly, the only option remaining is the latter. My question is, would it matter that my machine is relying on IPv4? An ipconfig query shows me an IPv4 address instead of the traditional one.

Probably this is a wild guess and has nothing to do with the problem, but it doesn't hurt asking.

Thank you for your time!

Back to Top View jval71's Profile Search for other info by jval71
 
jval71
New User
New User


Joined: October/07/2008
Location: Canada
Online Status: Offline
Info: 7
Added: October/09/2008 at 4:38pm | IP Logged Quote jval71

Hi again. Sorry to keep bothering you - and for the large fonts on my previous posting. I just did a copy-and-past from notepad...

Anyway, after investigating a bit more now I know that IPv4 is the traditional protocol. Ooops! It is IPv6 the new one.

Anyway, running two different ASP scripts reveal this as my computer IP address: fe80::c0c2:bb92:fe4f:f916%8

Running the ipconfig /all command confirms this and reveals my IPv4 address:

Link-local IPv6 Address:    fe80::c0c2:bb92:fe4f:f916%8
IPv4 Address:        &nbs p;          192.168.101.228

I am confident this is the reason why my IP address cannot be inserted into the database.  There is a Microsoft article that explains that IPv6 can be un-installed from XP and server 2003, but no from Vista or server 2008. It gives you instructions as to how to disable it --involves a minor change to the registry too.

So I assume you may see this problem again once Windows server 2008 use becomes widespread.

I'm interested in what you think about this. Any workaround you may...

Ok, at this point I had an idea. Opened the database, verified the IP address field was set to Text, and changed the length from 20 to 30 characters... ERROR 80040e21 IS GONE!

LOL, it was something just as simple.

Once again, I want to thank you for the time you spend looking into this problem. Now to finish setting things up!


Back to Top View jval71's Profile Search for other info by jval71
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: October/09/2008 at 4:42pm | IP Logged Quote cwilliams

I have lots and lots of people using this and my other apps in windows 2008 server. I also have a 2008 server here that I use for testing.

Anwya, 1st I have ever heard of this IPv4 or IPv6 stuff.,

Good to know though... and glad ya sorted whatever it is you have going on out.



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area


Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.powerasp.com,www.aspclassifieds.com,www.aspphotogallery.com,www.codewanker.com