Hi,
I have a website running on my local IIS 7.5 server. The site has two class libraries, call them LibA and LibB. Both are copied to the same sub-folder on build. LibA writes to a text file in the root directory of the website. This works fine. However, when LibB raises an event, which triggers a call to the same function in LibA to write to the same text file, it fails with an exception which says access to the file is denied.
As far as I understand it, both these libraries should be loaded into the same AppDomain, so I don't understand why one library has permissions that the other doesn't. And, given the fact that the actual file writing is always done by LibA, I don't understand why different permissions are required at all.
I have no idea what is going on here. Any help would be gratefully received.
Kind wishes, Patrick