473,748 Members | 8,760 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Designer locking mdb file... (file and dir GRANTS FULL CONTROL FOR "EVERYONE")

Here is an easy issue to reproduce:

1) Create a new project.
2) Drop a DataGrid control into the Page. Also drop a OleDbDataAdapte r into
the page.
3) Select "Configure Data Adapter..." and pick the NWind.mdb (for example).
Go ahead and run through the wizard, selecting a table via sql query. Note
that at the end of this a Nwind.ldb lock has been created in that dir.
4) Generate the Dataset and set the datagrid's datasource property to point
to that dataset.
5) Run the page and notice that it cannot open the above mdb because of the
above lock.

Like I mentioned the nwind.mdb and it's dir both grant FULL CONTROL to the
"Everyone" account, so that's not the issue.

In fact, if you close VS and reopen, the above lock will be released and the
page could be run without any problem.

So, the quesiton is why does the Data Adapter Wizard create a lock and NOT
release it when it's done?

Surely, having to reopen VS.Net after setting up a connection to an mdb file
is not very elegant. Has this been recognized as a bug? If so, are there
workarounds? I am implementing a custom control and don't mind applying some
workarounds there.

Thanks in advance.
-Praveen
Nov 19 '05 #1
1 1294
Hi Praveen,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you have configured an
OleDbDataAdapte r, it still connects the the .mdb file. If there is any
misunderstandin g, please feel free to let me know.

As far as I know, this is by design. Because when we configured the
OleDbDataAdapte r, we also added a new OleDbConnection object. When the
OleDbConnection object is added, a new Data Connection will be added to
Server Explorer. We will see the connection there.

To workaround this issue, we have to open the Server Explorer. Right click
on the connection and select Close Connection.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 19 '05 #2

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

Similar topics

5
2651
by: Peter Verhelst | last post by:
Hello, Currently I am running an Access database on a windows WTS server, running Microsoft Windows 2000 server 5.00.2195 Service Pack 3. This database should be accessible for everybody in our network, so for the time being, I have changed the permission for the .mdb file to Everone -> Full control (I know this is not professional, but I'll sort out the security issues later). When this database is opened, and closed again, it is...
0
1224
by: Christian Blackburn | last post by:
Hi Gang, I've written my installer and there's quite a few things I can't figure out how to do with it :). This was the same reason I started using InnoSetup with VB6 (works great by the way www.InnoSetup.com). That being said does anyone know how to get "Everyone" to be the default install-base? Thanks in Advance, Christian Blackburn
0
1273
by: Michael Fitzpatrick | last post by:
I have a .NET application with an installer. The customer wants the install page with the "Everyone" or "Just Me" selection to default to "Everyone". Presently it defaults to "Just Me". Any hints on how I can achieve this? -- : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - : my email address zfarjf@pbqrvafvtug.com is encrypted with www.rot13.org
1
2066
by: chsmith | last post by:
I'm calling a .net / c# .dll from .ASP via Server.CreateObject(). I regasm, gacutil /i and all runs fine on XP SP1 or older. SP2 registry subracts System (??) from the registry root nodes and .ASP calling my .net dll breaks with Invalid class string to the browser. I find that I can fix a SP2 box by adding the IIS user to the permissed users for each .dll object in the registry. IE: regedt32, HKEY_CLASSES_ROOT.your_dll_class
4
15105
by: Ronald S. Cook | last post by:
I created an MSI install for a Windows app I wrote. When installing, however, it defaults to install for "Just Me" instead of "Eveveryone" (meaning anyone who uses this computer). I would like the default deslection to be the latter. How can I change this, please? Thanks! Ron
1
12584
by: ImageAnalyst | last post by:
Yay!!! They fixed this for VS2005. You can now set the default installation to be "Everyone" instead of "Just Me" and you can control whether you even want those radio button installed in your Setup program. >From the Documentation http://msdn2.microsoft.com/en-us/library/5f981xa1.aspx =========================================================== "The InstallAllUsers property for a deployment project determines whether an application is...
7
23187
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
4
10995
JimWu
by: JimWu | last post by:
As title, I'd like to add a "Everyone" group to a file and give this account a full control right. I have try to use FileSecurity class to add a account, ASPNET ,for example. code as follow: try { AddFileSecurity(@"c:\TestACL.txt", "ASPNET", FileSystemRights.FullControl, AccessControlType.Allow); }
0
8831
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
9548
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...
0
9374
jinu1996
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...
0
6076
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
4607
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
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
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
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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.