views:

676

answers:

1

I've just reinstalled a server, it is a new machine, same OS verion (Win2008) and same IIS version (7.0). The app was working perfectly (and then the machine blew up).

I'm getting this error when I try to access a file outside the webroot:

ADODB.Stream error '800a0bba' File could not be opened

I can access it fine using FileSystemObject, but cannot open it with ADODB.Stream.

Also, I can create a PDF using abcPDF, but I cannot create one again with the same name and overwrite it (this used to work). This works fine inside the website folder structure but not outside.

Also, I cannot attach a file using JMail any more. This applies to files BOTH inside and outside the webroot. So that is weird.

I've assigned Full Control to Everyone on the whole drive to isolate whether it is a permissions problem and it made no difference.

Any ideas anyone?

UPDATE: The problem with attaching files inside the site does not appear to be happening any more, since I mucked round with several things. I'm not sure what did it unfortunately. I got nowhere on this and lost hours over it, so I ended up move all the files inside the webroot and now everything works. This is not ideal and I would still like to get to the bottom of it, but the workaround is acceptable.

Updated question as I accidentally wrote Win2003 instead of 2008.

A: 

You probably need to take a closer look at the security permissions on the folders outside of your applications home folder. Also take a look at the what user identity is actually used to run your code, for example do you have windows integrated security turned on? If not, is that true of the previous server?

It might help if we could know for sure whether this really is an IIS7 question in which case your server is 2008 not 2003. You might also find that this sort of thing is best handled by the serverfault.com people.

AnthonyWJones
It is Win2008+IIS7. How do I check on windows integrated security?
mike nelson