473,769 Members | 6,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"cannot write to db file"

Hello -
I have created a simple web application in VS 2005/ASP.net 2.0 for a
university department to track problems with a new website that I have
built for them. The app consists of an Access 2003 db configured to
use the aspnet role provider (via the "unreleased " Access Providers)
and it also has a "bugs" table that stores the data relevant to
problems reported by users. Users login via an asp.net login control
and from there can create a new record and view previous reports, etc.
"Admins" can edit the reports and change the status from "Open" to
"Closed" and add comments. Nothing too tricky, right?

Here's the problem: this app runs perfectly well on two different
computers within VS' test server, but when the site is put on an
actual development server when you try to login, *with the proper
credentials* you get the error "cannot write to db file". If you try
to login with bad credentials you are told that you have not entered
valid username/pass.

Obviously the connection to the db is functioning, to the extent that
it can validate credentials. I know that the aspnet provider logs user
activity, so a successful login must be written to the db, so that's
why the good credentials get rejected if there;s no successful write.
Now, all of my research on this suggests that this is a permissions
issue with either the db, the directory , or *something* that is
really not, strictly speaking, a programming error.

The problem I am having is that not only do I not have authority or
access to the actual server to change permissions, I also do not
really know much about IIS or network administration. I know how to
develop web stuff, not administer servers. The person I am working
with on this project knows Windows networking and IIS pretty well, but
does not know web development or asp.net.

I have forwarded him all the relevant links I can find on the this
problem, and he says that he has checked everything without success
and thinks it's either asp.net weirdness, bad coding, or both. I think
it's permissions...s omething.

I am going to meet with him later today and I would like to have
something concrete to check...does anyone have any ideas of something,
maybe a little obscure, that we can check? Or even a checklist so I
can verify for myself that everything that needs to be done is done?
Any and all help appreciated. If you have links, by all means pass
them along, though at this point I've probably seen 'em!

Thanks,
Paul
Jun 27 '08 #1
1 3271
1. obviously .NET must have write permission to the .mdb file
2. not obviously but .NET account must have write/create permissions to the
whole folder. JET creates temp .ldb file to keep all locking information in
the same folder where .mdb file is.

George.

"pauld" <pa******@hotma il.comwrote in message
news:b8******** *************** ***********@r66 g2000hsg.google groups.com...
Hello -
I have created a simple web application in VS 2005/ASP.net 2.0 for a
university department to track problems with a new website that I have
built for them. The app consists of an Access 2003 db configured to
use the aspnet role provider (via the "unreleased " Access Providers)
and it also has a "bugs" table that stores the data relevant to
problems reported by users. Users login via an asp.net login control
and from there can create a new record and view previous reports, etc.
"Admins" can edit the reports and change the status from "Open" to
"Closed" and add comments. Nothing too tricky, right?

Here's the problem: this app runs perfectly well on two different
computers within VS' test server, but when the site is put on an
actual development server when you try to login, *with the proper
credentials* you get the error "cannot write to db file". If you try
to login with bad credentials you are told that you have not entered
valid username/pass.

Obviously the connection to the db is functioning, to the extent that
it can validate credentials. I know that the aspnet provider logs user
activity, so a successful login must be written to the db, so that's
why the good credentials get rejected if there;s no successful write.
Now, all of my research on this suggests that this is a permissions
issue with either the db, the directory , or *something* that is
really not, strictly speaking, a programming error.

The problem I am having is that not only do I not have authority or
access to the actual server to change permissions, I also do not
really know much about IIS or network administration. I know how to
develop web stuff, not administer servers. The person I am working
with on this project knows Windows networking and IIS pretty well, but
does not know web development or asp.net.

I have forwarded him all the relevant links I can find on the this
problem, and he says that he has checked everything without success
and thinks it's either asp.net weirdness, bad coding, or both. I think
it's permissions...s omething.

I am going to meet with him later today and I would like to have
something concrete to check...does anyone have any ideas of something,
maybe a little obscure, that we can check? Or even a checklist so I
can verify for myself that everything that needs to be done is done?
Any and all help appreciated. If you have links, by all means pass
them along, though at this point I've probably seen 'em!

Thanks,
Paul

Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
18909
by: Mark Richards | last post by:
The solutions for the following problems seems to be simple but I did not found a (convenient) solution: Assume we have a number of elements of the same type under a common parent e.g. <person ... myattr="aaa">Paul</person> <person ... myattr="bbb">Peter</person> <person ... myattr="ccc">Karl</person> ..... <person ... myattr="ddd">Stan</person>
10
3729
by: mike | last post by:
regards: I use Jtidy (api) to translate a HTML file into a "XHTML file". But The "XHTML file" cannot be identified by nokia 6600. Do I miss something important? Or this is Jtidy's weakness or bug? Can someone excellent to tell me the reason. best wishes
9
715
by: Paul | last post by:
Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit anyway).... Private Sub LogChange(ByVal source As Object, ByVal e As System.IO.FileSystemEventArgs) If e.ChangeType = WatcherChangeTypes.Created Then
2
2851
by: Henrik | last post by:
Hi Im trying to make an app that uses threading, I want to write to a file in a loop. How can i ensure that only one thread writes to the file a the time??? Im accessing the fil with: Dim xFile As StreamWriter
2
3531
by: FrzzMan | last post by:
The first time I called this function, everything went well, but the second time I called it. An Exception thrown, do you know why? An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll Additional information: The process cannot access the file "E:\......\bin\Debug\test.xml" because it is being used by another process. ----------------------------------------------
7
23192
by: RSH | last post by:
Hi, I have an ASP .Net web page that creates a temp directory on the server then it is using the File.Copy command to move a file to a temp download directory, Then I am doing a response.Redirect to that URL. The problem is that whenever I run the page the script fails on the File.Copy() command everytime with an error of: The process cannot access the file
0
2851
by: smanisankar | last post by:
hi, the following is the full page code for uploading a file to server. since i got no idea to overwrite the file, i want delete the file if the file is already uploaded. i got the folder name and filename of the file to delete from the request.QueryString("path") so i got the above error when i try to delete the file before upload. Please anyone help me to solve out from this error. <%@ Import Namespace="System.IO" %>
1
10498
by: .Net Sports | last post by:
I'm using Persits.upload module in ASP, and when i use the following form pointed to the object I've always used, i get a "The system cannot find the file specified" error pointing to the line of my upload.savevirtual : Set Upload = Server.CreateObject("Persits.Upload") upload.savevirtual ("test/") .. ''''error:
0
9590
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9424
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10223
Oralloy
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...
1
10000
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,...
1
7413
isladogs
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...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
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...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.