Hi, I am currently trying to get back into ASP and have begun looking at an
old webpage I developed some years ago, it was fully functional back in 2002
and I had it up and running with no problems. I have just recently bought a
new PC with Windows Vista Home Premium on it and installed IIS. When I try
and connect to my data base I get the following error message retunred:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Disk or network error.
/joynermorgan/take_registrati on.asp, line 50
Line 50 looks like this:
writeDB.Open "joynerm"
joynerm is the system DSN that I created to connect to my database.
The following is the actual code from the file take_registrati on.asp where
the error is occuring:
<%
if p_password1 = p_password2 then
set writeDB = Server.CreateOb ject ("ADODB.Connect ion")
writeDB.Open "joynerm"
sqlText = "select * from members where username = '"& p_username &"'"
set userSet = DataBase.Execut e (sqlText)
if userSet.EOF then
userSet.Close
set userSet = Nothing
theSQL = "insert into members"
theSQL = theSQL & " (username, pass, first_name, last_name, email) "
theSQL = theSQL & "values '"&p_username&" ', '"&p_password1& "',
'"&p_firstname& "', '"&p_lastname&" ', '"&p_email&" ')"
end if
DataBase.Execut e (theSQL)
DataBase.Close
set DataBase = Nothing
Response.Write "<h2 class='heading' >User Registration</font></h2>"
Response.Write "<p>Thank you for your registration, if you wish you may
now <a href='/joynermorgan/index.asp'>go home</a>."
else
Response.Redire ct "/joynermorgan/register.asp?re try=usernameuna vail"
end if
%>
I am fully aware that my coding techniques are out of date and therefore
will seem a little strange but as I said before, when I had this website up
and running some 5 years ago I never had a problem with this code at all.
Does anybody have any suggestions as to what could be the problem here?
Any help given would be much appreciated.
Many thanks in advance.
Spencer 11 2878
schurst30 wrote:
Hi, I am currently trying to get back into ASP and have begun looking
at an old webpage I developed some years ago, it was fully functional
back in 2002 and I had it up and running with no problems. I have
just recently bought a new PC with Windows Vista Home Premium on it
and installed IIS.
Really? I don't use Vista, but I had been under the impression that IIS
would not run on the Home edition.
When I try and connect to my data base I get the
following error message retunred:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Disk or network error.
/joynermorgan/take_registrati on.asp, line 50
Line 50 looks like this:
writeDB.Open "joynerm"
joynerm is the system DSN that I created to connect to my database.
The following is the actual code from the file take_registrati on.asp
where the error is occuring:
<none of which is relevant>
This is most likely to be a permissions problem. All users of an Access
database require Modify (read/write/create/delete) permission on the
folder containing the database file. The "gotcha" is that the "user" in
IIS may not be you, depending on how you have your website configured.
If Anonymous access is enabled, then the "user" is the Internet Guest
Account (aka IUSR_machinenam e). So if you have not granted the IUSR
account permissions for that folder, your asp page will not be able to
make the connection.
See here for more: http://www.aspfaq.com/show.asp?id=2009
Also, it's got nothing to do with your problem, but you should stop
using the obsolete ODBC DSN. See: http://www.aspfaq.com/show.asp?id=2126
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] wrote on 20 aug 2007 in
microsoft.publi c.inetserver.as p.general:
Really? I don't use Vista, but I had been under the impression that IIS
would not run on the Home edition.
IIS doesn't under "Home-Basic", but does under "Home-Premium".
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Thanks for your input Bob, I have checkedc the permissions settings for all
folders in wwwroot and the users, creator, system etc is all set to full
control for now? Does this rule out the fact that it could be a permissions
problem?
I did change the way I connect to the way you suggested which throws up a
different error message as follows:
Microsoft JET Database Engine error '80004005'
Unspecified error
/joynermorgan/take_registrati on.asp, line 54
Evertjan. wrote:
Bob Barrows [MVP] wrote on 20 aug 2007 in
microsoft.publi c.inetserver.as p.general:
>Really? I don't use Vista, but I had been under the impression that IIS would not run on the Home edition.
IIS doesn't under "Home-Basic", but does under "Home-Premium".
Ah, did miss the "Premium" part ...
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
schurst30 wrote:
Thanks for your input Bob, I have checkedc the permissions settings
for all folders in wwwroot and the users, creator, system etc is all
set to full control for now?
Overkill. The only folder that needs attention is the folder containing
the mdb file
Does this rule out the fact that it
could be a permissions problem?
I don't know - did your sweeping efforts include the folder containing
the mdb file? Did they include granting permission for the IUSR account?
Is your website set to Anonymous access?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob,
Anonymous Authentication is enabled, the folder where the .mdb files is
located has the correct permissions associated with the IUSR account etc.
Still having no joy in everything I try.
Spencer
"Bob Barrows [MVP]" wrote:
schurst30 wrote:
Thanks for your input Bob, I have checkedc the permissions settings
for all folders in wwwroot and the users, creator, system etc is all
set to full control for now?
Overkill. The only folder that needs attention is the folder containing
the mdb file
Does this rule out the fact that it
could be a permissions problem?
I don't know - did your sweeping efforts include the folder containing
the mdb file? Did they include granting permission for the IUSR account?
Is your website set to Anonymous access?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
It's probably not a coding issue (I would like to see what you changed
your connection string to. It should contain the filesystem path to the
mdb file, not a url). Unfortunately, I don't have a machine with Vista
installed so I cannot test whether it's a Vista issue.
I'm assuming you are able to open the database in Access, correct?
Let's take ASP out of the picture. Create a file called testmdb.vbs
containing the following lines of code:
dim cn
set cn=createobject ("adodb.connect ion")
cn.open "Provider=micro soft.jet.oledb. 4.0;" & _
"data source=p:\ath\t o\mdbfile.mdb"
cn.close
Save the file and double-click it to run it - any errors?
Oh! You have installed the Jet components on the machine, I hope?
And are you running the 64-bit version of Vista? if so you have to
configure IIS to run in 32-bit mode.
schurst30 wrote:
Bob,
Anonymous Authentication is enabled, the folder where the .mdb files
is located has the correct permissions associated with the IUSR
account etc.
Still having no joy in everything I try.
Spencer
"Bob Barrows [MVP]" wrote:
>schurst30 wrote:
>>Thanks for your input Bob, I have checkedc the permissions settings for all folders in wwwroot and the users, creator, system etc is all set to full control for now?
Overkill. The only folder that needs attention is the folder containing the mdb file
>>Does this rule out the fact that it could be a permissions problem?
I don't know - did your sweeping efforts include the folder containing the mdb file? Did they include granting permission for the IUSR account? Is your website set to Anonymous access?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
"schurst30" <sc*******@disc ussions.microso ft.comwrote in message
news:5F******** *************** ***********@mic rosoft.com...
Bob,
Anonymous Authentication is enabled, the folder where the .mdb files is
located has the correct permissions associated with the IUSR account etc.
Still having no joy in everything I try.
You dont have the database open do you?
your error occers iof you dont have permissions or if you have the database
open http://support.microsoft.com/kb/306269
>
Spencer
"Bob Barrows [MVP]" wrote:
>schurst30 wrote:
Thanks for your input Bob, I have checkedc the permissions settings
for all folders in wwwroot and the users, creator, system etc is all
set to full control for now?
Overkill. The only folder that needs attention is the folder containing the mdb file
Does this rule out the fact that it
could be a permissions problem?
I don't know - did your sweeping efforts include the folder containing the mdb file? Did they include granting permission for the IUSR account? Is your website set to Anonymous access? -- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
I created that file and it thre up an error:
Line 3
Char 1
Error: 'p:\ath\to\mdbf ile.mdb' is not a valid path. Make sure that the path
name is spelled correctly and that you are connected to the server on which
the file resides.
Code: 80004005
Source: Microsoft JET Database Engine
I am running the 32 bit Vista so that shouldn't be a problem, I do not know
if the JET files are installed? This could be an issue, how do I check/do
this?
Many Thanks
Spencer
"Bob Barrows [MVP]" wrote:
It's probably not a coding issue (I would like to see what you changed
your connection string to. It should contain the filesystem path to the
mdb file, not a url). Unfortunately, I don't have a machine with Vista
installed so I cannot test whether it's a Vista issue.
I'm assuming you are able to open the database in Access, correct?
Let's take ASP out of the picture. Create a file called testmdb.vbs
containing the following lines of code:
dim cn
set cn=createobject ("adodb.connect ion")
cn.open "Provider=micro soft.jet.oledb. 4.0;" & _
"data source=p:\ath\t o\mdbfile.mdb"
cn.close
Save the file and double-click it to run it - any errors?
Oh! You have installed the Jet components on the machine, I hope?
And are you running the 64-bit version of Vista? if so you have to
configure IIS to run in 32-bit mode.
schurst30 wrote:
Bob,
Anonymous Authentication is enabled, the folder where the .mdb files
is located has the correct permissions associated with the IUSR
account etc.
Still having no joy in everything I try.
Spencer
"Bob Barrows [MVP]" wrote:
schurst30 wrote: Thanks for your input Bob, I have checkedc the permissions settings for all folders in wwwroot and the users, creator, system etc is all set to full control for now?
Overkill. The only folder that needs attention is the folder
containing the mdb file
Does this rule out the fact that it could be a permissions problem?
I don't know - did your sweeping efforts include the folder
containing the mdb file? Did they include granting permission for
the IUSR account? Is your website set to Anonymous access?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matt |
last post by:
Hello
I am trying to rebuild indexes on our DB, but I am running into an
error I am not able to solve.
Server: Msg 1105, Level 17, State 2, Line 1
Could not allocate space for object 'ft' in database 'HastaDemo'
because the 'PRIMARY' filegroup is full.
The statement has been terminated.
|
by: intl04 |
last post by:
I am getting strange print-related error messages when trying to
create (not print!) reports. For example, when I click 'new' to create
a report then choose 'design view', I get an error message that says:
'There was a problem retrieving printer information for this object.
The object may have been sent to a printer that was unavailable.'
When I choose 'report wizard', I can go through all of the steps but
then I get an error message...
|
by: Jeremy |
last post by:
I have a situation where i am trying to run two query's and retrieve
one record from each query, then using Union combine them into one
recordset. The First Query is strait forward and should just return
the matching record however the second query needs to find a random
record and return it. The union is causing me some trouble. It seems
that any method i try to find a random record just causes an error.
Here is an example of a query...
|
by: kito |
last post by:
Hi,
I have a problem, when I want to access to my SQL Server Express
database from my ASP.NET application.
My workstation ID is KITOLAP-HP
My username is user01
Now I built the following connection String (VB.NET):
Dim workstation As String =
System.Environment.GetEnvironmentVariable("computername")
connectionString = "workstation id=""" & workstation & """;packet
|
by: =?Utf-8?B?VGVycmFuY2U=?= |
last post by:
I have an application that runs fine on my machine(of course) that access the
local Sql Server. However, when trying to run this application from another
machine I receive a Sql timeout error. I thought it was my stored procedure
but that doesn't seem to be the case. The following are the connection
strings that I've tried:
//private string connstring = "integrated security=SSPI;data source=<ip
address>;"
// "persist security...
| |
by: bizt |
last post by:
Hi,
I am performing an XSLT on a XML feed. The XSLT produces me with PHP
code that I eval then insert into my DB. However, the way that the
system Im assigned to is setup, I need to convert all instances of
comma ',' to entity ',' .. so this requires that the output of the
XSLT needs to produce ',' but instead it converts it to a comma
which the current system doesnt like when handling it.
Below shows a snippet of what I have. What is...
|
by: sayeo87 |
last post by:
Hi, I am quite new to JSP so please forgive me if I ask really simple things... I am trying to run system commands on the server and display the output on a webpage. This is what I've got:
<%@ page import="java.io.*" %>
<HTML>
<BODY>
<%
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("/bin/ls");
|
by: mikek12004 |
last post by:
I want to move some data from one table to another but when I press finish after specifing my parameters to the wizard (in the last step I choose 'execute now') I get this error message:
"
- Execute the transfer with the TransferProvider. (Error)
Messages
ERROR : errorCode=-1073659879 description=The connection manager "DestinationConnection" will not acquire a connection because the package OfflineMode property is TRUE. When the OfflineMode...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |