User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 392,057 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,227 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 27261 | Replies: 5
Reply
Join Date: Jan 2005
Posts: 8
Reputation: AlexClifford is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
AlexClifford AlexClifford is offline Offline
Newbie Poster

"Operation is not allowed when the object is closed" error

  #1  
May 4th, 2005
Hello,

I have a few web applications that I have been running on one of our web servers at work and everything is fine. Rearrangements have come about and a change of server is needed. Therefore all the intranet websites/applications on one server were moved onto a new server. But now some of the applications just don't work.

I'm getting the following error in 3 of 8 websites/applications:

Operation is not allowed when the object is closed
The strange thing is I can't find any consistency between the 8 websites. All the HTML only websites are working fine. The 3 websites that are not working all try to access an MS Access database and this is where the error is coming from. However, there are another 2 applications that access MS Access database's but are not suffering from this error I'm guessing its some sort of permissions error in the folders/files or IIS itself but I can't seem to work it out. The scripts themselves have not changed so I can rule out any coding errors. If anyone has any ideas or directions I could go with this your help would be greatly appreciated, thanks.

Regards.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2005
Location: Phoenix
Posts: 29
Reputation: sypher is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
sypher's Avatar
sypher sypher is offline Offline
Light Poster

Re: "Operation is not allowed when the object is closed" error

  #2  
May 5th, 2005
Can you post some code?

-sypher
Reply With Quote  
Join Date: Jan 2005
Posts: 8
Reputation: AlexClifford is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
AlexClifford AlexClifford is offline Offline
Newbie Poster

Re: "Operation is not allowed when the object is closed" error

  #3  
May 5th, 2005
I don't think the code will indicate anything because the exact code works fine on two other computers. It has to be a permissions issue with folders/files or IIS. Unfortunately I'm not sure what permissions I may have set incorrectly.

Does anyone have any suggestions for fixing the permissions?

Regards.
Reply With Quote  
Join Date: Feb 2003
Location: Canada
Posts: 786
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Rep Power: 9
Solved Threads: 26
Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: "Operation is not allowed when the object is closed" error

  #4  
May 5th, 2005
Have you checked the permissions on the Access DB? Is it set to owner, or user mode? Under the Right Click -> Properties -> Security tab is those computers that work with it listed, and those that don't not listed???

How about the same for the folder / IIS folder (also) that would have the application in it?
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
Reply With Quote  
Join Date: Jan 2005
Posts: 8
Reputation: AlexClifford is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
AlexClifford AlexClifford is offline Offline
Newbie Poster
  #5  
Nov 6th, 2005
For anyone's information the reason for the message I had later discovered was the security settings in IIS for anonymous access. I had to put this on to get those websites working.
Reply With Quote  
Join Date: Feb 2003
Location: Canada
Posts: 786
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Rep Power: 9
Solved Threads: 26
Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: "Operation is not allowed when the object is closed" error

  #6  
Nov 8th, 2005
And this is required, so nothing unusual there. Why was it set to not allow anonymous? The only reason to have it not anonymous is if you want to only allow those on your domain (active directory type thing) to acces those pages.

Hence the help file : "Before your server can authenticate users, however, you must first create valid Windows user accounts and then configure Windows File System (NTFS) directory and file permissions for those accounts. For more information, see About Authentication."
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 11:40 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC